Hi!
JMS standalone client:
System.out.println("1");
Properties props = new Properties();
// props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
// props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty(Context.PROVIDER_URL,"iiop://127.0.0.1:3700");
// props.setProperty("org.omg.CORBA.ORBInitialHost","127.0.0.1");
// props.setProperty("org.omg.CORBA.ORBInitialPort","3700");
System.out.println("2");
InitialContext ctx = new InitialContext(props);
System.out.println("3");
QueueConnectionFactory factory=(QueueConnectionFactory)ctx.lookup("jms/testqueue_factory");
System.out.println("4");
javax.jms.Queue queue=(javax.jms.Queue)ctx.lookup("jms/testqueue");
System.out.println("5");
I tried EVERYTHING, NOTHING works.
Classpath jars: appserv-rt, appserv-ext, imq, imqjmsra, javaee, jms, jsse, rt
Tried to add JVM Corba props with -D.
JMS resources exist.
Result is:
javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
Thanx.
MB
[Message sent by forum member 'mbazs' (mbazs)]
http://forums.java.net/jive/thread.jspa?messageID=226702