[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[pde-dev] JMS Provide Connection Issues?
|
Hi
Please redirect me if I have posted to the wrong list.
I am doing some plugin development and I am looking to connect to a JMS
provider.
The ones I have been using are openJMS and ActiveMQ.
When I prototype connection code for both these using an Eclipse Java
Scrapbook page and can connect to the JMS provider no problems.
But I seem to be hitting issues when I run the same code from within a plugin.
For use w/ ActiveMQ, I have used the following lines of code:
org.activemq.ActiveMQConnectionFactory activeMQConnectionFactory = new
org.activemq.ActiveMQConnectionFactory(user, pwd, url);
connection = activeMQConnectionFactory.createConnection();
if (durable && clientID != null) connection.setClientID(clientID);
connection.start();
W/in the Scrapbook page this runs w/ no problems.
When running in a plugin the execution seems to hang on the following line of
code:
org.activemq.ActiveMQConnectionFactory activeMQConnectionFactory = new
org.activemq.ActiveMQConnectionFactory(user, pwd, url);
Worse still, I cannot see any error traces anywhere, including my Workspace
log file /.metadata/.log
The code is being run in a separate thread.
Any indication of what might be wrong or where I can go to get more logging
information would be much appreciated.
I have read that the ECF project has the objective of providing containers to
deal w/ communications such as JMS - I don't think the JMS plug-in is
available due to licensing issues, but would appreciate if someone could help
me locate the plug-in (which I believe is written).
I am using Eclipse verision 3.1.1.
Thanks, Hong...