Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to include javax.jms.* in eclipse?

Tags:

java

jms

api

Iam trying to implement JMS using eclipse.But when I tried to save the code, it showed that javax.jms.* cannot be resolved and there are no suggestions as well recommended by it.

How can I include it and use it? when I googled I found that javax.jms.* is not a part of java API,then how can I use it in eclipse and get my program run successfully?

I would like to implement JMS with the help of activemq,what all do I need to download and include in code?

Iam a newbie to this JMS, please suggest some references or sample code that can implement JMS using activemq.

like image 590
Galaxin Avatar asked Mar 21 '12 17:03

Galaxin


People also ask

Is JMS part of JDK?

JMS is part of JavaEE. The JDK only includes JavaSE.

How do you implement JMS?

1) Create connection factory and destination resource Click on the JMS Resource -> Destination Resources -> New, now write the JNDI name and physical destination name then click on ok button.

What is javax JMS JMSException?

javax.jms This is the root class of all JMS API exceptions. It provides the following information: A provider-specific string describing the error. This string is the standard exception message and is available via the getMessage method.


1 Answers

When you download the activemq archive file from Internet. Extract this archive: /apache-activemq-x.x.x

cd into this apache... directory.

You will see activemq-all-x.x.x jar file.

Include this in your build path.

This should resolve your issue.

like image 121
Vikram Avatar answered Oct 12 '22 03:10

Vikram