Write an MBean. The MBean must extend ServiceMBeanSupport. For example,
"public class ConfigStartup extends ServiceMBeanSupport implements ConfigStartupMBean"
and an Interface "public interface ConfigStartupMBean extends ServiceMBean {}". This
interface implements start and stop methods. Jboss will invoke these methods when it
starts. The Mbean must be deployed by sar.
Example of jboss-service.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
<mbean code="com.sri.configservice.ConfigStartup"
name="DSS:service=ConfigStartup">
</mbean>
</server>
-----Original Message-----
From: Adrian Brock [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 9:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Configuration for JBoss Startup
Investigate MBeans or bean shell scripts.
Regards,
Adrian
On Mon, 2003-09-01 at 13:17, sun zheng wrote:
> Hi all,
>
> I get such a task that I can not find any club to achieve it.
>
> My boss asks me to configure JBoss somehow. When JBoss starts up, there are
> some beans not being starts up together have to be run until the first user
> uses JBoss, which means the first user has to spend much more time than next
> users. In order to avoid the case happens again, we want to startup those
> beans meanwhile startup JBoss.
>
> How to configure JBoss to fulfill the task ?
>
> with best wishes
>
> Zheng Sun
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user