users@glassfish.java.net

Re: Standaloneclient application

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Sat, 15 Sep 2012 00:54:44 +0200

If you want my advice: DO NOT use EJB for client-server communication. I
have created and ran 2 projects utilizing such a communication for few
years and from a perspective I can tell it was not such a pleasant
experience (maybe you could find some mails of mine between 2006 and 2009).

If I were you, I would use JAX-RS with Jackson (JSON) instead. Easy to use,
well itegrated (part of JEE6), light-weight on libraries size on client.
Just use @Path instead of @Remote.

Regards,
Witold Szczerba
On Sep 14, 2012 10:06 PM, <forums_at_java.net> wrote:

> Hi, I am trying to write simple standalone client-server application.
> Summary: The GlassfishV3 is running on Remote host which
> (Linus/unix)server.
> I am developing the client/server application on Netbeans IDE. The
> glassfish
> claims that in order to run standalone application I must put gf-client.jar
> on classpath and to do this we have to do it directly from glassfish home
> directory because this file also points to lots of .jar files. My question
> is
> that since my Glassfish home is located on Remote host how to address this
> file on my client application class-path? Do I need to have Glassfish also
> installed also on each client in order to put this gf-client.jar on
> class-path? Thanks in advance, h.
>
> --
>
> [Message sent by forum member 'haleh']
>
> View Post: http://forums.java.net/node/**890257<http://forums.java.net/node/890257>
>
>
>