Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS + web services  RSS feed

 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to consume a web service asynchronously using JMS. I have already used JMS(with MQSeries) for async communication. Now I need to set up an environment for the web service scenario.Now I need an JMS server thats free, does JBoss include a JMS server.Could anyone provide me with a typical environment for web services + JMS.
I am new to webservices.I thought JBoss would be fine as I can write and deploy a web service and also if it has a JMS server, I could then consume the service asynchrounously.
Shankar,
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Open JMS project at sourceforge.
and the
Jakarta Commons Messenger
project appear to be active.
Bill
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am now using openJMS and Axis for asynchronous calling of webservices.
But I have a few questions where I got stuck. Using Axis, creating a web service is pretty straightforward. It takes care of generating the SOAP messages and all that stuff. But if I want a JMS layer in the middle, I need to have the SOAP message and my JMS sender has to send that SOAP msg to a queue, then on the other side, I have a JMS listener that retreives the SOAP msg., and invokes the web service. But how do i do this, because when I deployed a web service using Axis, everything was behind the scenes. I dint even see the SOAP message. Now how do i access this message, and how do I use this SOAP message in my JMS listener to invoke a web service. I was successfull in using openJMS and AXIS , but when i tried to fit these two things together, I got stuck. I was not successfull in running the JMS sample provided by the axis. has anyone done this before ?
shankar.
 
Ramesh Nagappan
Author
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try SunONE AS7, which comes with Sun ONE MQ - which provides a seamless MessageTransformer from <JMS to SOAP> and <SOAP to JMS> ? It's quite easy to use.
BTW, Sun ONE AS7 Platform edition is free for development and production. You may take a look at http://sunonedev.sun.com/
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ramesh for your reply. but i still need to stick to the tools that i mentioned above.
I managed to get the SOAP message from the jms client to the JMS listener via my queue. but at the server, when this jms listener creates an axis instance and tries to invoke the service, i get this error

The AXIS engine could not find a target service to invoke! targetService is null
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:308)
at org.apache.axis.transport.jms.SimpleJMSWorker.run(SimpleJMSWorker.java:127)
.....
still struggling.......
shankar.
 
Ramesh Nagappan
Author
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shankar vembu:
thank you ramesh for your reply. but i still need to stick to the tools that i mentioned above.
I managed to get the SOAP message from the jms client to the JMS listener via my queue. but at the server, when this jms listener creates an axis instance and tries to invoke the service, i get this error

The AXIS engine could not find a target service to invoke! targetService is null
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:308)
at org.apache.axis.transport.jms.SimpleJMSWorker.run(SimpleJMSWorker.java:127)
.....
still struggling.......
shankar.


Sorry Shankar, I cannot comment on non-standard APIs. If you are thinking about JMS and SOAP Message interoperability, think about using JAXM and SAAJ and Industry standard JMS providers.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I did this for my SOAP book, I was using the earlier Apache SOAP which really deals only with SOAP over HTTP.
So I ended up doing everything in the JMS listener but using various utility classes from the SOAP package - essentially I studied the way the HTTP version handled a SOAP message after it was received and duplicated that in the JMS listener. You can download that chapter "SOAP Architecture using Messages" from my web site.
Bill
[ May 08, 2003: Message edited by: William Brogden ]
 
John Hembree
hired gun
Ranch Hand
Posts: 250
MS IE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ramesh Nagappan:
BTW, Sun ONE AS7 Platform edition is free for development and production. You may take a look at http://sunonedev.sun.com/


I thought this looked a little funny, it's FREE for development and evaluation unless I read something wrong on the site.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you'll take a look at this page, you'll see that the Platform Edition is also free for deployment. The catch is that it's somehow limited in features (don't know details).
 
John Hembree
hired gun
Ranch Hand
Posts: 250
MS IE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Hembree:
...unless I read something wrong on the site.

Yep, wrong again, it's like the exams, you have to be careful to read specific words in the text or you'll get it wrong everytime. I need to watch that more...test coming up soon...
 
John Hembree
hired gun
Ranch Hand
Posts: 250
MS IE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun ONE AS7 Platform edition

I'm going to need to look into this as well. I've done quite a bit of programming with IBM's MQ Series and Sun site says that AS7 is 7+ times faster.
 
Ramesh Nagappan
Author
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Hembree:


I thought this looked a little funny, it's FREE for development and evaluation unless I read something wrong on the site.

No it is true, SunONE AS7 - Platform Edition is free for use.
 
John Hembree
hired gun
Ranch Hand
Posts: 250
MS IE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ramesh Nagappan:
No it is true, SunONE AS7 - Platform Edition is free for use.

Yes, the error of my ways has been pointed out already. Thanks again.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Hembree:
...and Sun site says that AS7 is 7+ times faster.

I'd like to see some independent performance test results to believe this.
Nothing personal Ramesh, but somehow I am very suspicious about the performance of Sun software... (but I hope I'm wrong)
 
John Hembree
hired gun
Ranch Hand
Posts: 250
MS IE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
I'd like to see some independent performance test results to believe this.
Nothing personal Ramesh, but somehow I am very suspicious about the performance of Sun software... (but I hope I'm wrong)

I'm probably not doing very well here today with my posts, probably muddying the waters more than clearing them. The article references IBM's Websphere with MQSeries, not just MQ Series alone.
Here's the article, you'll need to read it for yourself and make your own assumptions about the test case/results.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interesting read. However, I misunderstood the "7x performance" to refer to the performance of the "web services container" of SunONE versus some other appservers.
I was really surprised to see the presented results. Sun ONE Integrated Message Queue almost 7 times faster than MQSeries? Would this perhaps be due to the part "Integrated" in the other product's name? I think I'll have to examine the test setups in more detail...
Thanks for the article!
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(well that didn't take long )
The test environment seems to be otherwise neutral but I can't help thinking whether the out-of-the-box configuration for MQSeries is optimized for bigger boxes than the one used while SunONE is aimed at lower-end applications? I don't know much about MQSeries (or WebSphereMQ) but somehow I've reached the assumption that MQSeries is the king of MOM software...
 
Ramesh Nagappan
Author
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:

I'd like to see some independent performance test results to believe this.
Nothing personal Ramesh, but somehow I am very suspicious about the performance of Sun software... (but I hope I'm wrong)

Although SunONE Application server 7 is late to market... It beats BEA Weblogic and IBM Web sphere in Web Applications and Web services Performance by 2X. And SunONE MQ (Bundled with SunONE AS7) is 7X faster than IBM MQ and 5x faster than BEA.
Take a look at Pushtotest.com. No Kidding ! You got to try it..to believe it.

[ May 08, 2003: Message edited by: Ramesh Nagappan ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ramesh Nagappan:
Take a look at Pushtotest.com.

I will. Some day
It seems that they only provide test kits--no results for their own test runs, correct?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!