How lookup the world in different langauges

This time we speak about the lookup service.
Why? because the problem is this: i have a datasource, say "jdbc/gifaDS". I installed this datasource in Tomcat, in JBoss and finally in Oracle Ias 10g.
I will not speak about how to define a datasource in the above application servers, but how to lookup them!
Yes, because the jndi service is different in every application server.
In poor words:
  • with Tomcat: java:comp/env and after the datasource name, so: java:comp/env/jdbc/gifaDS
  • with JBoss: only java:, so: java:/jdbc/gifaDS
  • with Oracle Ias 10g: no prefix, so: jdbc/ConanDS

Nessun commento:

Posta un commento