JNDI properties for JCAPS

Hi I have installed the Logical Host of JCAPS .Also I can explore the different

MBeans of it using JConsole.

If I want to access those MBeans programmatically what would be the

JNDI properties ?

For examplke if I want to access JBoss 3.2.5 MBeans My sample code would be something like ....

*************

InitialContext ctx = null;

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactor y");

env.put(Context.PROVIDER_URL, "jnp://localhost:1099");

env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");

ctx = new InitialContext(env);

************************

So what would be my INITIAL_CONTEXT_FACTORY,PROVIDER_URL,URL_PKG_PREFIXES etc

in this case ?

If somebody has any idea please reply . When I was working with JBoss 3.2.5, I got all the related information from JBoss Administration Guide .

Does JCAPS has any specific doc which can help me in this regard ?

Regards,

Ayan

[1074 byte] By [Ayan_Kolkata] at [2007-11-26 11:52:02]
# 1
I know this is not an answer for your question, but I saw that you used JConsole to access the MBeans. i have JCAPS on AIX and I could not get Jconsole work with it. If you JCAPS on AIX, could you tell me how you got it working.Thankskiran
kinnur at 2007-7-7 12:07:38 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2
Sorry, I have not used AIX ,in my case it is windows.Regards,Ayan
Ayan_Kolkata at 2007-7-7 12:07:38 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 3

I use the following properties to connect to the jndi tree.

env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");

env.put("java.naming.provider.url", "iiop://localhost:18002");

But!

I don't see any of my jcd's when I walk this tree.

Can anyone tell me why? I'm expecting to see a list of jcds.

When I look into the sun-ejb-jar.xml file, I see that I should be able to lookup the deployed service with the following name;

ic.lookup("java:comp/env/ejb/local/stc/testHarness3Deployment1/deployedServices/CMap1_Collaboration_11")

Are my assumptions correct, or is my jndi knowledge faulty?

deniskrizanovic at 2007-7-7 12:07:38 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 4
>>Also I can explore the different MBeans of it using JConsole.Could you tell us which JMS URL you are using?Cheers, Sebastian.
sebykrueger at 2007-7-7 12:07:38 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 5
To use JConsole with JCAPS logicalhost:Brows to the Integration Server Web Console -> Configuration -> JVM Settings -> JVM OptionsAdd JVM Option-Dcom.sun.management.jmxremoteThen start JConsole.Sebastian.
sebykrueger at 2007-7-7 12:07:38 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...