Announcement

Collapse
No announcement yet.

Mirth config for JNDI/RMI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth config for JNDI/RMI

    I would like to run Mirth on the same machine that is running JBoss Application Server. The latter has a JNDI service that uses port 1099. I would like to reconfigure Mirth so that it either
    (a) Does not run its own JNDI service and uses the JBoss service instead
    or
    (b) Does not run its JNDI service on port 1099.

    Any help on how to change the mirth config for either of the options would be highly appreciated.

  • #2
    Re: Mirth config for JNDI/RMI

    There is a complete guide at the wiki:

    http://www.mirthproject.org/index.ph...4&id=confmirth

    Yo need to change 3 params: two at mule-boot and one at mirth.properties

    Comment


    • #3
      Re: Mirth config for JNDI/RMI

      I tried making the changes suggested in the wiki item, but mule still uses port 1099. Here are the excerpts from my config files:

      mule-boot.xml. The serverUri for RMI did not exist in the file; I added it.
      Code:
      	<agents>
      		<agent name="RMI"
      			className="org.mule.management.agents.RmiRegistryAgent" >
      			   <properties>
                                              <property name="serverUri" value="rmi://localhost:1096" />
                                 </properties>
      		</agent>
      		<agent name="JMX" className="org.mule.management.agents.JmxAgent">
      			<properties>
      				<property name="connectorServerUrl"
      					value="service:jmx:rmi:///jndi/rmi://localhost:1096/server" />
      
      				<map name="connectorServerProperties">
      					<property name="jmx.remote.jndi.rebind" value="true" />
      				</map>
      			</properties>
      		</agent>
      	</agents>
      mirth.properties. Notice that I changed the http port and that worked.
      Code:
      # configuration
      configuration.id=MirthConfiguration
      http.port=8088
      http.htdocs=public
      https.port=8443
      server.url=
      # jmx connection
      jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1096/server
      # database connection
      database.url=jdbc:hsqldb:file:database/mirth
      database.user=sa
      database.password=
      database.driver=org.hsqldb.jdbcDriver
      database.shutdown=true
      # mule
      mule.config = conf/mule-config.xml
      mule.boot = conf/mule-boot.xml
      This is the mule-config that is generated.
      Code:
          <agents>
              <agent className="org.mule.management.agents.RmiRegistryAgent" name="RMI"/>
              <agent className="org.mule.management.agents.JmxAgent" name="JMX">
                  <properties>
                      <property name="connectorServerUrl" value="service:jmx:rmi:///jndi/rmi://localhost:1099/server"/>
                      <map name="connectorServerProperties">
                          <property name="jmx.remote.jndi.rebind" value="true"/>
                      </map>
                  </properties>
              </agent>
          </agents>
      Originally posted by albertosaez
      There is a complete guide at the wiki:

      http://www.mirthproject.org/index.ph...4&id=confmirth

      Yo need to change 3 params: two at mule-boot and one at mirth.properties

      Comment


      • #4
        Re: Mirth config for JNDI/RMI

        Yo need to:

        1. Deploy the channles
        2. Stop and Start mirth

        This is because:
        -> The mule-boot.xml is readed (and copied to the mule-conf.xml) only when the channels are deployed.
        -> The RMI server is started at the booting of Mirth

        Comment


        • #5
          Re: Mirth config for JNDI/RMI

          Deploying the channels was the trick. I had started and stopped several times previously to no avail.

          Thank you very much for your help.

          Comment

          Working...
          X