tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Gumbrecht <agumbre...@tomitribe.com>
Subject Re: Asynchronous principal propagation
Date Thu, 22 May 2014 12:20:23 GMT
If you call the 'ejb2' directly does that work?
Also, how are you accessing 'ejb2' from 'ejb1'?

Andy.

On 22/05/2014 13:54, Romain Manni-Bucau wrote:
> Hi,
>
> hehe kind of true but before I'd ask you to test 1.7.0-SNAPSHOT ;)
>
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-05-22 13:50 GMT+02:00 hwaastad <helge@waastad.org>:
>
>> Hi,
>> I have an issue with principal propagation to an asynchronous EJB.
>> This is TomEE 1.6.0
>>
>> Scenario:
>>   -> Stateless EJB (ejb1) -> Asynchronous Stateless EJB(ejb2)
>>
>> First Request is authorized to the container and
>> sessioncontext.getCallerPrincipal.getname is equal in both beans. (eks
>> user@domain.com>
>>
>> Second request is unauthorized which ejb1 prints out "guest" however ejb2
>> prints out user@domain.com.......
>>
>> If I skip asynchronous its working as normal.
>>
>> I guess the next question will be a sample project and I'll see what I can
>> do :-)
>>
>> br hw
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/Asynchronous-principal-propagation-tp4669547.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>

-- 
   Andy Gumbrecht

   http://www.tomitribe.com
   agumbrecht@tomitribe.com
   https://twitter.com/AndyGeeDe

   TomEE treibt Tomitribe! | http://tomee.apache.org


Mime
View raw message