Announcement Announcement Module
Collapse
No announcement yet.
start a registry with user/password Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • start a registry with user/password

    Hello all

    I am using a bean defintion to start the registry server
    Code:
    <bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
      <property name="port" value="1099"/>
    </bean>
    How do i secure it using user/password. I know i can start my tomcat with these variable.
    -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
    Code:
    <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>
    doesn't work i can still login without any user/password
    thanks
    Last edited by puran; Nov 6th, 2008, 09:14 PM.
Working...
X