The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: Can Glassfish help me with this use case ?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 1. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Jun 15, 2009 3:30 PM by: pdfalcon
martinm1000

Posts: 51
Can Glassfish help me with this use case ?
Posted: Jun 10, 2009 8:26 AM
 
  Click to reply to this thread Reply

Hi,

We have a couple of java swing application, and we are beginning to think that we might need some java code running on a centralized server. Kind of a windows service where some java code would be running in the background.

This is not a web application; but we would use web services to let the clients (webstart swing app) communicate with the server.

Would Glassfish or another module of another application server do the job ?
There are so much sub projects on these technologies that I'm not sure where to start !!

tjquinn

Posts: 618
Re: Can Glassfish help me with this use case ?
Posted: Jun 10, 2009 9:37 AM   in response to: martinm1000
Helpful
  Click to reply to this thread Reply

There are probably lots of ways to do what you want, and GlassFish is definitely one of them.

Briefly, you could build an application that contained the server-side pieces (the web services) and also one or more application clients. When you write the clients you can use annotations to declare the web services you want to access from the client.

GlassFish also automatically supports launching app clients using Java Web Start, so you do not have to write the JNLP yourself.

One note of caution - currently there are several large JARs needed on the client to support this, not because it's so complicated so much as the way the GlassFish classes have been packaged into various JARs. So when an end-user launches a client using Java Web Start for the first time, Java Web Start needs to download quite a bit of stuff. Of course once downloaded those files are cached on the end-user system so they do not need to be fetched again for subsequent launches.

- Tim

martinm1000

Posts: 51
Re: Can Glassfish help me with this use case ?
Posted: Jun 10, 2009 10:27 AM   in response to: tjquinn
 
  Click to reply to this thread Reply

Thanks for the info;

I would guess that packed jars would help the size to download;

Any idea of where I could start ? What kind of "service/acronym" of Glassfish would be suitable to my case ? (Especially for the java app running in the background between calls)

pdfalcon

Posts: 1
Re: Can Glassfish help me with this use case ?
Posted: Jun 15, 2009 3:30 PM   in response to: martinm1000
 
  Click to reply to this thread Reply

First, decide whether your clients can simply talk HTTP to the server (using apache commons httpclient, or something like it), or whether you'd gain from using a web service.

Second, map out what the servlet or web service has to do

Third, make decisions about security: where on your network will the server sit, can it be seen by anyone other than your clients (think testing, for example), what should it do if it is

Once you have answers to those questions, you'll know what shape your server application is and you can go back to "Can Glassfish help..." with the right questions




 XML java.net RSS