Statement of Problem
==============
How to use to EJB 3.0 Stateless Session Bean from within a JBoss Service.

Scenario
=======
1. I have created a LoginModule which I am packaging as a SAR DynamicConfig 
MBean. The LoginModule internally calls Stateless Session bean to authenticate 
userid and password.

2. The EJB is configured to use this Login Module. The LoginModule is called 
when the web-tier tries to access a restricted resource. However within this 
login Module, I am unable to obtain reference to Stateless Session Bean.

Errors I am getting in JBoss
==================
When I do not package the Remote interface of the Session bean, I get the

NoClassDefFound Exception       


else when I package the Stateless Session Bean Remote interface class file into 
the SAR. I get ClassCastException:

java.lang.ClassCastException: $Proxy187 

I have tried all combinations of lookups and @EJB injection, nothing seems to 
work. I would appreciate any help.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917971#3917971

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917971


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to