[jboss-user] [JBoss jBPM] - Re: 3.2.1 JbossService as a jboss sar - does it work?
andyredhead
do-not-reply at jboss.com
Tue Jul 24 06:50:06 EDT 2007
It seems that the answer to my question is nope, 3.2.1 does not work as a service.
However - putting together a 3.2.2 build from head and it does work :)
I've got a slightly modifed setup - defining the service as an xmbean so I can add a property to set the Jbpm config file name.
The jboss-service.xml file:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <server>
| <mbean code="org.jbpm.jmx.JbpmService"
| name="jboss.jbpm:name=DefaultJbpm,service=JbpmService"
| description="jBPM Service"
| xmbean-dd="META-INF/jbpm-xmbean.xml"
| >
|
| <attribute name="JndiName">java:/jbpm/JbpmConfiguration</attribute>
| <attribute name="JbpmConfigFilePath">jbpm-cfg.xml</attribute>
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss.jca:service=DataSourceBinding,name=**hibernate-datasource**</depends>
|
| </mbean>
| </server>
|
and jbpm-xmbean.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE mbean PUBLIC
| "-//JBoss//DTD JBOSS XMBEAN 1.1//EN"
| "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_1.dtd">
| <!--
|
| -->
| <mbean>
|
| <description>Put an instance of JbpmConfiguration into JNDI</description>
| <class>org.jbpm.jmx.JbpmService</class>
|
| &defaultAttributes;
|
| <attribute access="read-write" setMethod="setJbpmCfgResource" getMethod="getJbpmCfgResource">
| <description>The cache to store action permissions</description>
| <name>JbpmConfigFilePath</name>
| <type>java.lang.String</type>
| </attribute>
|
| <attribute access="read-write" setMethod="setJndiName" getMethod="getJndiName">
| <description>Target location in JNDI</description>
| <name>JndiName</name>
| <type>java.lang.String</type>
| </attribute>
|
|
| &defaultOperations;
| </mbean>
|
Cheers,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066950#4066950
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066950
More information about the jboss-user
mailing list