All right,

i've done it, but not like a servlet. When i start the jbpmSession, i start the 
Scheduler too. But i open the code of the SchedulerThread and i sow that it get 
the Instance of JbpmFactory and when it open the session it open with begin 
transacion. And i'm using CMT transaction, and i don't know if it is right, but 
the tread keep running and give me same transaction messages (see below):

[14/12/05 15:38:47:621 GMT-03:00]  dabf47a JbpmSession   E 
org.jbpm.db.JbpmSession  org.hibernate.TransactionException: Could not register 
synchronization for container transaction
  | 
  | [14/12/05 15:38:47:652 GMT-03:00]  dabf47a SchedulerThre I 
org.jbpm.scheduler.impl.SchedulerThread  runtime exception while executing 
timers
  | 
  | [14/12/05 15:38:47:652 GMT-03:00]  dabf47a SchedulerThre I 
org.jbpm.scheduler.impl.SchedulerThread  TRAS0014I: A seguinte exceção foi 
registrada java.lang.RuntimeException: couldn't begin a transaction
  |     at org.jbpm.db.JbpmSession.beginTransaction(JbpmSession.java:93)
  |     at 
org.jbpm.db.JbpmSessionFactory.openJbpmSessionAndBeginTransaction(JbpmSessionFactory.java:186)
  |     at 
org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:64)
  |     at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:34)
  | Caused by: org.hibernate.TransactionException: Could not register 
synchronization for container transaction
  |     at 
org.hibernate.transaction.CMTTransaction.begin(CMTTransaction.java:45)
  |     at 
org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1205)
  |     at org.jbpm.db.JbpmSession.beginTransaction(JbpmSession.java:89)
  |     ... 3 more
  | .
  |                                  java.lang.RuntimeException: couldn't begin 
a transaction
  |     at org.jbpm.db.JbpmSession.beginTransaction(JbpmSession.java:93)
  |     at 
org.jbpm.db.JbpmSessionFactory.openJbpmSessionAndBeginTransaction(JbpmSessionFactory.java:186)
  |     at 
org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:64)
  |     at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:34)
  | Caused by: org.hibernate.TransactionException: Could not register 
synchronization for container transaction
  |     at 
org.hibernate.transaction.CMTTransaction.begin(CMTTransaction.java:45)
  |     at 
org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1205)
  |     at org.jbpm.db.JbpmSession.beginTransaction(JbpmSession.java:89)
  |     ... 3 more

Tou know how to solve this? Or i'll ovewrite this class for adaptation !

Thanks for your reply, it was very usefull!

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

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


-------------------------------------------------------
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_idv37&alloc_id865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to