Hi:

my connection factory configuration looked like:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint  xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.3.0";
            xsi:schemaLocation="
                http://www.osgi.org/xmlns/blueprint/v1.0.0 
https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
                http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.3.0 
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.3.0.xsd
            ">
    
    <cm:property-placeholder persistent-id="prs-eai-broker" 
update-strategy="reload" >
        <cm:default-properties>
            <cm:property name="URL" value="tcp://localhost:61616" />
            <cm:property name="USERNAME" value="system" />
            <cm:property name="PASSWORD" value="manager" />
            <cm:property name="MAX_CONNECTIONS" value="20" />
            <cm:property name="PRODUCER_JNDI_NAME" value="jms/producer" />
            <cm:property name="CONSUMER_JNDI_NAME" value="jms/consumer" />
        </cm:default-properties>
    </cm:property-placeholder>  

    <bean id="activemqConnectionFactory" 
class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="${URL}" />
        <property name="userName" value="${USERNAME}" />
        <property name="password" value="${PASSWORD}" />
    </bean>

    <bean id="consumerPooledConnectionFactory" 
class="org.apache.activemq.pool.PooledConnectionFactory">
        <property name="maxConnections" value="${MAX_CONNECTIONS}" />
        <property name="connectionFactory" ref="activemqConnectionFactory" 
/>
    </bean>
    
    <bean id="producerPooledConnectionFactory" 
class="org.apache.activemq.pool.PooledConnectionFactory">
        <property name="maxConnections" value="${MAX_CONNECTIONS}" />
        <property name="connectionFactory" ref="activemqConnectionFactory" 
/>
    </bean>

    <service ref="producerPooledConnectionFactory" 
interface="javax.jms.ConnectionFactory">
        <service-properties>
            <entry key="name" value="producer" />
            <entry key="osgi.jndi.service.name" 
value="${PRODUCER_JNDI_NAME}" />
        </service-properties>
    </service>
    
    <service ref="consumerPooledConnectionFactory" 
interface="javax.jms.ConnectionFactory">
        <service-properties>
            <entry key="name" value="consumer" />
            <entry key="osgi.jndi.service.name" 
value="${CONSUMER_JNDI_NAME}" />
        </service-properties>
    </service>

</blueprint>


On Monday, June 17, 2019 at 11:02:33 AM UTC+2, Jean-Baptiste Onofré wrote:
>
> Hi
>
> PAX Jms should not degrade the performance. It depends how do you compare, 
> especially the connection factory and the pooling.
>
> How did you configure the connection factory in your bundle ?
>
> Regards
> JB
> On 17/06/2019 10:57, Kushal Gautam wrote:
>
> Hi: 
>
> I am using Camel with Karaf, and ActiveMQ
>
> Before using pax-jms, I was providing connectionfactories as artifact. 
> But, since it was not configurable, I planned to switch it to pax-jms.
>
> But, so far, after switching to pax-jms, I have noticed performance lag in 
> message processing. I am not entirely sure, if this is due to pax-jms. 
>
> Thus, in general, does pax-jms degrade the message processing performance 
> at all?
>
> For example, my jms-config looks like:
>
> name = eai-producer
> jms.url = tcp://localhost:61616
> jms.username = system
> jms.password = manager
> type = activemq
> pool = pooledjms
> osgi.jndi.service.name = jms/producer
> org.apache.karaf.features.configKey = org.ops4j.connectionfactory-producer
>
> Regards,
> Cooshal.
> -- 
> -- 
> ------------------
> OPS4J - http://www.ops4j.org - [email protected] <javascript:>
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ops4j/dc425a85-23d9-4f47-a855-9d9d96a70689%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ops4j/dc425a85-23d9-4f47-a855-9d9d96a70689%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/3941ba42-d0db-4a95-99fb-9ed7332e3868%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to