-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Access javax.ejb.SessionContext from ConnectionProvider
PostPosted: Mon Feb 09, 2009 4:32 pm 
Newbie

Joined: Thu Feb 05, 2009 3:37 pm
Posts: 13
Hi all

I've implemented the ConnectionProvider interface in order to have my oown connectionProvider. I need to access java.ejb.SessionContext and wanted to know what is the best way to achive this, by now i'm doing

Code:
ctx = (SessionContext)NamingHelper.getInitialContext(props).lookup("java:comp/env/sessionContext");


But dont know if this is the best way, may be its already attached to some object


Thanks in advanced


Julian


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 11, 2009 6:39 pm 
Newbie

Joined: Thu Feb 05, 2009 3:37 pm
Posts: 13
I've found that the above code its not working because im not on an EJB, but I need the logged user, any clue on this? On where to find the EjbContext of the EntityManager?

Thanks a lot

Cheers

Julian


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.