Hi,
is it possible to create a JMS WSDL that can receive binary and text?
I tried a JMS receiving binary but sending text gave me an Error:
[#|2009-10-22T15:20:42.300+0200|SEVERE|sun-appserver2.1|sun-jms-binding.com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint|_ThreadID=180;_ThreadName=pool-16-thread-1;Context=ReceiveApp-sun-jms-binding::JmsBinary_InPort::JMSInOperation;_RequestID=f3658d8c-843c-4cc0-a715-96bbda99c2fa;|JMSBC-E0713: Failed to process JMS message [com.stc.jmsjca.core.WTextMessageIn@bbbe17] in onMessage: JMSBC-E0769: Received a JMS Message of type com.stc.jmsjca.core.WTextMessageIn but the JMS binding specifies that the message has to be forwarded as attachment so valid types are TextNessage and BytesMessage.
java.lang.Exception: JMSBC-E0769: Received a JMS Message of type com.stc.jmsjca.core.WTextMessageIn but the JMS binding specifies that the message has to be forwarded as attachment so valid types are TextNessage and BytesMessage.
at com.sun.jbi.jmsbc.JMSNormalizer.normalize(JMSNormalizer.java:191)
at com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint.normalizeMessage(InboundMessageProcessorListenerEndpoint.java:979)
at com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint.processInboundRequest(InboundMessageProcessorListenerEndpoint.java:576)
at com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint.onMessage(InboundMessageProcessorListenerEndpoint.java:270)
at com.stc.jmsjca.core.Delivery.deliverToEndpoint(Delivery.java:1156)
at com.stc.jmsjca.core.WorkContainer.deliver(WorkContainer.java:301)
at com.stc.jmsjca.core.WorkContainer.run(WorkContainer.java:223)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
|#]
On the other hand if I change the JMS receive to text it complains about binary coming in.
I need a JMS queue that receives everything (binary and text) because we want to use that as general fault queue. A BPEL which has a fault moves it's message to this JMS queue.
Thanks,
Frank