JBoss Community

Re: Disappearing credentials after publisher.send

created by Bond Chan in JBoss Messaging - View the full discussion

Same issue,

 

SecurityAssociation.getCallerPrincipal() ---->get the right user

 



connection = queueFactory.createQueueConnection("guest","guest");



session = connection.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);


queue = (Queue)sls.getJNDIResource(queueName);





queueSender = session.createSender(queue);


ObjectMessage obj_message = session.createObjectMessage();


obj_message.setObject(obj);




 

queueSender.send(obj_message);

 

SecurityAssociation.getCallerPrincipal() ----->principal= null

 

 

1)How can I upgrade from JBM 1.4.3 ->JBM2.0.0.B4

2)If I pop the seucrity context before invoke JMS code, and push back after queueSender.send(),   works while executed later EJB code, but still get the principal=null  when execution come out to the Sturct action layer and invoke EJB code again

Reply to this message by going to Community

Start a new discussion in JBoss Messaging at Community