Hi All,
I am getting problems calling JMS Queue or Topic bound to JRun.

I included the following statements in the local.properties file of JRUN-

jms.queue.ASIQueue.display-name=ASIQueue
jms.queue.ASIQueue.description=ASIQueue
jms.topic.ASITopic.description=ASITopic
jms.topic.ASITopic.display-name=ASITopic

After doing this I am calling that Queue or Topic from client using
following code-

                        Properties environment = new Properties();
        
environment.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"allaire.ejipt.ContextFactory");
                        environment.setProperty(Context.PROVIDER_URL,
        
PropertiesGetter.getProperty("asi.ejb_engine_protocol") + "://" +
        
PropertiesGetter.getProperty("asi.ejb_engine_host") + ":" +
        
PropertiesGetter.getProperty("asi.ejb_engine_port"));
                        context = new InitialContext(environment);

                        TopicConnectionFactory factory =
        
(TopicConnectionFactory)javax.rmi.PortableRemoteObject.narrow
        
(context.lookup(TopicConnectionFactory.class.getName()),
                        TopicConnectionFactory.class);
                        connection = factory.createTopicConnection();
                        session = connection.createTopicSession(false ,
Session.AUTO_ACKNOWLEDGE);
                        subscriber =
session.createSubscriber((Topic)context.lookup
                        ("java:comp/env/jms/ASITopic"));

When I do that, I get the below exception-

javax.naming.NameNotFoundException: java:comp/env/jms/ASITopic not found

at
allaire.ejipt._NamingContext.lookup(allaire/ejipt/_NamingContext.java:115)

at
allaire.ejipt._ClientContext.lookup(allaire/ejipt/_ClientContext.java:147)

at javax.naming.InitialContext.lookup(InitialContext.java:350)  
at com.emc.asi.ui.StuffClient.<init>(StuffClient.java:49)       
at com.emc.asi.ui.RunStuff.run(MainFrame.java:1182)     
at java.lang.Thread.run(Thread.java:579)

Is there anything  else I need to setup to call JMS Topic or Queue?
Has anybody faced this problem before or solution?

Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to