Using CXF with QPid

2007-02-15 Thread Trenaman, Adrian
Hi there,

 

Does anyone have any experience putting Qpid under CXF? I'd like to
configure a JMS transport so that it uses Qpid (and this AMQP) instead
of ActiveMQ. Here's what I've guessed so far - any help is greatly
appreciated. At the moment, my server wont start because of the
jndiConnectionFactoryName - I'm not sure what this should be set to.
Have tried ConnectionFactory (as per ActiveMQ) but it doesn't work :-(


 

wsdl:port name=SOAPOverAMQPEndpoint

 
binding=tns:UBL-InvoiceProcessorSOAP

jms:address
destinationStyle=queue

 
initialContextFactory=org.apache.qpid.jndi.PropertiesFileInitialContext
Factory

 
jndiDestinationName=demo-ubl

 
jndiConnectionFactoryName= 

messageType=text

 
useMessageIDAsCorrelationID=true

jms:JMSNamingProperty

 
name=java.naming.factory.initial

 
value=org.apache.qpid.jndi.PropertiesFileInitialContextFactory /




jms:JMSNamingProperty 

 
name=java.naming.provider.url

 
value=amqp:///test?brokerlist='localhost'/


/jms:address

/wsdl:port

 

Thanks,

Ade.

 

Adrian Trenaman

Principal Consultant, IONA Technologies.

E: [EMAIL PROTECTED] 

P: +353-1-6372659

M: +353-86-6051026

 



RE: Using CXF with QPid

2007-02-15 Thread Kodichath, Suresh
Hi,
I got this working by having the following in the wsdl:
  jms:address
   destinationStyle=queue
   jndiConnectionFactoryName=local 
   jndiDestinationName=dynamicQueues
   jndiReplyDestinationName=dynamicQueues2
   jms:JMSNamingProperty name=java.naming.factory.initial
value=org.apache.qpid.jndi.PropertiesFileInitialContextFactory/
   jms:JMSNamingProperty name=java.naming.provider.url
value=tcp://localhost:5672/
   jms:JMSNamingProperty name=connectionfactory.local
value=amqp://guest:[EMAIL PROTECTED]/test?brokerlist='tcp://localhost:5672
'/
   jms:JMSNamingProperty name=queue.dynamicQueues
value=queue://queuetest/
   jms:JMSNamingProperty name=queue.dynamicQueues2
value=queue://queuetest2/
/jms:address

Hope this helps,
Suresh

-Original Message-
From: Trenaman, Adrian [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 15, 2007 1:11 PM
To: cxf-user@incubator.apache.org
Subject: Using CXF with QPid

Hi there,

 

Does anyone have any experience putting Qpid under CXF? I'd like to
configure a JMS transport so that it uses Qpid (and this AMQP) instead
of ActiveMQ. Here's what I've guessed so far - any help is greatly
appreciated. At the moment, my server wont start because of the
jndiConnectionFactoryName - I'm not sure what this should be set to.
Have tried ConnectionFactory (as per ActiveMQ) but it doesn't work :-(


 

wsdl:port name=SOAPOverAMQPEndpoint

 
binding=tns:UBL-InvoiceProcessorSOAP

jms:address
destinationStyle=queue

 
initialContextFactory=org.apache.qpid.jndi.PropertiesFileInitialContext
Factory

 
jndiDestinationName=demo-ubl

 
jndiConnectionFactoryName= 

messageType=text

 
useMessageIDAsCorrelationID=true

jms:JMSNamingProperty

 
name=java.naming.factory.initial

 
value=org.apache.qpid.jndi.PropertiesFileInitialContextFactory /




jms:JMSNamingProperty 

 
name=java.naming.provider.url

 
value=amqp:///test?brokerlist='localhost'/


/jms:address

/wsdl:port

 

Thanks,

Ade.

 

Adrian Trenaman

Principal Consultant, IONA Technologies.

E: [EMAIL PROTECTED] 

P: +353-1-6372659

M: +353-86-6051026

 



RE: Using CXF with QPid

2007-02-15 Thread Kodichath, Suresh
Hi Adrian,
Just want to add that you need all Qpid changes since December 29 for
this to work. 

Let me know if you still get problems with this.

Regards,
Suresh

-Original Message-
From: Kodichath, Suresh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 15, 2007 1:44 PM
To: cxf-user@incubator.apache.org
Subject: RE: Using CXF with QPid

Hi,
I got this working by having the following in the wsdl:
  jms:address
   destinationStyle=queue
   jndiConnectionFactoryName=local 
   jndiDestinationName=dynamicQueues
   jndiReplyDestinationName=dynamicQueues2
   jms:JMSNamingProperty name=java.naming.factory.initial
value=org.apache.qpid.jndi.PropertiesFileInitialContextFactory/
   jms:JMSNamingProperty name=java.naming.provider.url
value=tcp://localhost:5672/
   jms:JMSNamingProperty name=connectionfactory.local
value=amqp://guest:[EMAIL PROTECTED]/test?brokerlist='tcp://localhost:5672
'/
   jms:JMSNamingProperty name=queue.dynamicQueues
value=queue://queuetest/
   jms:JMSNamingProperty name=queue.dynamicQueues2
value=queue://queuetest2/
/jms:address

Hope this helps,
Suresh

-Original Message-
From: Trenaman, Adrian [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 15, 2007 1:11 PM
To: cxf-user@incubator.apache.org
Subject: Using CXF with QPid

Hi there,

 

Does anyone have any experience putting Qpid under CXF? I'd like to
configure a JMS transport so that it uses Qpid (and this AMQP) instead
of ActiveMQ. Here's what I've guessed so far - any help is greatly
appreciated. At the moment, my server wont start because of the
jndiConnectionFactoryName - I'm not sure what this should be set to.
Have tried ConnectionFactory (as per ActiveMQ) but it doesn't work :-(


 

wsdl:port name=SOAPOverAMQPEndpoint

 
binding=tns:UBL-InvoiceProcessorSOAP

jms:address
destinationStyle=queue

 
initialContextFactory=org.apache.qpid.jndi.PropertiesFileInitialContext
Factory

 
jndiDestinationName=demo-ubl

 
jndiConnectionFactoryName= 

messageType=text

 
useMessageIDAsCorrelationID=true

jms:JMSNamingProperty

 
name=java.naming.factory.initial

 
value=org.apache.qpid.jndi.PropertiesFileInitialContextFactory /




jms:JMSNamingProperty 

 
name=java.naming.provider.url

 
value=amqp:///test?brokerlist='localhost'/


/jms:address

/wsdl:port

 

Thanks,

Ade.

 

Adrian Trenaman

Principal Consultant, IONA Technologies.

E: [EMAIL PROTECTED] 

P: +353-1-6372659

M: +353-86-6051026