[JBoss Seam] - Conversation-scoped JavaBean
by lightbulb432
I have an SFSB with an @Out of myVariable, where myVariable is an entity. The SFSB then calls a method on a conversation-scoped JavaBean with an @In of myVariable. Ideally, the myVariable should be exactly the same in the SFSB and the JavaBean.
The problem may be that myVariable is an entity with properties that are named the same as other outjected components. What is happening is that the myVariable is not being injected into the JavaBean from the outjected version in the SFSB...instead, the myVariable in the JavaBean seems to be constructing itself from scratch and injecting each property of the entity from the contexts.
For example, if myVariable is made up of properties a and b, then it will bring in whatever the current values of a and b are in the contexts. Is this supposed to happen - because if myVariable already exists, why doesn't it just inject that?
The JavaBean is implementing an interface, and the JavaBean class has the following annotations:
@Name("thejavabean")
| @Scope(ScopeType.CONVERSATION)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015555#4015555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015555
19Â years, 2Â months
[Persistence, JBoss/CMP, Hibernate, Database] - OCI8 configuration
by rizkaarifianto
Hi,
I'm using JBOSS 4.0.4GA using CMP and having problem with OCI8 to connect to 2 different database. I have 2 databases with a different version of database (8i and 9i).
- Installing Oracle 9i Client
- Setting up the TNS For both databases
- Setting up datasource (oracle.ds) using OCI
- Copy file classes12.jar from %ORACLE_HOME%/jdbc/lib to %JBOSS_HOME%/server/default/lib
When JBOSS is running, connection to database oracle 9i is succesfully established (no error).
The problem is occured when jboss try to connect to oracle 8i (release 8.1.5).
Can someone help me to solve the problem?
Below is the oracle.ds configuration:
<local-tx-datasource>
<jndi-name>ORA8DS</jndi-name>
<connection-url>jdbc:oracle:oci8:@ora8SID</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>ora8user</user-name>
ora8pass
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<type-mapping>Oracle8</type-mapping>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>ORA9DS</jndi-name>
<!--connection-url>jdbc:oracle:thin:@kerpec22:1521:pltmar01</connection-url-->
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<connection-url>jdbc:oracle:oci8:@ora9SID</connection-url>
<user-name>ora9user</user-name>
ora9pass
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015550#4015550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015550
19Â years, 2Â months