Bond Chan
2013-05-15 07:01:05 UTC
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]
"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]