Problem:
- Product Name: Borland Enterprise Server - AppServer
- Product Version: 5.2.1
- Product Component: MDB Example in JBuilder
- Platform/OS Version: All
- JDK/Compiler Version: 1.3.1 and 1.4.1
How to run MDB Example in JBuilder to avoid NameNotFoundException?
Exception when using logical names in JBuilder:
javax.naming.NameNotFoundException: Missing Node - tcf at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:522) com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:532) at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:532) at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:532) at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:532) at com.inprise.j2ee.jndi.java.javaContext.lookup(javaContext.java:991) at com.inprise.j2ee.jndi.java.javaContext.lookup(javaContext.java:996) at javax.naming.InitialContext.lookup(InitialContext.java:345) at com.borland.examples.ejb.client.MdbClient.main(MdbClient.java:40) Exception in thread "main"
Resolution:
The MDB example is written to do lookups using logical names (java:comp/jms/tcf) and is not available to the JBuilder environment.
Edit the MDB to do lookups using direct names (serial://jms/tcf) as they appear in jndi-definitions.xml.
#VisiBroker
#Security