[jboss-user] How do you run app in a Ear file that has a application-client.xml
Steve Morin
steve.morin at gmail.com
Thu Jul 27 16:22:46 EDT 2006
I am trying to run an application in a ear file configured with
application.xml specified by the
<module><java>testClient.jar</java></module>
J2ee says that I should be able to but how do I do that with jboss?
Below is a example of what I am trying to accomplish but using another
container.
http://jonas.objectweb.org/current/doc/PG_Client.html
PS I checked the getting started documentation and it showed a app
being run using a application-client.xml file
but is only running the application using just the client jar if you
check the actual ant file that is running the application. It's not
using the ear file.
Below is a thread I found regarding this topic but havn't found an answer yet.
Steve
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3838368
The J2EE specs states that :
" Application clients are first tier client programs that execute in
their own Java™ virtual machines. Application clients follow the
model for Java technology-based applications: they are invoked at
their main method and run until the virtual machine is terminated.
However, like other J2EE application components, application clients
depend on a container to provide system services. The application
client container
may be very light-weight compared to other J2EE containers, providing
only the security and deployment services described below "
Application servers such as Websphere offer a mean to launch such an
application with a custom bat ou sh program that initialise the VM
with the application-client.xml file contained in the client ear file
: how do one achieve this using JBoss ?
The JBoss documentation only talks about web container application is
this the only possible client of jboss server components ?
Regards
Back to top
kabir.khan at jboss.com
Joined: Tue Feb 25, 2003 00:00 AM
Posts: kabir.khan at jboss.com
Location: Oslo, Norway
Posted: Wed May 12, 2004 08:53 AM Post subject: Re: How to run
Application Clients Container
The getting started documentation shows how to do this.
Cheers,
Kab
Back to top
egoldfarb
Joined: Thu Jun 10, 2004 13:19 PM
Posts: egoldfarb
Location:
Posted: Thu Jun 10, 2004 13:23 PM Post subject: Re: How to run
Application Clients Container
I am also having a hard time figuring out how to run an application
client jar included inside of EAR file. The getting started
documentation only shows how to package the app, and to run it they
execute an ant target which in fact doesn't run the application from
the EAR but instead runs
java -jar appclient.jar in the build directory.
Does JBOSS in fact have a helper class which extracts the client JAR
from the EAR and runs it, or do we have to deploy client JARs
separately from the EAR?
--
Lisp Programming - You don't know what your missing ...
Benjamin Franklin, in his autobiography, argues that you can be more
productive at work if you don't drink rum or beer all day, apparently
a revolutionary concept in the 18th century.
======================================
Help Send Laurie to Veterinary School
http://www.sendlaurietovetschool.com
More information about the jboss-user
mailing list