[jboss-user] [JBoss Messaging] - Re: Disappearing credentials after publisher.send

Bond Chan do-not-reply at jboss.com
Wed May 15 03:01:05 EDT 2013


Bond Chan [https://community.jboss.org/people/bondchan921] created the discussion

"Re: Disappearing credentials after publisher.send"

To view the discussion, visit: https://community.jboss.org/message/817752#817752

--------------------------------------------------------------
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
[https://community.jboss.org/message/817752#817752]

Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130515/8091c24d/attachment-0001.html 


More information about the jboss-user mailing list