Well, I'll try to clarify my question.

I've an MBean, launched by dispatcher, which every minute verifies the hour and, in 
some specific moments, calls an EJB. 

I've developed an Entity Bean to access the database, and this EJB is controlled by 
the corresponding Session Bean. My problem is that I don't know how to launch this 
Session Bean from the MBean, how to create a Session Bean object in the MBean to 
access, by the Entity Bean, to the database. 

I've tried to do this of many forms. Sometimes, I obtain a NamingException "not 
bound", using the BeanManager class defined by sun in Duke'sBank example. If I use 
this source code directly, I obtain an java.lang.reflect.UndeclaredThrowableException. 
And this code only tries to obtain a home interface of this EJB!! 

I think the problem is around contexts, because I'm calling an EJB from an MBean, 
instead of calling from a Servlet. But I don't know how to solve it!

If somebody has any suggestion, tell me it, please.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to