Thank you very much for your quick reply.
Yes I do have activemq-broker.xml file under ${servicemix_home}\etc.

following are the contents of this file:
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
          
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
          
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";
           xmlns:amq="http://activemq.apache.org/schema/core";>

    <manifest>
      Export-Service = javax.jms.ConnectionFactory
    </manifest>

    
    <ext:property-placeholder />

    <broker xmlns="http://activemq.apache.org/schema/core";
brokerName="default" dataDirectory="${karaf.data}/activemq/default"
useShutdownHook="false">

       
              
        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true"
memoryLimit="1mb">
                  <pendingSubscriberPolicy>
                    <vmCursor />
                  </pendingSubscriberPolicy>
                </policyEntry>
                <policyEntry queue=">" producerFlowControl="true"
memoryLimit="1mb">
                  
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy> 

        
        <managementContext>
            <managementContext createConnector="false"/>
        </managementContext>

        
        <persistenceAdapter>
            <kahaDB directory="${karaf.data}/activemq/default/kahadb"/>
        </persistenceAdapter>

       

        
        <amq:transportConnectors>
            <amq:transportConnector name="openwire"
uri="tcp://localhost:61616"/>
            <amq:transportConnector name="stomp"
uri="stomp://localhost:61613"/>
        </amq:transportConnectors>

    </broker>

    <bean id="activemqConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">

        <property name="brokerURL" value="tcp://localhost:61616" />
    </bean>

    <bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
        <property name="maxConnections" value="8" />
        <property name="connectionFactory" ref="activemqConnectionFactory"
/>
    </bean>

    <bean id="resourceManager"
class="org.apache.activemq.pool.ActiveMQResourceManager"
init-method="recoverResource">
          <property name="transactionManager" ref="transactionManager" />
          <property name="connectionFactory" ref="activemqConnectionFactory"
/>
          <property name="resourceName" value="activemq.default" />
    </bean>

    <reference id="transactionManager"
interface="javax.transaction.TransactionManager" />

    <service ref="pooledConnectionFactory"
interface="javax.jms.ConnectionFactory">
        <service-properties>
            <entry key="name" value="localhost"/>
        </service-properties>
    </service>

</blueprint>


I tried with both localhost and 0.0.0.0 in trasportConnector. I also tried
with using only transportConnector (instead of amq:transportconnector).

in the java code while creating connection from connectionFactory, I am
passing following through spring injection:
        <bean id="activeMQConnectionFactory"
class="org.apache.activemq.ActiveMQXAConnectionFactory"
                lazy-init="false" scope="singleton">
                <property name="brokerURL" value="tcp://localhost:61616" />
        </bean>

here also I tried with both localhost and 0.0.0.0.

I already have activemq on karaf(servicemix) server, as can be seen from
following command run on server:

karaf@root> list | grep activemq
[ 285] [Active     ] [            ] [       ] [   60] activemq-ra
(5.5.1.fuse-01-06)
[ 286] [Active     ] [            ] [       ] [   60] activemq-core
(5.5.1.fuse-01-06)
[ 287] [Active     ] [Created     ] [       ] [   60] activemq-karaf
(5.5.1.fuse-01-06)
[ 288] [Active     ] [            ] [       ] [   60] activemq-pool
(5.5.1.fuse-01-06)
[ 289] [Active     ] [            ] [       ] [   60] activemq-console
(5.5.1.fuse-01-06)
[ 309] [Active     ] [            ] [       ] [   60] activemq-spring
(5.5.1.fuse-01-06)
karaf@root> features:list | grep activemq
[installed  ] [5.5.1-fuse-01-06    ] activemq                            
activemq-5.5.1-fuse-01-06
[installed  ] [5.5.1-fuse-01-06    ] activemq-spring                     
activemq-5.5.1-fuse-01-06
[installed  ] [5.5.1-fuse-01-06    ] activemq-blueprint                  
activemq-5.5.1-fuse-01-06
[uninstalled] [5.5.1-fuse-01-06    ] activemq-web-console                
activemq-5.5.1-fuse-01-06
[installed  ] [4.4.1-fuse-01-06    ] camel-activemq                      
repo-0
[installed  ] [4.4.1-fuse-01-06    ] activemq-broker                     
repo-0


Please let me know if more details are required. I already have spent long
time to find this out on google however could not find anything fruitful.

Help much appreciated.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/activemq-in-servicemix-tp4662070p4662077.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to