JBoss Community

How to Configure TopicConnection Factory in JBOSS 5.1 ?

created by Jayaprakash P in JNDI and Naming - View the full discussion

     Iam Migrating my aplication from Jboss 4.2 to Jboss 5.1 .

                      In Jboss 4.2 we configured Connection Factories in uil2-service.xml file.

   Can any one please tell me in Which JBOSS 5.1 xml file need to Configure COnnection factory JNDI name and other details.

 

                      Source :

                      InitialContext iniCtx = new InitialContext();

        Object tmp = iniCtx.lookup("BLOTTER_CONNECTIONFACTORY");

        TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;

        conn = tcf.createTopicConnection();

 

                      Error:

 

            ERROR [STDERR] javax.naming.NameNotFoundException: BLOTTERS_CONNECTION_FACTORY not bound

 

     Please give some examples or links to examples.

 

Thanks in Advance.

Prakash

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community