I am using JBoss 4.2.1 with Snapshot 5.0 of Active MQ I am facing the very same issue. Without the entry for the management context, I see the following error: 19:29:41,343 WARN [ManagementContext] Failed to start jmx connector: Cannot bin d to URL [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Roo t exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
However, once I place the entry for the management context and changed the port to 1198, I find the error no longer occurs and I am able to connect to that port using JConsole. My definition in broker-config.xml is: <managementContext> <managementContext createConnector="true" connectorPort="1198" /> </managementContext> Additionally running a "netstat -a" show the port as bound. Not sure if this helped. Matt Flowers-2 wrote: > > Yes I have the managementContext entry. > > > > My original question was about that. I made the changes, but it still > uses 1099. I'm wondering if I have to change something else. > > > > I have also tried it with other permutiations with and without > connectorPort and createConnector: > > > > I've tried this: > > <broker useJmx="true" brokerName="brokerX" > xmlns="http://activemq.org/config/1.0"> > > <managementContext> > > <managementContext createConnector="false" > connectorPort="1199" /> > > </managementContext> > > ... > > </broker> > > > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DJ > Daugherty > Sent: Thursday, November 08, 2007 12:40 PM > To: Matt Flowers > Subject: Re: JBoss JMX port problem > > > > i am assuming you are using a broker-config.xml file to control your > broker properties... do you have an entry similar to this near the > bottom of the file? > > <managementContext> > <managementContext connectorPort="1199" /> > </managementContext> > > On 11/8/07, Matt Flowers <[EMAIL PROTECTED]> wrote: > > It's a resource adapter in JBoss deployed as a RAR. It's not a separate > process. I set it up based on the instructions I found here: > http://activemq.apache.org/integrating-apache-activemq-with-jboss.html. > > Running on windows XP, by the way. Don't think I mentioned that. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DJ > Daugherty > Sent: Thursday, November 08, 2007 11:54 AM > To: users@activemq.apache.org > Subject: Re: JBoss JMX port problem > > how are you starting the activeMQ process? > > On 11/8/07, Matt Flowers <[EMAIL PROTECTED]> wrote: >> >> I'm running the resource adapter version of ActiveMQ. As far as I know > >> there isn't an activemq.xml used in that set up. Is this something I >> could add somewhere? >> >> -----Original Message----- >> From: DJ Daugherty [mailto: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> ] >> Sent: Thursday, November 08, 2007 10:56 AM >> To: users@activemq.apache.org >> Subject: Re: JBoss JMX port problem >> >> within the activeMQ directory... the default JMX port will be 1099 >> unless >> you manually change the port to 1199. >> >> within the conf/activemq.xml config file... do a search for >> connectorPort=1099 >> >> change the '1099' to '1199' and then make sure you uncomment the >> <managementContect> section in order to active the feature. You can >> verify >> the change when you restart activeMQ... the console output will >> indicate >> 'JMX consoles can connect...' and the 1199 port value should be > listed. >> >> hope this resolves your issue. >> >> On 11/8/07, Matt Flowers <[EMAIL PROTECTED]> wrote: >> > >> > I'm running : >> > ActiveMQ RA 4.1.1. >> > JBoss 4.0.5. >> > >> > I've got JBoss binding JMX to port 1199. ActiveMQ binds to 1099. I'm >> > doing local messaging only within the app server. No clustering or >> > remoting or anything like that. I can't have ActiveMQ using 1099 -- >> > another app needs that port. >> > >> > I've tried this: >> > <broker useJmx="true" brokerName="brokerX" >> > xmlns="http://activemq.org/config/1.0"> >> > <managementContext> >> > <managementContext createConnector="false" >> > connectorPort="1199" /> >> > </managementContext> >> > ... >> > >> > But ActiveMQ still binds to 1099 when it starts up. >> > >> > Anyone know what I'm missing? >> > >> > Thanks. >> > >> > > > > > -- View this message in context: http://www.nabble.com/JBoss-JMX-port-problem-tf4771897s2354.html#a13738574 Sent from the ActiveMQ - User mailing list archive at Nabble.com.