-
1. Re: Startup another component
darranl May 11, 2004 5:14 AM (in response to maxi72)Where is your application?
A component / J2EE app deployed on JBoss?
A stand alone app?
Something else? -
2. Re: Startup another component
maxi72 May 11, 2004 5:34 AM (in response to maxi72)hi, it is an component j2ee deployed on same jboss.
i'm waiting your answer...
thanks max -
3. Re: Startup another component
darranl May 11, 2004 5:46 AM (in response to maxi72)Make sure your component is in the correct deploy folder.
Start JBoss.
Your app will be deployed automatically. -
4. Re: Startup another component
maxi72 May 12, 2004 1:37 AM (in response to maxi72)This is a simple java class with a main method.
Can you help me ?
thanks -
5. Re: Startup another component
darranl May 12, 2004 6:57 AM (in response to maxi72)If it is a simple java class with a main method it isn't a J2EE component then is it.
-
6. Re: Startup another component
maxi72 May 12, 2004 10:42 AM (in response to maxi72)ok, how can i start my java class with jboss startup (run.bat) ?
Thanks -
-
8. Re: Startup another component
anh3xao May 12, 2004 11:17 PM (in response to maxi72)"maxi72" wrote:
ok, how can i start my java class with jboss startup (run.bat) ?
Thanks
note: jboss is application server
to start your java class just type: java yourclass. that's it. -
9. Re: Startup another component
maxi72 May 14, 2004 5:57 AM (in response to maxi72)sorry, i have an a class that listen an queue (JMS), not MDB.
How can i start that class at startup of jboss ?
Thanks -
10. Re: Startup another component
darranl May 14, 2004 7:29 AM (in response to maxi72)Implement a servlet that invokes a method on your class in its init method.
Write an MBean and invoke a method on your class when it is started.
Why can't your code be wrapped in a message driven bean? They are designed to be deployed when the server starts, stand alone clients a really for accessing the queues from a remote location.
Write a batch file that has: -
start run.bat
start myapp.bat
I think that should allow the two processed to be started.
And possibly more options but those are the first few I can think of.