Problem while using invm in hornetq
rahul_516 Feb 15, 2011 1:36 AMHi ,
Iam using Hornetq as my queue solution . Pardon my ignorance iam new to hornetq .
I have
1) 4 remote clients
2) 1 Invm client , as in my hornetq server and client run in the same process.
For invm client iwant to use the netty invm .
iam not able to set it up correctly:
I used this in my hornetq-configuration.xml file
<acceptors>
<acceptor name="netty-invm">
<factory-class>
org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory
</factory-class>
<param key="use-invm" value="true"/>
<param key="host" value="${hornetq.remoting.netty.host:localhost}"/>
</acceptor>
<acceptor name="netty">
<factory-class>
org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory
</factory-class>
<param key="host"
value="${hornetq.remoting.netty.host:10.14.100.49}"/>
<param key="port" value="${hornetq.remoting.netty.port:5445}"/>
</acceptor>
<acceptor name="netty-throughput">
<factory-class>
org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory
</factory-class>
<param key="host"
value="${hornetq.remoting.netty.host:10.14.100.49}"/>
<param key="port"
value="${hornetq.remoting.netty.batch.port:5455}"/>
<param key="batch-delay" value="50"/>
<param key="direct-deliver" value="false"/>
</acceptor>
</acceptors>
I get the following error:
DEPLOYMENTS IN ERROR:
Deployment "Configuration" is in error due to: java.lang.NumberFormatException: For input string: "10
"
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JMSServerManager" is missing the following dependencies:
Dependency "HornetQServer" (should be in state "Installed", but is actually in state "Described")
Deployment "HornetQServer" is missing the following dependencies:
Dependency "Configuration" (should be in state "Installed", but is actually in state "**ERROR**")
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:158)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)
at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:116)
at com.inmobi.services.platform.ces.BillableEventService.main(BillableEventService.java:28)
FAILED::Incompletely deployed:
DEPLOYMENTS IN ERROR:
Deployment "Configuration" is in error due to: java.lang.NumberFormatException: For input string: "10
"
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JMSServerManager" is missing the following dependencies:
Dependency "HornetQServer" (should be in state "Installed", but is actually in state "Described")
Deployment "HornetQServer" is missing the following dependencies:
Dependency "Configuration" (should be in state "Installed", but is actually in state "**ERROR**")
==================
All my clients are JMS based. How to make sure that my invm client uses the netty invm and all the other clients use remote thingy.
Pardon my ignorance