List Info

Thread: JMS sample and sonic mq




JMS sample and sonic mq
user name
2006-07-06 16:51:30

Hello,
Has any one tried WSIF/JMS with Soniq MQ ?

<service name="CheckServiceAvailability">
 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;  <port name="CheckAvailabilityPort" binding="tns:CheckAvailabilityJMSBinding">
 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <!-- vendor-specific deployment information needs to be entered here -->
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  <jms:address destinationStyle="queue" jndiDestinationName="myqueue" jndiConnectionFactoryName="ConnectionFactory" initialContextFactory="progress.message.jclient.QueueConnectionFactory" jndiProviderURL="tcp://bnorrish04:2506"/>;

 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  </port>
&nbsp; &nbsp;   </service>


When I tried to run the Run.java sample I got this error :

- WSIF0005E: An error occurred when invoking the method 'checkAvailability'. ('Jms')&nbsp;
Error while executing sample, received an exception from WSIF; details:
org.apache.wsif.WSIFException: org.apache.wsif.providers.jms.WSIFOperation_Jms13d93f4 : Could not invoke 'checkAvailability'; nested exception is:

   ; &nbsp; &nbsp; 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

&nbsp;   ; &nbsp;  at org.apache.wsif.providers.jms.WSIFOperation_Jms.executeRequestResponseOperation(Unknown Source)
 &nbsp; &nbsp; &nbsp;  at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
 &nbsp; &nbsp; &nbsp;  at $Proxy0.checkAvailability(Unknown Source)
 &nbsp; &nbsp; &nbsp;  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

 &nbsp; &nbsp;   ; at org.apache.wsif.util.jms.WSIFJMSFinderForJndi.<init>(Unknown Source)
 &nbsp; &nbsp; &nbsp;  at org.apache.wsif.util.jms.WSIFJMSFinder.newFinder(Unknown Source)
 &nbsp; &nbsp; &nbsp;  at org.apache.wsif.providers.jms.WSIFPort_Jms.getJmsDestination(Unknown Source)
 &nbsp; &nbsp; &nbsp;  at org.apache.wsif.providers.jms.WSIFOperation_Jms.sendJmsMessage(Unknown Source)
 &nbsp; &nbsp; &nbsp;  ... 4 more


Please help if you know why?

Thanks.

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )