[JBoss-user] [Management, JMX/JBoss] - Remote Client for MBean with Security enabled.
Hi Im trying to invoke operations on an MBean from a remote client. I got it working successfully if no authentication is enabled on my jmx-console with this code: Hashtable props = new Hashtable(); props.put(InitialContext.PROVIDER_URL,jnp://:1099); props.put(InitialContext.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory); ctx = new InitialContext(props); MBeanServerConnection server =(MBeanServerConnection) ctx.lookup(jmx/invoker/RMIAdaptor); Object obj = server.invoke(new ObjectName(jboss.ws4ee:service=AxisService),listServiceEndpoints,new Object[0],new String[0]); However if authentication is enabled I cant figure out a way to pass credential information. There seem to be no methods on the MBeanServerConnection where I can set the credential information. This is with JBoss 4. Can anyone point me to where I can find this information? Thanks Pratima View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916550#3916550 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916550 --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Remote Client for MBean with Security enabled.
Never mind found the solution. As per http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoISecureTheJMXConnection the Context.SECURITY_PRINCIPAL Context.SECURITY_CREDENTIALS are propagated. so adding these to my properties helps: props.put(Context.SECURITY_PRINCIPAL, username); props.put(Context.SECURITY_CREDENTIALS, passwd); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916551#3916551 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916551 --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - JBoss AxisServiceMBean
Hi, Im not certain if this si the right forum for this or if I should post it to Management/JMX... I would like to programmatically get a list of all deployed webservices their wsdls from a java client outside the container. By looking at the code that is responsible for generating the webservice list at http://:8080/ws4ee/services I find that I need the AxisServiceMBean. When I look at the -service.xml file I see that this MBean has no Proxy defined so I cant access it from a remote client. Also considering Axis is an implementation detail - Im not sure its really a good idea for me to program against AxisServiceMBean. Im wondering if there is any thing else I can do to get access to this information. Thanks Pratima View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916212#3916212 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916212 --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - createing a datasource through the webconsole
Hi, Is there a way to create a new datasource through the web console? I seem to be able to view the datasource under JMX MBeans/jboss.jca but dont see a weay to add a new one. Thanks PRatima View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855759#3855759 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855759 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user