[jboss-user] [EJB/JBoss] - Re: How to get the current user in a SessionBean from the Se

2008-04-09 Thread beherenow
I'm not using the ejb like entity associated to the DB, may it be the problem? Then, how can I get the sessionContext? "The container calls the setSessionContext() method after the instance creation". Maybe not works. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [EJB/JBoss] - Re: How to get the current user in a SessionBean from the Se

2008-04-09 Thread beherenow
yes, thats true. But my problem is that i want to get the sessionContext from the Controller of my application. I put that code into the bean to reference: @Stateless public class ProcessPaymentBean implements ProcessPaymentLocal{ @Resource SessionContect sessionContext; //private SessionContext

[jboss-user] [EJB/JBoss] - Re: How to get the current user in a SessionBean from the Se

2008-04-08 Thread jaikiran
"beherenow" wrote : That's right but.. | | How do you get the current sessionContext? There's a callback method setSessionContext which gets called by the container. See this for more details http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/ejb/SessionBean.html#setSessionContext(javax.ej

[jboss-user] [EJB/JBoss] - Re: How to get the current user in a SessionBean from the Se

2008-04-08 Thread beherenow
That's right but.. How do you get the current sessionContext? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142324#4142324 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142324

[jboss-user] [EJB/JBoss] - Re: How to get the current user in a SessionBean from the Se

2006-08-01 Thread heinrich
hey, thanks alot! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962360#3962360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962360 ___ jboss-user mailing list jboss-user@li

[jboss-user] [EJB/JBoss] - Re: How to get the current user in a SessionBean from the Se

2006-08-01 Thread jaikiran
String user = sessionCtx.getCallerPrincipal().getName() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962176#3962176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962176 __