Hi Adrian:
The debug flag was on on the code I posted.
There is nothing I do with the connection just try to get an EJB the usual way...
Now I found that in jbosscmp-jdbc.xml I was puytting Oracle8 instead of Oracle9i.
Now I get this error:
xa error: -3 (A resource manager error has occured in the transaction branch. ; oracle
error: 65535; oracle sql error: -1;
I have downloaded the latest oracle jdbc but hava had no luck and keeps showing
| InitialContext jndiContext = new InitialContext();
| customersHomeLocal = (CustomerHomeLocal)jndiContext.lookup("CustomerHomeLocal");
| /* works fine till here*/
| customersHomeLocal.findByPrimaryKey(customerId); // then it dies here
|
Any other things I may be missing?
Here is the ejb:
| <entity>
| <ejb-name>CustomerEJB</ejb-name>
| <home>rms.ejbs.CustomerHomeRemote</home>
| <remote>rms.ejbs.CustomerRemote</remote>
| <local-home>rms.ejbs.CustomerHomeLocal</local-home>
| <local>rms.ejbs.CustomerLocal</local>
| <ejb-class>rms.ejbs.CustomerBean</ejb-class>
| <persistence-type>Container</persistence-type>
| <prim-key-class>java.lang.String</prim-key-class>
| <reentrant>False</reentrant>
| <cmp-version>2.x</cmp-version>
| <abstract-schema-name>Customers</abstract-schema-name>
| <cmp-field><field-name>customerId</field-name></cmp-field>
| <cmp-field><field-name>customerName</field-name></cmp-field>
| <primkey-field>customerId</primkey-field>
| <security-identity><use-caller-identity/></security-identity>
| </entity>
|
jboss.xml
| <entity>
| <ejb-name>CustomerEJB</ejb-name>
| <jndi-name>XAfxokDS/CustomerEJB</jndi-name>
| <local-jndi-name>CustomerHomeLocal</local-jndi-name>
| </entity>
jbosscmp-jdbc.xml
| <defaults>
| <datasource>java:/XAfxokDS</datasource>
| <datasource-mapping>Oracle9i</datasource-mapping>
| <create-table>false</create-table>
| <remove-table>false</remove-table>
| </defaults>
| <enterprise-beans>
| <entity>
| <ejb-name>CustomerEJB</ejb-name>
| <table-name>customers</table-name>
| </entity>
| </enterprise-beans>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832056#3832056
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832056
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user