JMS difficulties with JRUN
843830Mar 29 2002 — edited May 7 2002I'm having difficulty getting messaging to work the first time. I've posted on Macromedia's forums, but thought I'd give it a shot here as well since these forums get more traffic. I have gotten errors such as "javax.jms.TopicConnectionFactory not found", "java:comp/env/jms/TopicConnectionFactory not found", "TopicConnectionFactory not found", etc... As you can see, I have been trying a lot of different combinations of code to get things to work. I have copied code samples from all the standard locations, so I don't think my code is the problem (although I could be wrong). I think it is a configuration issue on my system.
I've edited my local.properties file to contain the following three lines:
ejb.services=ejb,jms
jms.topic.topic1.description=Topic1 Test
jms.topic.topic1.display-name=Topic1 Test
What .jar file do I need to install in the deploy directory to get JMS to work? Is it the jrunbeans.jar? This step has been somewhat confusing to me.
There are a lot of "ejipt" jars in the JRUN_HOME/lib directory. Should I move these to lib/ext?
The code I am using for testing:
1. Properties properties = new Properties();
2. properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "allaire.ejipt.ContextFactory");
3. properties.setProperty(Context.PROVIDER_URL, "ejipt://localhost:2323");
4. InitialContext ctx = new InitialContext(properties);
5. TopicConnectionFactory tcf = (TopicConnectionFactory)ctx.lookup(TopicConnectionFactory.class.getName());
The code fails on line 5.
I am using JRUN 3.02a.11614 (SP2).
Please let me know if anyone has some answers to my questions. Thank you.
Michael