[JBoss-user] [EJB 3.0] - Why does a aread only operation require a transaction?

2006-02-05 Thread thhal
I have a stateless session bean with a method annotated with the transaction attribute type SUPPORTS. The method performs a read-only query. I can't get that to work. I always get the following stack trace: javax.persistence.TransactionRequiredException: EntityManager must be access within a tr

[JBoss-user] [EJB 3.0] - Re: Unable to get TransactionAttributeType SUPPORTS working

2006-02-03 Thread thhal
Anyone out there that knows the answer to this question? Is it a bug in the EJB 3.0 EntityManager implementation? Should I file a JIRA on it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921444#3921444 Reply to the post : http://www.jboss.com/index.html?m

[JBoss-user] [EJB 3.0] - Unable to get TransactionAttributeType SUPPORTS working

2006-01-13 Thread thhal
I have a stateless session bean with a method that creates a query using the entity manager. Since the method is read-only I don't want to force a new transaction so I use the attribute type SUPPORTS. I can't get that to work. I always get the following stack trace: javax.persistence.Transactio