JMS sample and sonic mq
"Nader Troudi" <[email protected]> Thu, 6 Jul 2006 09:51:30 -0700
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <604C73CDAD12664C9A56FBBF14397BC51546E7@bel-msg-02.SEA.CORP.EXPECN.COM> |
Hello,
Has any one tried WSIF/JMS with Soniq MQ ?
<service name="CheckServiceAvailability">
<port name="CheckAvailabilityPort"
binding="tns:CheckAvailabilityJMSBinding">
<!-- vendor-specific deployment information
needs to be entered here -->
<jms:address destinationStyle="queue"
jndiDestinationName="myqueue"
jndiConnectionFactoryName="ConnectionFactory"
initialContextFactory="progress.message.jclient.QueueConnectionFactory"
jndiProviderURL="tcp://bnorrish04:2506"/>
</port>
</service>
When I tried to run the Run.java sample I got this error :
- WSIF0005E: An error occurred when invoking the method
'checkAvailability'. ('Jms')
Error while executing sample, received an exception from WSIF; details:
org.apache.wsif.WSIFException:
org.apache.wsif.providers.jms.WSIFOperation_Jms@13d93f4 : Could not
invoke 'checkAvailability'; nested exception is:
org.apache.wsif.WSIFException: WSIFJMSFinderForJndi caught
'javax.naming.NoInitialContextException: Cannot instantiate class:
progress.message.jclient.ConnectionFactory [Root exception is
java.lang.ClassCastException:
progress.message.jclient.ConnectionFactory]'. InitialContextFactory was
'progress.message.jclient.ConnectionFactory' ProviderUrl was
'tcp://bnorrish04:2506'. Port=CheckAvailabilityPort
at
org.apache.wsif.providers.jms.WSIFOperation_Jms.executeRequestResponseOp
eration(Unknown Source)
at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
at $Proxy0.checkAvailability(Unknown Source)
at com.expedia.ecommerce.Run.main(Run.java:58)
Caused by: org.apache.wsif.WSIFException: WSIFJMSFinderForJndi caught
'javax.naming.NoInitialContextException: Cannot instantiate class:
progress.message.jclient.ConnectionFactory [Root exception is
java.lang.ClassCastException:
progress.message.jclient.ConnectionFactory]'. InitialContextFactory was
'progress.message.jclient.ConnectionFactory' ProviderUrl was
'tcp://bnorrish04:2506'. Port=CheckAvailabilityPorttest
at org.apache.wsif.util.jms.WSIFJMSFinderForJndi.<init>(Unknown
Source)
at org.apache.wsif.util.jms.WSIFJMSFinder.newFinder(Unknown
Source)
at
org.apache.wsif.providers.jms.WSIFPort_Jms.getJmsDestination(Unknown
Source)
at
org.apache.wsif.providers.jms.WSIFOperation_Jms.sendJmsMessage(Unknown
Source)
... 4 more
Please help if you know why?
Thanks.