[
https://issues.apache.org/jira/browse/GERONIMO-4499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661663#action_12661663
]
David Jencks commented on GERONIMO-4499:
----------------------------------------
we should probably be using the vm transport for the connectors.
It would be great if we could put in some substitutions into the spring config
file. I looked around a bit and didn't see any way to supply spring with
substitutions in code. I'd like it to work by giving spring the substitutions
before it looks at the config file. Do you see a way to do this? The only way
to use substitutions I saw was to include a component in the config file that
e.g. looked up a properties file itself.
> can't use PortOffset in var\config\config-substitutions.properties to start
> two geronimo instance at the same machine.
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-4499
> URL: https://issues.apache.org/jira/browse/GERONIMO-4499
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: ActiveMQ
> Affects Versions: 2.2
> Environment: Windows XP SP 2 + IBM SDK 1.5.0
> Reporter: Shawn Jiang
> Priority: Minor
>
> I'm trying to use PortOffset in var\config\config-substitutions.properties to
> start two geronimo instance at the same machine.
> 1, install two geronimo server serverA, serverB.
> 2, update the PortOffset in var\config\config-substitutions.properties from 0
> to 10 for serverB.
> 3, start serverA.
> 4, start serverB.
> *expected result*: Both serverA and serverB could be started without
> problems.
> *actual result*: serverA started, but server B failed to start with a
> exception below in log:
> -------------------------------------
> 2009-01-07 17:23:08,562 ERROR [BrokerService] Failed to start ActiveMQ JMS
> Message Broker. Reason: java.io.IOException: Transport Connector could not be
> registered in JMX: Failed to bind to server socket: tcp://localhost:61616 due
> to: java.net.BindException: Address already in use: JVM_Bind
> java.io.IOException: Transport Connector could not be registered in JMX:
> Failed to bind to server socket: tcp://localhost:61616 due to:
> java.net.BindException: Address already in use: JVM_Bind
> at
> org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> at
> org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1427)
> at
> org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1886)
> at
> org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1837)
> at
> org.apache.activemq.broker.BrokerService.start(BrokerService.java:473)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.