Hi Amit,

Please don't use the blog to ask your questions in comments but rather use the 
user ML see http://ofbiz.apache.org/mailing-lists.html

Thanks

Jacques

Le 07/07/2015 12:32, [email protected] a écrit :
This comment failed validation for these reasons:

Comment has more than 1000 characters



Amit Sahani ([email protected]) wrote:

I have made following changes to my config files in the OfBiz code to configure 
Queue listeners. I have also mapped the jar containing the 
ActiveMQInitialContextFactory class,
But still after many tries to build and host the application the server doesn’t 
starts.

It keeps giving me that : Cannot instantiate class: 
org.apache.activemq.jndi.ActiveMQInitialContextFactory


Jndi.properties

java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url=tcp://127.0.0.1:61616
# register some queues in JNDI using the form
# queue.[jndiName] = [physicalName]
queue.ofbizServiceInbound = ofbizServiceInbound
queue.ofbizServiceOutbound = ofbizServiceOutbound


services.xml   - in order

<service name="updateOrderPaymentPreference" engine="jms"  
auth="true" default-entity-name="OrderPaymentPreference"
             location="outputChannel" 
invoke="updateOrderPaymentPreference" export="true">
         <auto-attributes mode="INOUT" include="pk" 
optional="false"/>
         <auto-attributes mode="IN" include="nonpk" 
optional="true"/>
         <attribute name="checkOutPaymentId" type="String" 
mode="IN" optional="true"/>
     </service>


Serviceengine.xml

<jms-service name="outputChannel" send-mode="all">
    <server jndi-server-name="default" 
jndi-name="ConnectionFactory"
            topic-queue="ofbizServiceOutbound" type="queue"
            username="admin" password="admin" 
listen="false"/>
</jms-service>



----
Respond to this comment at:
https://blogs.apache.org/ofbiz/entry/apache_ofbiz_new_blog1#comments

----
Link to comment management page:
https://blogs.apache.org/roller-ui/authoring/comments.rol?bean.entryId=5c665990-773c-41dc-ae39-10d59d851e8a&weblog=ofbiz



Reply via email to