[jboss-user] [JBoss Seam] - Re: Longrunning process
hispeedsurfer
do-not-reply at jboss.com
Mon Feb 11 23:54:32 EST 2008
Hi,
I have a mdb
@MessageDriven(name="QueryMessageBean", activationConfig = {
| @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination", propertyValue="queue/oatsMessageQueue"),
| @ActivationConfigProperty(propertyName="maxSession", propertyValue="1")
|
| })
| @Name("queryMessageBean")
| public class QueryMessageBean implements MessageListener {
|
| @Resource
| private MessageDrivenContext context;
| @In(create=true)
| private MySqlToORDB mySqlToOrdb;
and on class header of MySqlToOrdb I have declared these transactionattribute
@Stateless
| @Name("mySqlToOrdb")
| @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
| public class MySqlToORDbBean implements MySqlToORDB {
|
| @PersistenceContext
| private EntityManager entityManager;
I hope this helps
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128568#4128568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128568
More information about the jboss-user
mailing list