I have tried to add the JBoss file JBoss home=>...\conf\default\jndi.properties file to my classpath both when compiling and running client + using the "TopicConnectionFactory" LookUp name in the simple client, but with no success. I checked that the global JNDI-namspace +- TopicConnectionFactory (class: org.jbossmq.SpyTopicConnectionFactory) exists in the JBoss AgentView(localhost:8082). Can't understand why the client still fails to LookUp the connection factory. Any further suggestions on what can be wrong/missing? I have tested that I can LookUp a "topic/MyTopic" OK, but "TopicConnectionFactory"-LookUp fails... -Cecilie Aulesjord;) Date: Mon, 7 May 2001 12:20:53 +0200 (CEST) From: Peter Antman <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] Need help to run a message bean; LookUp-call to ge t TopicConnecti onFactory fails..... To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] You have two problems: 1. You need to have a jboss.jndi in your classpath somewhere, for jndi to understand that it should be using jnp, eg: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming 2. You are using the wrong name for a topic connection factory. Do this instead for example: public class Main { public static void main(String arg[]) { try { // Get access to JNDI Context context = new InitialContext(); // Lookup the managed connection factory for a topic TopicConnectionFactory topicFactory = (TopicConnectionFactory)context.lookup("TopicConnectionFactory"); //This is the real JNDI name ? //Peter _________________ Cecilie Aulesjord systemutvikler Locus AS Leif Weldingsvei 6-8 P.O.Box 2087 N- 3202 Sandefjord Norway http://www.locus.no/ E-mail: [EMAIL PROTECTED] Phone: +47 33 48 42 00 Direct: +47 33 48 42 15 Fax: +47 33 48 42 01 Mobile: +47 47 62 32 15 _________________ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user