It was present in the 4.0-M1. I check in the 4.0 release.

Regards
JB

Charles Moulliard wrote:
Such a file does not exist in the distro of ServiceMix kernel. I will create
it in my local copy of ServiceMix kernel 1.1.0.

On Mon, Apr 27, 2009 at 11:29 AM, Jean-Baptiste Onofré <[email protected]>wrote:

Sorry Charles, I have forgotten to give the tip for SMX4.

So, using SMX4, you have a file etc/org.apache.servicemix.management.cfg
where you can change the RMI registry port (1099 by default).


Regards
JB

Charles Moulliard wrote:

Sorry. I forget to mention that it is for SMX 4.

I made a test locally on my machine but JMX error is reported

C:\Temp\apache-servicemix-kernel2-1.1.0\bin>servicemix
Exception in thread "JMX Connector Thread
[service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi]"
org.springframework.jmx.JmxException: Could not start JMX connector ser
r after delay; nested exception is java.io.IOException: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException:
jmxrmi [Root exception
s java.rmi.AlreadyBoundException: jmxrmi]
       at

org.springframework.jmx.support.ConnectorServerFactoryBean$1.run(ConnectorServerFactoryBean.java:157)
Caused by: java.io.IOException: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException:
jmxrmi [Root exception is java.rmi.AlreadyBoun
xception: jmxrmi]
       at

javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
       at

javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
       at

org.springframework.jmx.support.ConnectorServerFactoryBean$1.run(ConnectorServerFactoryBean.java:154)
Caused by: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception
is
java.rmi.AlreadyBoundException: jmxrmi]
       at
com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
       at

com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
       at javax.naming.InitialContext.bind(InitialContext.java:400)
       at

javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
       at

javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
       ... 1 more
Caused by: java.rmi.AlreadyBoundException: jmxrmi
       at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)
       at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
       at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
       at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
       at sun.rmi.transport.Transport$1.run(Transport.java:159)
       at java.security.AccessController.doPrivileged(Native Method)
       at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
       at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
       at

sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
       at

sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
       at

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:619)
       at

sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
       at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
       at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
       at
com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
       ... 5 more
 ____                  _          __  __ _
/ ___|  ___ _ ____   _(_) ___ ___|  \/  (_)_  __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
 ___) |  __/ |   \ V /| | (_|  __/ |  | | |>  <
|____/ \___|_|    \_/ |_|\___\___|_|  |_|_/_/\_\

 ServiceMix Kernel (1.1.0)

Type 'help' for more information.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
s...@root:/> java.net.BindException: Address already in use: bind
       at sun.nio.ch.Net.bind(Native Method)
       at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
       at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
       at

org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)
       at

org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)
       at

org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)
       at

org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
       at

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:619)

call >> MyTransform set body:  Mon Apr 27 11:11:44 CEST 2009
call >> MyTransform set body:  Mon Apr 27 11:11:54 CEST 2009

exit
ERROR IllegalStateException: Shell has not been opened or has been closed
s...@root:/> >> call >> MyTransform set body:  Mon Apr 27 11:12:04 CEST
2009

and I cannot talk with the console of the second instance started.


On Mon, Apr 27, 2009 at 11:15 AM, Jean-Baptiste Onofré <[email protected]
wrote:
 Hi Charles,
yes you can. If you talk about ServiceMix 3, you need to change :
- the conf/servicemix.properties file (the RMI and ActiveMQ port number)
- the conf/activemq.xml to use the ActiveMQ port number defined in the
conf/servicemix.properties file.

Regards
JB


Charles Moulliard wrote:

 Hi,
Can we run two separate ServiceMix servers on same machine ? If this is
the
case, can we define the port number of the server ? idem for JMX ?

Regards,

Charles
SOA Architect
Apache Camel Committer




Reply via email to