Hi Cole,
 
Thanks a lot
<If you want me to walk you through it, let me know.>
I might take you up on that, if I get stuck on the way.
 
-Kris 
----- Original Message -----
From: Cole, Ian
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)
 
This email is clearly not documentation - try this link: http://www.jboss.org/online-manual/HTML/ch13s26.html which helps - I also read a bit of the JMX spec on sun's site to understand how to create a "simple" MBean.
 
If you want me to walk you through it, let me know.
 
Ian
-----Original Message-----
From: Kris Kristensen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 4:17 PM
To: Jboss-support; Dain Sundstrom
Subject: Re: [JBoss-user] Question about JBoss vs. WLS

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
-----Original Message-----
From: Kris Kristensen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 3:06 PM
To: Jboss-support; Dain Sundstrom
Subject: Re: [JBoss-user] Question about JBoss vs. WLS

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
-----Original Message-----
From: Kris Kristensen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 2:39 PM
To: Jboss-support
Subject: [JBoss-user] Question about JBoss vs. WLS

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 ??
 

Reply via email to