[jboss-user] [Beginners Corner] - running an app within jboss (like a daemon)
Roy
shankar.roy at gmail.com
Tue Jun 10 15:57:20 EDT 2008
It you want to start the class automatically
Define a SAR module inside the ear.
Inside the jboss.xml define
<jboss-app>
<!--
Declare the SAR file which defines the MBean.
This MBean is used to run startup and shutdown procedures for the
your application.
-->
<module>
<service>service.sar</service>
</module>
</jboss-app>
your sar module needs to have a jboss-service.xml inside the META-INF dir
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file registers the management interface MBean with JBoss 4.0.
-->
<server>
<mbean code="com.xyz.Application" name=":service=Application">
</mbean>
</server>
Hope this helps.
Roy.
On Tue, Jun 10, 2008 at 12:43 PM, dlarosa11 <do-not-reply at jboss.com> wrote:
> I have a legacy application that I want to run in jboss like I used to run daemon processes in Unix. I don't want it to be a web service or web app or anything. I just want JBoss to start the application for me. I have created an ear and inside it, I have created a war file. I have web.xml setup to point to the class that I want to run.
>
> Jboss starts and it says that my application is deployed, but I know it is not running. I'm sure there is something else I need to do to make this work.
>
> Does anyone have a primer for such a task or a pointer to directions on how to do it?
>
> Thanks
> Domenic
>
> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157131#4157131
>
> Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157131
> _______________________________________________
> jboss-user mailing list
> jboss-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user
>
More information about the jboss-user
mailing list