Jojo,
I tried connecting MC4J to ActiveMQ (4.0-M2) using the
JSR160 connection type, but it throws an exception
(java.rmi.ConnectException: Connection refused to
host) when connecting.
Do you have a sample set of the properties (classpath,
jndi, ...) needed to connect MC4J to ActiveMQ?
BTW - JMX support is noted during startup of ActiveMQ:
INFO ManagementContext - JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxconnector
Exception when connecting via MC4J:
java.io.IOException: Failed to retrieve RMIServer
stub: javax.naming.ServiceUnavailableException [Root
exception is java.rmi.ConnectException: Connection
refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused:
connect]
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at
org.mc4j.console.connection.JSR160ConnectionNode.connect(JSR160ConnectionNode.java:132)
at
org.mc4j.console.connection.ReconnectAction.performAction(ReconnectAction.java:47)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Caused by: javax.naming.ServiceUnavailableException
[Root exception is java.rmi.ConnectException:
Connection refused to host: localhost; nested
exception is:
java.net.ConnectException: Connection refused:
connect]
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at
javax.naming.InitialContext.lookup(InitialContext.java:351)
at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1807)
at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1777)
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 17 more
Caused by: java.rmi.ConnectException: Connection
refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused:
connect
at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at
sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown
Source)
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
... 22 more
Caused by: java.net.ConnectException: Connection
refused: connect
at java.net.PlainSocketImpl.socketConnect(Native
Method)
at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
[catch] ... 27 more
Thanks,
Erik
P.S. The link at the bottom of the post provided your
email:
http://www.mail-archive.com/[email protected]/msg00781.html
> You can use JMX console for monitoring your ActiveMQ
message
> broker.
> The JMX console support is available in the 4.0-M2
release.
>
> You can either use Java 5.0 JConsole or MC4J for
hooking up to
> ActiveMQ's JMX service.
>
> On 11/24/05, nafise hasani <[EMAIL PROTECTED]>
wrote:
> Hi Rob
> does ActiveMQ give me an Adminitrative console ?
>
>
> Rob Davies <[EMAIL PROTECTED]> wrote:
> We're using ActiveMQ : http://www.activemq.org/ -
and we are extremely
> happy with it. Performance is very good and so are
the options for
> deployment. It supports p2p, hub n' spoke,
clustering, networks etc. I'd
> recommend you take a look at that
>
> cheers,
>
> rob
>
>
> On 24 Nov 2005, at 11:36, nafise hasani wrote:
>
> Hi
> today I was surfing on the web and found a project
named MantaRay .
> they say that they are the next generation of
middleware ! ( I don't know
> ), take a look at their demo and let's discuss about
that . what do you
> think ?
>
> ________________________________
> Yahoo! Music Unlimited - Access over 1 million
songs. Try it free.
>
>
>
> ________________________________
> Yahoo! Music Unlimited - Access over 1 million
songs. Try it free.
>
>
--
You can make the world a better place for humanity!
http://gawadkalinga.org
http://www.childrenshour.org.ph
http://www.handsonmla.org
http://groups.yahoo.com/group/pinoyjug
http://jojopaderes.blogsome.com
http://jojopaderes.multiply.com
"In preparing for battle I have always found that
plans are useless,
but planning is indispensable." - Eisenhower
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com