Hello folks,

I wrote a small mbean. I need to access Database in this mbean.
(may be I shouldn't? use a session/entity bean?)
I tried usual conext.lookup ("java:/DefaultDS"); and it seems to
work fine except for the fact that I have to specify user name and
password in ds.getConnection () method.

In servlets/entityB/session bean I could specify 
<res-auth>Container</res-auth> in the deployment descriptor and
the container took care of auth.

Is there an equivalent for mbeans?

Thanks
-a
  

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

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


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to