• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web service -- server side code -- send mesage from server to client asynchronously

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

My requirement is to make a server side code for web services. I want to send asychronouse messages from server side to the clients.
This si waht happens I take a request from client and process teh request. There are 4 steps in processing. after each step i have to send some data (status) back to the client.

I have a few question regarding this
1) I read about a push message technique wherein the server can push messages to clients. I have to declare an a method in interface which returns Future.

Future sendAsync(String string1, AsyncHandler handler)

How do i implement this code in my class. I searched in net of the implementation couldn;t find one. Can please have an example code or a link which has the code.

2) Can i use JMS topics for communication. If yes. how can i make the client subscribe the topic on my server.

Although i am writing only the server side code, Have i only to give my wsdl file to the team creating the server side code.

I am using tomcat 7.0 and will deploy the application on unix.

Any help is appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic