Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-09-06 Thread jieryn
Greetings, On Thu, Sep 5, 2013 at 5:28 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: no, you need to specify it using arquillian @Transactional(ROLLBACK) either on the class or methods. Note: it only works in server side tests, not in client side ones Even after the

Re: TransactionAttribute

2013-09-06 Thread José Luis Cetina
I fixed using @TransactionAttribute(TransactionAttributeType.REQUIRED) in the class (the default) and then an each method if i dont need a transaction i use @TransactionAttribute(TransactionAttributeType.NEVER) 2013/9/6 José Luis Cetina maxtorz...@gmail.com Hi, i have a problem with this.

Re: TransactionAttribute

2013-09-06 Thread José Luis Cetina
Hi, i have a problem with this. My EJB is annotated with TransactionAttributeType.NEVER and TransactionManagementType.CONTAINER, my ejb method use TransactionAttributeType.REQUIRED, my idea is that every method when need a transaction they use TransactionAttributeType.REQUIRED and then persist,

Re: Bug in security TomEE

2013-09-06 Thread Thiago Veronezi
Authentication and authorization are two different things. If you try to access a protected resource and you are not authenticated, the server will ask for your username.password. After having you authenticated, the server will check if your user is authorized to access the requested resource. If

Re: Bug in security TomEE

2013-09-06 Thread Thiago Veronezi
So, what should I do if i want to get to protected resource, when i'm authenticated only as user and i want to get authorized as admin ? I have to logout and login again ? Yes... I guess, I don't remember if changes to a user security-roles are automatically reflected without a logout/login.

Re: Bug in security TomEE

2013-09-06 Thread kuba44
Authentication and authorization are two different things. If you try to access a protected resource and you are not authenticated, the server will ask for your username.password. After having you authenticated, the server will check if your user is authorized to access the requested resource. If

Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext

2013-09-06 Thread jieryn
Greetings, On Fri, Sep 6, 2013 at 9:39 AM, jieryn jie...@gmail.com wrote: On Thu, Sep 5, 2013 at 5:28 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: no, you need to specify it using arquillian @Transactional(ROLLBACK) either on the class or methods. Note: it only works in server side