• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

MQ example

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
Can some one send me some link which helps in designing a small J2ee application using IBM MQ technology on Websphere.If the app would be in struts framework it would be most helpful.

Regards,
Nandan
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MQ you say? Does it have to be MQ?

Here's a tutorial on setting up JMS within the WebSphere Test Environment. The steps are identical for the full blown application server. You just have to set up a message bus, attach a server/cluster to the bus, and then configure a queue or topic and associate that with the bus as well. From there, an MDB can read messages off the queue.

To plop messages onto the queue, you need to create a connection factory, and a JNDI resolvable reference to the queue in question. This is also done through the admin console. An activation specification isn't a bad thing to configure either.

Here's a tutorial that sets up all of the JMS required features within WebSphere:

http://www.technicalfacilitation.com/examscam/tf/get.php?link=13configuringmessaging

Here's another tutorial for creating Message Driven Beans (MDBs) using IBM's Rational Appliation Developer. It also includes a stateless session bean (SLSB) dropping a message on the queue/topic so the MDB can read it.

http://www.technicalfacilitation.com/examscam/tf/get.php?link=14creatingJMSMDBs

You'll notice the screen for creating JMS resources also have options for attaching to an MQ queue. Once you're attached, the steps are similar to the ones uses for standard JMS/MDB messaging.

Cheers!

-Cameron McKenzie
reply
    Bookmark Topic Watch Topic
  • New Topic