[jboss-user] [JBoss jBPM] - Re: Problems with JBPM Ttimer EJB from a simple Web App

Toriton do-not-reply at jboss.com
Fri Mar 27 04:14:21 EDT 2009


Ok seems i found what i was missing.. a couple of thing :P at last..

put this in my web.xml (i had to look as first at web.xml of console web-app :) )

  |  <listener>
  |     <description>
  |             Closes the jBPM configuration on servlet context destruction, releasing
  |             application resources. This listener should appear after the job executor
  |             launcher to avoid reopening the configuration.
  |         </description>
  |     <listener-class>org.jbpm.web.JbpmConfigurationCloser</listener-class>
  |   </listener>
  | 
  |   <resource-ref>
  |     <description>
  |       Logical name of the data source that provides connections to the persistence service.
  |       Must match the hibernate.connection.datasource property in the Hibernate 
  |       configuration file.
  |     </description>
  |     <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
  |     <res-type>javax.sql.DataSource</res-type>
  |     <res-auth>Container</res-auth>
  |   </resource-ref>
  | 
  |   <resource-ref>
  |     <description>
  |       Logical name of the factory that provides JMS connections to the message service.
  |       Required for processes that contain asynchronous continuations.
  |     </description>
  |     <res-ref-name>jms/JbpmConnectionFactory</res-ref-name>
  |     <res-type>javax.jms.ConnectionFactory</res-type>
  |     <res-auth>Container</res-auth>
  |   </resource-ref>
  | 
  |   <ejb-ref>
  |     <description>
  |       Link to the local entity bean that implements the scheduler service. Required for
  |       processes that contain timers.
  |     </description>
  |     <ejb-ref-name>ejb/TimerEntityBean</ejb-ref-name>
  |     <ejb-ref-type>Entity</ejb-ref-type>
  |     <home>org.jbpm.ejb.TimerEntityHome</home>
  |     <remote>org.jbpm.ejb.TimerEntity</remote>
  |   </ejb-ref>
  | 
  |   <message-destination-ref>
  |     <description>
  |       The message service sends job messages to the queue referenced here. To ensure 
  |       this is the same queue from which the JobListenerBean receives messages, the 
  |       message-destination-link element points to a common logical destination, JobQueue.
  |     </description>
  |     <message-destination-ref-name>jms/JobQueue</message-destination-ref-name>
  |     <message-destination-type>javax.jms.Queue</message-destination-type>
  |     <message-destination-usage>Produces</message-destination-usage>
  |     <message-destination-link>JobQueue</message-destination-link>
  |   </message-destination-ref>
  | 

and then the jboss-web.xml file.


Sorry for boring you ^_^.. 

T.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221467#4221467

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221467



More information about the jboss-user mailing list