JMS: the confusion BEFORE writing my first Application.  
Author Message
jodasi





PostPosted: 2004-10-7 3:13:00 Top

java-programmer, JMS: the confusion BEFORE writing my first Application. I read in the sun jms doc that jms is the java interface to
Middleware, like MQ series.

Does this mean I actually need MQ series? ITs to expensive. Im
already in the programming world, so this is not a school project. My
boss came to me and told me that he would like to connect to a remote
MQ series machine. With it.

Now I have taken the channel and decided to write something at my desk
with out connecting to the remote mq. I mean, even if i didnt have to
do this project, i would still like to learn it.

I really thought that j2ee already had a queing facility built in so I
didnt need to buy mq series.

If i do need a middle where queue piece, then are there any free ones.

I thought i could go into the j2ee command line tool and just set up
the queues the way they have it in the example

Can you straighten out my confusion?

jodasi
 
Michael Borgwardt





PostPosted: 2004-10-7 15:55:00 Top

java-programmer >> JMS: the confusion BEFORE writing my first Application. joel s wrote:

> I read in the sun jms doc that jms is the java interface to
> Middleware, like MQ series.
>
> Does this mean I actually need MQ series?

No, you need a messaging service that has a JMS-conforming interface.
MQSeries is one of these.

> ITs to expensive. Im
> already in the programming world, so this is not a school project. My
> boss came to me and told me that he would like to connect to a remote
> MQ series machine. With it.
>
> Now I have taken the channel and decided to write something at my desk
> with out connecting to the remote mq. I mean, even if i didnt have to
> do this project, i would still like to learn it.
>
> I really thought that j2ee already had a queing facility built in so I
> didnt need to buy mq series.
> If i do need a middle where queue piece, then are there any free ones.

A full J2EE server is required to have one, so the J2EE model implementation
should indeed include a JMS facility. Same with JBoss.

However, testing your program only against these might mean that you'll run
into unexpected problems when you run it against the MQSeries server. I'm
not sure how much room the JMS spec leaves for vendor specific quirks.
Try to assume nothing that isn't explicitly guaranteed by the JMS API
specification.
 
jodasi





PostPosted: 2004-10-14 9:33:00 Top

java-programmer >> JMS: the confusion BEFORE writing my first Application. thank you for your help Micheal.

Let me ask this then? which free/servers tools have the messaging
queuing services buit in?

> should indeed include a JMS facility

Michael Borgwardt <email***@***.com> wrote in message news:<email***@***.com>...
> joel s wrote:
>
> > I read in the sun jms doc that jms is the java interface to
> > Middleware, like MQ series.
> >
> > Does this mean I actually need MQ series?
>
> No, you need a messaging service that has a JMS-conforming interface.
> MQSeries is one of these.
>
> > ITs to expensive. Im
> > already in the programming world, so this is not a school project. My
> > boss came to me and told me that he would like to connect to a remote
> > MQ series machine. With it.
> >
> > Now I have taken the channel and decided to write something at my desk
> > with out connecting to the remote mq. I mean, even if i didnt have to
> > do this project, i would still like to learn it.
> >
> > I really thought that j2ee already had a queing facility built in so I
> > didnt need to buy mq series.
> > If i do need a middle where queue piece, then are there any free ones.
>
> A full J2EE server is required to have one, so the J2EE model implementation
> should indeed include a JMS facility. Same with JBoss.
>
> However, testing your program only against these might mean that you'll run
> into unexpected problems when you run it against the MQSeries server. I'm
> not sure how much room the JMS spec leaves for vendor specific quirks.
> Try to assume nothing that isn't explicitly guaranteed by the JMS API
> specification.
 
 
sipayi





PostPosted: 2004-10-15 2:29:00 Top

java-programmer >> JMS: the confusion BEFORE writing my first Application. email***@***.com (joel s) wrote :
> Let me ask this then? which free/servers tools have the messaging
> queuing services buit in?
> > joel s wrote:
> >
> > > I read in the sun jms doc that jms is the java interface to
> > > Middleware, like MQ series.
> > >
> > > Does this mean I actually need MQ series?
> >
> > No, you need a messaging service that has a JMS-conforming interface.
> > MQSeries is one of these.
There are many messaging servers.
http://directory.google.com/Top/Computers/Programming/Languages/Java/Server-Side/Java_Message_Service
Some are downloadable to try.

> > My boss came to me and told me that he would like to connect to a remote
> > MQ series machine. With it.
> > Now I have taken the channel and decided to write something at my desk
> > with out connecting to the remote mq.

Assumption: You want to read MQ messages through via JMS queues.
Disclaimer: My knowledge about this integration is an year old.

Integrating MQ with J2EE is a little involved a task. I have done it
with WebLogic, and there are various options one has to try/figure out
before arriving at a solution. MQ use to have a separate component
(MQJMS) then, do not know if it is still the option.
I would propose a divide and conquer strategy. If you know what is the
format of the message you need to handle, then
1. Try posting that message into the JMS queue, and have your
MDB/etc., handle it appropriately. You can write a JMS client for
this in plain Java. This can be done on your desktop. This is the
easiest portion :-)
2. Figure out the most appropriate solution to integrate MQ with
the JMS server. (Ensure transactions are handled, etc., XA was not
supported by MQJMS if MQ and WLS were on different servers when I
worked with, think now it does)
3. Find out the format the message appears when received from MQ,
translate/manipulate the portion of code developed in step (1)
to understand this message .

HTH,
Siplin
 
 
Michael Borgwardt





PostPosted: 2004-10-15 20:08:00 Top

java-programmer >> JMS: the confusion BEFORE writing my first Application. joel s wrote:
> thank you for your help Micheal.
>
> Let me ask this then? which free/servers tools have the messaging
> queuing services buit in?

As I said: the J2EE release from Sun and JBoss.
 
 
jodasi





PostPosted: 2004-10-18 18:55:00 Top

java-programmer >> JMS: the confusion BEFORE writing my first Application. Michael Borgwardt <email***@***.com> wrote in message news:<email***@***.com>...
> joel s wrote:
> > thank you for your help Micheal.
> >
> > Let me ask this then? which free/servers tools have the messaging
> > queuing services buit in?
>
> As I said: the J2EE release from Sun and JBoss.

thank you all for your help. I appreciate your time.