JNDI Look for JMS running on Sun Java Application Server v9 not working

Hi,

I am trying to connect to JMS running on local Sun App server through java client program

I am using following code -

Properties prop = new Properties();

prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory") ;

prop.put(Context.PROVIDER_URL,"iiop://localhost:7676");

jndiContext = new InitialContext(prop);

queueConnectionFactory = (QueueConnectionFactory)

jndiContext.lookup("QueueConnectionFactory");

But looks like I am not able to connect to JMS server.

I am getting following error

- --

Jul 9, 2007 4:19:34 PM com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase readGIOPHeader

WARNING: "IOP00710220: (INTERNAL) Error in GIOP magic"

org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 220 completed: Maybe

at com.sun.corba.se.impl.logging.ORBUtilSystemException.giopMagicError(ORBUtilSyst emException.java:4095)

at com.sun.corba.se.impl.logging.ORBUtilSystemException.giopMagicError(ORBUtilSyst emException.java:4109)

at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(Messag eBase.java:156)

at com.sun.corba.se.impl.transport.CorbaContactInfoBase.createMessageMediator(Corb aContactInfoBase.java:150)

at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readBits(SocketOr ChannelConnectionImpl.java:314)

at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.handleEvent(Socke tOrChannelConnectionImpl.java:1098)

at com.sun.corba.se.impl.transport.SelectorImpl.run(SelectorImpl.java:282)

-

The exception is : javax.naming.CommunicationException: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE:vmcid: SUN minor code: 208 completed: Maybe]

Please advise

[1808 byte] By [deepakbgaikwada] at [2007-11-27 10:21:32]
# 1

I'm not sure if I understand what it is you're trying to do. Is your local JNDI store running on iiop://localhost:7676 ? To me it looks like you're looking for QueueconnectionFactory in the broker itself. Normally that would be stored outside the broker. Try telnetting to localhost:7676 see what service you get.

Tom

one9966a at 2007-7-28 17:10:35 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...