Hello,

    If you're a newbie like me I guess the best place to start learning about 
the timer would be running the websale example successfully. Running it was not 
really easy in my case. You have to pick a db of your choice yiu are 
comfortable with where you can see the data changes, MySQL for me. A few 
pointers that I like to share ( for other JBoss and hibernate instructions and 
configurations see the posts here, there are lots of it)

   1. Your tables must be created sucessfully and identities (users) must be 
populated. Check posts here on how to do it. The websale.par must of course be 
deployed. I was not successful using ant, so I had to do it the hard way via 
eclipse. 

   2. You must test it using JBoss because it makes use of MBeans. It is where 
it initially loads the JBPMSession and hibernate mappings. i think unless you 
know how to deploy it in other appservers. I dont know how to use hibernate but 
i dont think its necessary.

   3. There are two directories to take note in the deploy. the jbpm.sar and 
the jbpm.war. I mention this bec. the location where you should place the 
action classes should be in the jbpm.sar. To do this,  create a folder and name 
it websale.jar or any name with .jar extension. Under this place the 
org.jbpm.websale action classes (with the proper directories org>jbpm>websale). 
You timer demo will not work if it cannot find the action handler classes. 
   
   The configuration and setup is really difficult at first but when you have 
the app running, there's nothing to it. The SchedulerThread is started in the 
web app side during startup. It continually looks for entries in the jbpm_timer 
table. Once there are entries past the due date, it executes the related action 
handler. That's why if it cant find the action hanlder your test will fail. The 
reason why I place it in the jbpm.sar is because this is where the jbpm 
executes the process. For more info, read the other posts. I hope this helps. 

Regards,

Elmo


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to