-
Jul 1st, 2008, 08:00 AM
#1
Connecting MBeanServerConnectionFactoryBean
hi,
I would like to whether i connect throw MBeanServerConnectionFactoryBean without puuting the environment data in the xml or properies files?
for example:
<bean id="runtimeMbeanServerConnection" class="org.springframework.jmx.support.MBeanServer ConnectionFactoryBean"/
>
props.put( HOST, "xxx" );
props.put( PORT, "7001" );
props.put( USERNAME, "weblogic" );
props.put( PASSWORD, "weblogic" );
props.put( CONNECTION_PROTOCOL, "t3" );
ApplicationContext AC = new FileSystemXmlApplicationContext("beans.xml");
i would like to excute something like:
AC.getBean("runtimeMbeanServerConnection", props);
The reason is i am getting this data on runtime.
Thanks/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules