-
1. Re: 3.2.5 + JCA + CCIBlackBox
ralf.siedow Aug 20, 2004 8:53 AM (in response to deguoren)"deguoren" wrote:
Hi,try { Context initCtx = new InitialContext(); javax.resource.cci.ConnectionFactory cf = (javax.resource.cci.ConnectionFactory)initCtx.lookup( "java:comp/env/eis/CciBlackBoxLocalTx");
The following exception is thrown:11:48:00,577 INFO [STDOUT] javax.naming.NameNotFoundException: eis not bound 11:48:00,577 INFO [STDOUT] at ....
Did you try java:eis/CciBlackBoxLocalTx or java:/eis/CciBlackBoxLocalTx to lookup it? -
2. Re: 3.2.5 + JCA + CCIBlackBox
matze79 Aug 23, 2004 3:38 AM (in response to deguoren)Hi, I tried all variations :-)
CciBlackBoxLocalTx
eis/CciBlackBoxLocalTx
java:CciBlackBoxLocalTx
java:eis/CciBlackBoxLocalTx
java:/CciBlackBoxLocalTx
java:/eis/CciBlackBoxLocalTx
java:comp/env/CciBlackBoxLocalTx
java:comp/env/eis/CciBlackBoxLocalTx
java:/comp/env/CciBlackBoxLocalTx
java:/comp/env/eis/CciBlackBoxLocalTx
unfortunately, nothing works :-(
but I found another warning, which occurs while deploying my application (if I only deploy the app, it doesn't occur)
18:15:20,858 WARN [StatelessSessionContainer] No resource manager found for CciBlackBoxLocalTx
But I found nothing about configuration of an resource manager for a JCA-Adapter and there is almost nothing about running an adapter implementing CCI on JBoss 3.2 on the web (only few for 2.4 and 3.0)... so where is the clue?
Thanks in advance! -
3. Re: 3.2.5 + JCA + CCIBlackBox
ralf.siedow Aug 23, 2004 7:36 AM (in response to deguoren)Hi,
"matze79" wrote:
but I found another warning, which occurs while deploying my application (if I only deploy the app, it doesn't occur)
18:15:20,858 WARN [StatelessSessionContainer] No resource manager found for CciBlackBoxLocalTx
you could try to include the rar-name - tag in your -ds.xml. Mine (for JBoss 4) looks like that:<?xml version="1.0" encoding="UTF-8"?> <connection-factories> <no-tx-connection-factory> <jndi-name>ra/TestAdapter</jndi-name> <rar-name>TestRA.rar</rar-name> <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition> <max-pool-size>1</max-pool-size> </no-tx-connection-factory> </connection-factories>
I think in JBoss 3.2 you must still include the display-name ... this is not necessary in JBoss 4.
Don't put the *-ds.xml in your RAR-File. Deploy it seperately. -
4. Re: 3.2.5 + JCA + CCIBlackBox
ralf.siedow Aug 23, 2004 7:39 AM (in response to deguoren)Regarding resource managers: a jboss.xml for a MDB looks in my case like the following. But I didn't figure out yet, if the resource-manager part is necessery.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> <jboss> <resource-managers> <resource-manager> <res-name>Test Adapter</res-name> <res-jndi-name>java:ra/TestAdapter</res-jndi-name> </resource-manager> </resource-managers> <enterprise-beans> <message-driven> <ejb-name>TestInfoBean</ejb-name> <resource-adapter-name>TestRA.rar</resource-adapter-name> <destination-jndi-name></destination-jndi-name> </message-driven> </enterprise-beans> </jboss>