• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asynchronous message from server to client

 
Ashwin Raghavan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have to create a web service for one of my clients. The requirement is such that the client will access my web services to do some processing and get the result back.

I am building the architecture. My requirement is to get and xml from the client. convert the xml children into xml list and process each child individually. by processing i mean i have to do some work with the information of the child nodes. After the processing for a particular child is complete i want to send a result back to the client asynchronously.

Now i have no idea how to send messages asynchronously from server to client. I have used JMS with MDB before. But it was when both the producer and the consumer were in the same JVM.
But in this case, the producer will be residing on the server and consumer would be the client from some entirely different JVM.
Can you please tell me if it is possible in web services.

 
rakesh parida
Greenhorn
Posts: 6
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashwin,

Which Messaging server you are using? It is possible for the client to retrieve messages from the queue even if the client is not running in the same JVM. If you are using IBM MQ, then the dependent MQ realated libraries the client should use in its classpath and can retrieve messages. Pushing messages to the queue is not a big deal but it is about retrieving. Please follow the messaging server specifications/notes/tutorials in the installation folder, you may get a clue.

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic