-
1. Re: what does service .sar do
visolvejboss May 25, 2006 5:10 AM (in response to richwin618)Hello,
Basically SAR (service archive) file is used to deploy the JBoss services. A SAR file or directory contains a JBoss service definition file (META-INF/jboss-service.xml) and other resources needed by the service.
You should use SAR file only, if you like to add your own services to JBoss. This can be done by writing your own MBean services and deploy it as SAR file.
Jboss registers and load the defined MBean service at startup time or during it's deployment.
As the MBean services are written using MBean interface (org.jboss.util.Service), I don't think Mbean services (SAR files) are portable.
Regards,
Visolve JBoss Team -
2. Re: what does service .sar do
richwin618 May 25, 2006 12:25 PM (in response to richwin618)Thank you for the reply.
just want to confirm if I understand correctly:
.sar are always loaded when the JBoss start., and this is the biggest benifit of using .sar.
The MBean is the same thing as .sar
Hibernate configuration files can be created as a .sar,this will make all of objects defined in mapping files loaded from database when JBoss start.
Thanks -
3. Re: what does service .sar do
richwin618 May 30, 2006 11:14 AM (in response to richwin618)This alomot get down to basement. any body can answer the questions?
Thanks