ejb@glassfish.java.net

Re: Eclipse RCP client for Glassfish v2.1 using EJB3

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Wed, 06 May 2009 15:10:32 -0400

On May 6, 2009, at 2:18 PM, Andreas Kozma wrote:

> Hi Glassfish users!
>
> We are developing a 300k line EJB3 application using JBoss AS and
> the Eclipse RCP platform for our Rich client.
>
> We would like to move our application server to Glassfish, but we
> have difficulty getting our rich client to connect to the AS by
> following the instructions on the glassfish: EJB FAQ.
>
> We have the following problems/questions:
>
> - is anybody of you using Eclipse RCP to develop your rich client?
> if yes, which JARs do put into the plugin containing the server
> classes? which packages do export? We were getting all sorts of
> strange class cast and verify errors when trying to set the
> standalone client mode.
>
> - as our RCP client needs to run on an unforeseen number of client
> machines, we need to be able to set the host name in the login
> panel. How do we pass it to the InitialContext?

Hi Andreas,

The easiest approach is to set the the host as -
Dorg.omg.CORBA.ORBInitialHost=<server> when starting the stand-alone
client JVM. If you can't do that for whatever reason, then follow
the instructions in https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
#nonJavaEEwebcontainerRemoteEJB.


> We tried [ env.setProperty(Context.PROVIDER_URL, "iiop://localhost:
> 3700"); ]

You shouldn't use this property with Glassfish's naming provider.

>
> - is there a way to run an Eclipse or NetBeans RCP app as an
> Application Client Component that can directly inject EJB3 resources?

There's a separate appclient command for running application client
components in GlassFish. I don't know if the IDEs integrate with that.

>
>
>
> Thank you very much for your help!
>
>
> Kind regards,
>
> - Andreas Kozma
> www.ansis.com
>
> <ansis_logo.gif>
>