Hello all
I am using a bean defintion to start the registry server
How do i secure it using user/password. I know i can start my tomcat with these variable.Code:<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean"> <property name="port" value="1099"/> </bean>
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Djava.rmi.server.hostname=localhost-Dcom.sun.management.jmxremote.password.file=$CATAL INA_HOME/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$CATALIN A_HOME/conf/jmxremote.access
but i want to do it from spring config file, anyone had this similar issue.
I even tried
doesn't work i can still login without any user/passwordCode:<property name="environment"> <map> <entry key="jmx.remote.credentials"> <bean class=" org.springframework.util.StringUtils" factory-method="commaDelimitedListToStringArray"> <constructor-arg value="admin,password" /> </bean> </entry> </map> </property>
thanks


Reply With Quote