You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by westd <we...@yahoo.co.uk> on 2007/04/10 18:26:19 UTC

Open port (1099) when using vm transport protocol

Hi,

I am trying to use the vm://localhost transport for an embedded active mq
broker.  The embedded broker listens on port 1099 and another random port. 
When using tcp transport, these ports are not used.  I wouldn't mind too
much if these ports were only accessible on localhost, but they are
externally accessible and I am not allowed to open external ports on our
device.

Is there an option I can use to stop this?

Thanks
-- 
View this message in context: http://www.nabble.com/Open-port-%281099%29-when-using-vm-transport-protocol-tf3553820s2354.html#a9922513
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Open port (1099) when using vm transport protocol

Posted by James Strachan <ja...@gmail.com>.
I suspect you are creating the broker yourself via a JMS
ConnectionFactory first before the <amq:broker> is initialized; make
sure your broker is created first before any connection factories are
used.


On 4/11/07, westd <we...@yahoo.co.uk> wrote:
>
> My broker is configured using Spring 2 as shown at the end of this message.
> I have 'useJmx=false' set but still the ports 1099 and a random port are
> opened in the case of the vm protocol.  Is there something I'm missing?
>
> Thanks.
>
>         <amq:broker brokerName="broker" persistent="true" useShutdownHook="true"
> deleteAllMessagesOnStartup="true" useJmx="false">
>
>       <amq:memoryManager>
>            <amq:usageManager id="memory-manager" limit="5048576"/>
>        </amq:memoryManager>
>
>                 <amq:transportConnectors>
>                         <amq:transportConnector uri="vm://localhost"/>
>                 </amq:transportConnectors>
>
>                 <amq:persistenceAdapter>
>                         <amq:jdbcPersistenceAdapter>
>                                 <property name="cleanupPeriod" value="60000"/>
>                                 <property name="dataSource" ref="postgres-ds"/>
>                         </amq:jdbcPersistenceAdapter>
>                 </amq:persistenceAdapter>
>         </amq:broker>
>
>
> Christopher G. Stach II wrote:
> >
> > westd wrote:
> >> Hi,
> >>
> >> I am trying to use the vm://localhost transport for an embedded active mq
> >> broker.  The embedded broker listens on port 1099 and another random
> >> port.
> >> When using tcp transport, these ports are not used.  I wouldn't mind too
> >> much if these ports were only accessible on localhost, but they are
> >> externally accessible and I am not allowed to open external ports on our
> >> device.
> >>
> >> Is there an option I can use to stop this?
> >>
> >> Thanks
> >
> > They are RMI ports.  Disable JMX.
> >
> > --
> > Christopher G. Stach II
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Open-port-%281099%29-when-using-vm-transport-protocol-tf3553820s2354.html#a9935423
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Open port (1099) when using vm transport protocol

Posted by westd <we...@yahoo.co.uk>.
My broker is configured using Spring 2 as shown at the end of this message. 
I have 'useJmx=false' set but still the ports 1099 and a random port are
opened in the case of the vm protocol.  Is there something I'm missing?

Thanks.

	<amq:broker brokerName="broker" persistent="true" useShutdownHook="true"
deleteAllMessagesOnStartup="true" useJmx="false">
   
      <amq:memoryManager>  
           <amq:usageManager id="memory-manager" limit="5048576"/>
       </amq:memoryManager>
         
   		<amq:transportConnectors>
			<amq:transportConnector uri="vm://localhost"/>
		</amq:transportConnectors>
		
		<amq:persistenceAdapter>
			<amq:jdbcPersistenceAdapter>
				<property name="cleanupPeriod" value="60000"/>
				<property name="dataSource" ref="postgres-ds"/>
			</amq:jdbcPersistenceAdapter>
		</amq:persistenceAdapter>
	</amq:broker>


Christopher G. Stach II wrote:
> 
> westd wrote:
>> Hi,
>> 
>> I am trying to use the vm://localhost transport for an embedded active mq
>> broker.  The embedded broker listens on port 1099 and another random
>> port. 
>> When using tcp transport, these ports are not used.  I wouldn't mind too
>> much if these ports were only accessible on localhost, but they are
>> externally accessible and I am not allowed to open external ports on our
>> device.
>> 
>> Is there an option I can use to stop this?
>> 
>> Thanks
> 
> They are RMI ports.  Disable JMX.
> 
> -- 
> Christopher G. Stach II
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Open-port-%281099%29-when-using-vm-transport-protocol-tf3553820s2354.html#a9935423
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Open port (1099) when using vm transport protocol

Posted by "Christopher G. Stach II" <cg...@ldsys.net>.
westd wrote:
> Hi,
> 
> I am trying to use the vm://localhost transport for an embedded active mq
> broker.  The embedded broker listens on port 1099 and another random port. 
> When using tcp transport, these ports are not used.  I wouldn't mind too
> much if these ports were only accessible on localhost, but they are
> externally accessible and I am not allowed to open external ports on our
> device.
> 
> Is there an option I can use to stop this?
> 
> Thanks

They are RMI ports.  Disable JMX.

-- 
Christopher G. Stach II