• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Regarding Usage of Web Services In desktop Swing application

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Is there any way to manage a swing desktop application,through
web services.

regards,
Sachindra
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "manage" a desktop application? A desktop app can call a WS, but being the target of a WS call would be highly unusual (although not impossible).
 
Sachindra Pratap
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we update swing based application using web services?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sachindra Pratap:
Can we update swing based application using web services?



Did you check out JWS?
http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what JWS has to do with the actual question here but:

Can we update swing based application using web services?

If you mean can you retrieve data from web services and use that data in your Swing application then the answer is yes. If you mean something else, you'll need to provide more details.
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gregg Bolinger:
I'm not sure what JWS has to do with the actual question here but:

Can we update swing based application using web services?



By update I took it that there are going to be some code modifications/enhancements as the OP said update the application and not update the data.
In this case JWS will be one of the probable solutions.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Maneesh Godbole:


By update I took it that there are going to be some code modifications/enhancements as the OP said update the application and not update the data.
In this case JWS will be one of the probable solutions.



Not really. And we really don't know what the OP wants because they haven't responded yet. Let's wait for that before continuing to read his mind.
 
Sachindra Pratap
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually,
We are planning to develop a client service which would be running at,
client's end.Where the swing based application is running.
That swing based application has hashtable which needs to be updated through
the web services at run time.

Steps which are being performed:
1.There is database on one machine.
2.There is oneserver side web service running on server, which would be contineously pinging and retrieving the data from database.
3.And client web service would be continous ping this server web service
and update the swing based hashtables.
4. need clarification for pre requisites on running the client web service.


regards,
Sachindra
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so the client does not run (or host) a web service, it accesses a web service that's running elsewhere. There's a wide range of possibilities for implementing this. The simplest would be to open an URL connection to the server, which then sends back structured data (possibly XML or JSON); this would amount to a RESTful approach. Using the full-blown SOAP stack and its associated APIs (SAAJ, JAX-WS) is also possible, of course. So I'd say the client side does not present a problem.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic