[JBoss-user] [Management, JMX/JBoss] - Re: About Securing JSR77 - J2EE Management

2004-11-21 Thread diripu
Thanks,
 So if my remote client has the following lines ,
is it sufficient to handle the security ?Or do i need to
consider some other aspects also.

Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
props.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces);
props.put(Context.PROVIDER_URL, str[1]); // URL
props.put(Context.SECURITY_PRINCIPAL, str[2]); //Username
props.put(Context.SECURITY_CREDENTIALS, str[3]); //Password
InitialContext context = new InitialContext(props);
Object obj = context.lookup( ejb/mgmt/MEJB );
ManagementHome home =  (ManagementHome) 
PortableRemoteObject.narrow(obj,ManagementHome.class);
server = home.create();

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855850#3855850

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855850


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: About Securing JSR77 - J2EE Management

2004-11-19 Thread [EMAIL PROTECTED]
Its secured like any other ejb. Edit the ejb-management.jar ejb-jar.xml 
descriptor to secure the ejb and specify the security domain via a jboss.xml 
descriptor as described in the JAAS Howto:
http://www.jboss.org/index.html?module=bbop=viewtopict=46370


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855735#3855735

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855735


---
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