Skip to main content

code to list GlassFish Server JDBC Resources

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
ysri
Offline
Joined: 2014-03-21

Hi,
I am using Eclipse (Kepler SR2) and GlashFish Server 4.

I can lookup a known object using InitalContext lookup

Context ic = new InitialContext();
Context e = (Context) ic.lookup();

Now, how can I programmatically fetch the list of objects that I can lookup on?
I want to list all JDBC Resources using java code

Thanks,
-srinivas y.