Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] pde-dev@xxxxxxxxxxx

Hello

I posted the following but did not get any responses - so I am reposting in 
case it did not reach the mailing 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 - also, no logging is going to the ActiveMQ logs

This issue seems to happen when run as part of the plugin thread and also when 
run as a separate thread.

Any indication of what might be wrong or where I can go to get more logging 
information would be much appreciated.

Cross checking w/ Scott Lewis (ECF), it appears that we are using the same JMS 
provider connection code.

I am using Eclipse verision 3.1.1.

Thanks, Hong...

Back to the top