[jboss-dev-forums] [Design of JBoss jBPM] - Error in ejb-jar.xml
fady.matar
do-not-reply at jboss.com
Thu Oct 11 09:46:12 EDT 2007
There's a mistake in the ejb-jar.xml within the enterprise package of the source code. The current ejb-jar.xml is:
| ...
| <session>
| <description>jBPM SLSB Command Service Bean</description>
| <display-name>jBPM SLSB Command Service Bean</display-name>
| <ejb-name>CommandServiceBean</ejb-name>
| <home>
| org.jbpm.ejb.RemoteCommandServiceHome
| </home>
| <remote>
| org.jbpm.ejb.RemoteCommandService
| </remote>
| <local-home>
| org.jbpm.ejb.LocalCommandServiceHome
| </local-home>
| <local>
| org.jbpm.ejb.LocalCommandService
| </local>
| <ejb-class>org.jbpm.ejb.impl.CommandServiceBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <ejb-local-ref>
| <ejb-ref-name>ejb/LocalTimerServiceBean</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.jbpm.scheduler.ejbtimer.LocalTimerServiceHome</local-home>
| <local>org.jbpm.scheduler.ejbtimer.LocalTimerService</local>
| <ejb-link>TimerServiceBean</ejb-link>
| </ejb-local-ref>
| <!--
| <env-entry>
| <env-entry-name>JbpmCfgResource</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>jbpm.cfg.xml</env-entry-value>
| </env-entry>
| -->
| </session>
|
| <session>
| <description>jBPM SLSB Timer Service Bean</description>
| <display-name>jBPM SLSB Timer Service Bean</display-name>
| <ejb-name>TimerServiceBean</ejb-name>
| <local-home>org.jbpm.scheduler.ejbtimer.LocalTimerServiceHome</local-home>
| <local>org.jbpm.scheduler.ejbtimer.LocalTimerService</local>
| <ejb-class>org.jbpm.scheduler.ejbtimer.TimerServiceBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <ejb-local-ref>
| <ejb-ref-name>ejb/LocalCommandServiceBean</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.jbpm.ejb.LocalCommandServiceHome</local-home>
| <local>org.jbpm.ejb.LocalCommandService</local>
| <ejb-link>CommandServiceBean</ejb-link>
| </ejb-local-ref>
| </session>
| ...
|
the <ejb-local-ref> chunks are mixed between the two ejbs it should be the following:
| <session>
| <description>jBPM SLSB Command Service Bean</description>
| <display-name>jBPM SLSB Command Service Bean</display-name>
| <ejb-name>CommandServiceBean</ejb-name>
| <home>
| org.jbpm.ejb.RemoteCommandServiceHome
| </home>
| <remote>
| org.jbpm.ejb.RemoteCommandService
| </remote>
| <local-home>
| org.jbpm.ejb.LocalCommandServiceHome
| </local-home>
| <local>
| org.jbpm.ejb.LocalCommandService
| </local>
| <ejb-class>org.jbpm.ejb.impl.CommandServiceBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <ejb-local-ref>
| <ejb-ref-name>ejb/LocalCommandServiceBean</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.jbpm.ejb.LocalCommandServiceHome</local-home>
| <local>org.jbpm.ejb.LocalCommandService</local>
| <ejb-link>CommandServiceBean</ejb-link>
| </ejb-local-ref>
|
| <!--
| <env-entry>
| <env-entry-name>JbpmCfgResource</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>jbpm.cfg.xml</env-entry-value>
| </env-entry>
| -->
| </session>
|
| <session>
| <description>jBPM SLSB Timer Service Bean</description>
| <display-name>jBPM SLSB Timer Service Bean</display-name>
| <ejb-name>TimerServiceBean</ejb-name>
| <local-home>org.jbpm.scheduler.ejbtimer.LocalTimerServiceHome</local-home>
| <local>org.jbpm.scheduler.ejbtimer.LocalTimerService</local>
| <ejb-class>org.jbpm.scheduler.ejbtimer.TimerServiceBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <ejb-local-ref>
| <ejb-ref-name>ejb/LocalTimerServiceBean</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.jbpm.scheduler.ejbtimer.LocalTimerServiceHome</local-home>
| <local>org.jbpm.scheduler.ejbtimer.LocalTimerService</local>
| <ejb-link>TimerServiceBean</ejb-link>
| </ejb-local-ref>
| </session>
|
The ejb-local-ref calls were mixed between the two different SLSB
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094088#4094088
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094088
More information about the jboss-dev-forums
mailing list