|
JNDI initialization and browsing question.: msg#00040java.geronimo.user
Hi, I have a question about JNDI maybe someone can help me with. Does JNDI require any special initialization and is there a way to browse it, other than using JNDI API? I am running into JNDI lookup problem on M3 driver. I am using a simple resource adapter RAR file (v 1.5 compliant). When I deploy it to the server, it deploys fine. The application (with JSP) also deploys fine but when I try to lookup the connection from the jsp triggered class, the JNDI context seems empty, the lookup of the following does not find anything: - java:comp/env/test/j2c/po/dii/order/Order_CF - test/j2c/po/dii/order/Order_CF - g2MyTestAdapterCF The global context seems to contain only JMXConnector Object. Below are the relevant fragmnets of the configuration files used to deploy connector and application. Thank you, any help greatly appreciated. Regards, Piotr Przybylski. geronimo-jetty.xml: <naming:resource-ref> <naming:ref-name>test/j2c/po/dii/order/Order_CF</naming:ref-name> <naming:resource-link>g2MyTestAdapter</naming:resource-link> </naming:resource-ref> web.xml: <resource-ref> <res-ref-name>test/j2c/po/dii/order/Order_CF</res-ref-name> <res-type>javax.resource.cci.ConnectionFactory</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> geronimo-ra.xml ... <resourceadapter> <outbound-resourceadapter> <connection-definition> <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface> <connectiondefinition-instance> <name>g2MyTestAdapter</name> <config-property-setting name="ServerName">localhost</config-property-setting> <config-property-setting name="UserName">user</config-property-setting> <connectionmanager> <no-transaction /> <single-pool> <max-size>10</max-size> <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds> <match-one /> </single-pool> </connectionmanager> <global-jndi-name>TestAdapterCF</global-jndi-name> </connectiondefinition-instance> </connection-definition> </outbound-resourceadapter> </resourceadapter> </connector>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: latest build supposed to be working?, Scott Anderson |
|---|---|
| Next by Date: | Re: JNDI initialization and browsing question., David Jencks |
| Previous by Thread: | latest build supposed to be working?, Scott Anderson |
| Next by Thread: | Re: JNDI initialization and browsing question., David Jencks |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |