• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS & ActiveMQ

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm new to JMS, And i want to run a simple application using JMS,
for which i have written two files.

1) SimpleQueueSender.java &
2) SimpleQueueReceiver.java,

SimpleQueueSender.java gets two command line arguments one is queueName and the other is number of messages to send. which is int, so the simple queue sender the static messages to the queueName.

and SimpleQueueReceiver receives the messages. from that queue, SimpleQueueReceiver also gets one command line argument that is queueName from which to receive messages.

I want to use Tomcat 5.5 as a web container and ActiveMQ as my message broker.

but think is a simple application which contains a java file with public static void main method, so i don't think i will need a tomcat in my case. correct me if i am wrong.

Now i would like to know how does ActiveMQ comes in picture ???

What else i need to do to run my application ???

Do i need J2EE Application Server ?
(Currently it is installed because following import

...
import javax.jms.*;
import javax.naming.*;
...

which are required for JMS i got from j2ee.jar which i got from J2EE Application Server.

Thanks & Regards,
[ July 02, 2008: Message edited by: Jigar Naik ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic