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.
JMS is part of JavaEE. The JDK only includes JavaSE.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With