You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by paksiw <ki...@hp.com> on 2009/05/29 08:05:55 UTC
Problem changing the managementContext default port 1099
Hi,
I understand from the documentation that I'll need to enable the management
context connector in order for me to successfully use the "activemq-admin
stop" command.
I want to change the Management Context default port from 1099 to 1199. I
tried changing the management context connectionPort in conf/activemq.xml
but when I started activemq, I'd still see the following message:
INFO ManagementContext - JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
meaning, the management context port remains unchanged.
Here is how i configured the managementContext in conf/activemq.xml:
<managementContext>
<managementContext createConnector="true"/>
<managementContext connectorPort="1199" rmiServerPort="1199"/>
</managementContext>
Please help me. How do I change the default connector port 1099?
Thank you.
--
View this message in context: http://www.nabble.com/Problem-changing-the-managementContext-default-port-1099-tp23774662p23774662.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem changing the managementContext default port 1099
Posted by paksiw <ki...@hp.com>.
Forgot to mention, I'm using activemq version 5.2 in Linux.
paksiw wrote:
>
> Hi,
>
> I understand from the documentation that I'll need to enable the
> management context connector in order for me to successfully use the
> "activemq-admin stop" command.
>
> I want to change the Management Context default port from 1099 to 1199. I
> tried changing the management context connectionPort in conf/activemq.xml
> but when I started activemq, I'd still see the following message:
>
> INFO ManagementContext - JMX consoles can connect to
> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>
> meaning, the management context port remains unchanged.
>
> Here is how i configured the managementContext in conf/activemq.xml:
>
> <managementContext>
> <managementContext createConnector="true"/>
> <managementContext connectorPort="1199" rmiServerPort="1199"/>
> </managementContext>
>
> Please help me. How do I change the default connector port 1099?
>
> Thank you.
>
>
--
View this message in context: http://www.nabble.com/Problem-changing-the-managementContext-default-port-1099-tp23774662p23774677.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem changing the managementContext default port 1099
Posted by Dejan Bosanac <de...@nighttale.net>.
Not sure what's happening on your machine. Can you try removing
"rmiServerPort" from the conf?
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Fri, May 29, 2009 at 9:24 AM, paksiw <ki...@hp.com> wrote:
>
> Thank you, connector port was successfully changed. However when I executed
> the activemq script the following error occured:
>
> WARN ManagementContext - Failed to start jmx connector:
> Cannot
> bind to URL [rmi://localhost:1199/jmxrmi]:
> javax.naming.NoPermissionException [Root exception is
> java.rmi.ServerException: RemoteException occurred in server thread; nested
> exception is:
> java.rmi.AccessException: Cannot modify this registry]
>
> Did I miss to change anything else in the configurations?
>
> Thanks.
>
>
> Hi,
>
> try using just one <managementContext> tag like
>
> <managementContext>
> <managementContext createConnector="true" connectorPort="1199"
> rmiServerPort="1199"/>
> </managementContext>
>
> that should work.
>
> Cheers
> --
> Dejan Bosanac
>
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
> --
> View this message in context:
> http://www.nabble.com/Problem-changing-the-managementContext-default-port-1099-tp23774662p23775474.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
Re: Problem changing the managementContext default port 1099
Posted by paksiw <ki...@hp.com>.
Thank you, connector port was successfully changed. However when I executed
the activemq script the following error occured:
WARN ManagementContext - Failed to start jmx connector: Cannot
bind to URL [rmi://localhost:1199/jmxrmi]:
javax.naming.NoPermissionException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.AccessException: Cannot modify this registry]
Did I miss to change anything else in the configurations?
Thanks.
Hi,
try using just one <managementContext> tag like
<managementContext>
<managementContext createConnector="true" connectorPort="1199"
rmiServerPort="1199"/>
</managementContext>
that should work.
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
--
View this message in context: http://www.nabble.com/Problem-changing-the-managementContext-default-port-1099-tp23774662p23775474.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem changing the managementContext default port 1099
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,
try using just one <managementContext> tag like
<managementContext>
<managementContext createConnector="true" connectorPort="1199"
rmiServerPort="1199"/>
</managementContext>
that should work.
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Fri, May 29, 2009 at 8:09 AM, paksiw <ki...@hp.com> wrote:
>
>
> Forgot to mention that I am using activemq 5.2 in linux
>
>
> paksiw wrote:
> >
> > Hi,
> >
> > I understand from the documentation that I'll need to enable the
> > management context connector in order for me to successfully use the
> > "activemq-admin stop" command.
> >
> > I want to change the Management Context default port from 1099 to 1199. I
> > tried changing the management context connectionPort in conf/activemq.xml
> > but when I started activemq, I'd still see the following message:
> >
> > INFO ManagementContext - JMX consoles can connect to
> > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> >
> > meaning, the management context port remains unchanged.
> >
> > Here is how i configured the managementContext in conf/activemq.xml:
> >
> > <managementContext>
> > <managementContext createConnector="true"/>
> > <managementContext connectorPort="1199" rmiServerPort="1199"/>
> > </managementContext>
> >
> > Please help me. How do I change the default connector port 1099?
> >
> > Thank you.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-changing-the-managementContext-default-port-1099-tp23774662p23774687.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
Re: Problem changing the managementContext default port 1099
Posted by paksiw <ki...@hp.com>.
Forgot to mention that I am using activemq 5.2 in linux
paksiw wrote:
>
> Hi,
>
> I understand from the documentation that I'll need to enable the
> management context connector in order for me to successfully use the
> "activemq-admin stop" command.
>
> I want to change the Management Context default port from 1099 to 1199. I
> tried changing the management context connectionPort in conf/activemq.xml
> but when I started activemq, I'd still see the following message:
>
> INFO ManagementContext - JMX consoles can connect to
> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>
> meaning, the management context port remains unchanged.
>
> Here is how i configured the managementContext in conf/activemq.xml:
>
> <managementContext>
> <managementContext createConnector="true"/>
> <managementContext connectorPort="1199" rmiServerPort="1199"/>
> </managementContext>
>
> Please help me. How do I change the default connector port 1099?
>
> Thank you.
>
>
--
View this message in context: http://www.nabble.com/Problem-changing-the-managementContext-default-port-1099-tp23774662p23774687.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.