[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.ecf] Communication between OSGi/Equinox - JMS/ActiveMQ

Hey,

have someone a example to implement the communication between OSGi/Equinox and JMS/ActiveMQ?

I've already imported the package org.eclipse.ecf.provider.jms and activemq and found in the plug-in list the libaries for activemq (activemq3.1M5) but my example doesn't found the libs nor can these import.

----
ActiveMQQueue queue = new ActiveMQQueue("Queue Test");
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61616");


ActiveMQConnection connection = (ActiveMQConnection) factory.createConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(queue);
producer.send(session.createTextMessage("Test"));
connection.close();
----


Have you any idea?

I need a short example for Queue(Sender/Receiver) and Topic(Publisher/Subscriber) in OSGi Framework.
How I must to set up my OSGi bundle?


Best regards,
Sebastian