----- Original Message -----
Sent: Wednesday, January 16, 2002 10:37
PM
Subject: RE: [JBoss-user] Question about
JBoss vs. WLS
As
mentioned in a previous post, use an MBean - it does require a bit of coding,
but it is minimal - I took a similar example and converted it to an mbean in
an hour or so.
The
short version is that instead of a "main", you create a class that has several
methods (start, stop, etc) - on creation of that class you would instantiate
the class as you did in the main function. Once the JBoss services are up
(actually MBeans themselves), your class.start() is called, where you could
place code dependent on JBoss services (an ejb or jms topic for
example).
You
then need to create one additional class - same name with MBean at the end -
this is the class that show JMX which methods & properties you wish to
expose (including the start, stop, etc).
You
then edit your jboss.jcml to add the mbean (or in 3.0 it is
autodeployed)
If
you want me to walk you through it, let me know.
Ian
Hi Dain,
No, I don't ear/jar/war or anything J2EE
specific. What I mean is an application that very well could be started from
the command line with java/javac. ie. it cntains a main().
-Kris
----- Original Message -----
Sent: Wednesday, January 16, 2002
10:13 PM
Subject: RE: [JBoss-user] Question
about JBoss vs. WLS
Do you mean an
ear? I don't know what you mean by "ordinary java
application."
-dain
I should have mentioned that this
particular jar is not an EJB, it's an ordinary java
application.
Cheers Kris
----- Original Message -----
Sent: Wednesday, January 16, 2002
9:39 PM
Subject: RE: [JBoss-user]
Question about JBoss vs. WLS
No, just put your ear, war, or jar in the deploy directory and
JBoss will bring it up on startup.
-dain
We are trying to port our suite
from WLS 6.0 to JBoss and came across a few hurdles in doing so.
First of all we need a way to specify an app. that must be started
by JBoss upon startup. In WLS this task is accomplished by putting
the jar-file in a serverclasses directory, and point WLS's
startup-service to that jar. How to do that in JBoss ??