users@glassfish.java.net

Re: How to call application client under JRE without Web Start?

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Tue, 10 Jul 2007 17:13:10 +0530

> etc etc... but some JMS ResourceAdapter or what dumps a lot of mess
> and hangs the whole program.

Could you please check if the following are done while looking up
JMS/connector resources in your non-ACC client [standalone Java client]
- Set up the ORBInitialHost and ORBInitialPort to point to the server
host and port [as system properties] if the client is running on a
different host or the server runs on non-default ports.
org.omg.CORBA.ORBInitialHost=${orb.host}
org.omg.CORBA.ORBInitialPort=${orb.port}
- Make sure the connector libraries [jar files] are in the client's
classpath. For JMS, ensure that jmsra.jar [available off
{as-install}/lib/install/applications/jmsra/imqjmsra.jar] is also in the
java client's classpath.
- Also provide /appserver/lib/appserv-admin.jar,
/appserver/imq/lib/imq.jar and /appserver/lib/appserv-rt.jar in your
classpath
- Use the physical JNDI name of the JMS resource [in your case it should
be topic/TestTopic] in the java client.

and does the documentation at
https://glassfish.dev.java.net/javaee5/docs/DG/beakt.html#beali
help? You would also need to add appserv-admin.jar in the classpath.

Could you share the exceptions you see once you could run your
standalone client as described above?

Thanks
--Siva.

glassfish_at_javadesktop.org wrote:
> Hi,
>
> How can I call a J2EE application client under JRE without Web Start? Is it possible?
> I have to use JMS, JNDI etc.
>
> I tried to do it like this:
> props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
> props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
>
> etc etc... but some JMS ResourceAdapter or what dumps a lot of mess and hangs the whole program.
> [Message sent by forum member 'mbazs' (mbazs)]
>
> http://forums.java.net/jive/thread.jspa?messageID=225915
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>