• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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

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.

It's feeding time! Give me the food you were going to give to this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic