Hi,

>>Why are you doing a lookup with this value?

  I have gone through the jboss docs and wrote that code. If it is not the better 
ContextFactory to lookup then what is the best naming context factory to lookup the 
initial context. Here is the code that iam using for lookup.

 remoteContext = new InitialContext();
 
remoteQueueFactory = (QueueConnectionFactory) 
remoteContext.lookup("ConnectionFactory");

   remoteQueueConnection = remoteQueueFactory.createQueueConnection();

Here is the jndi.properties file :

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1099


Here is the error i am getting:

 javax.naming.NameNotFoundException: ConnectionFactory not bound
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(St

    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.j

     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:493)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:472)
     at javax.naming.InitialContext.lookup(InitialContext.java:350)
  

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827000#3827000";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827000>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to