[Design of JBoss ESB] - Support marshaling or unmarshaling the soap message using
by jim.ma
This feature will help use make publishing the esb services as web services more easily .
Publishing esb services as web services can be achieved through two steps:
1. publish contract info for the esb service .
2. convert the request soap message to a esb aware message and deliver it ActionPipeLineProcess to process, finally convert the response esb message to soap message and send back .
For 1 step , we can use pojo classes to give the in/out and fault information for the esb service, for example
<actions inClass="com.foo.Request" outClass="com.foo.Response", faultClass="com.foo.Fault" jaxbAnnoIntro="anno.xml">
| </actons>
Use JAXB and JAXB Annotaion Introduction , we can generate the schema files from these classes defined in actions attributes. Use these schema and esb service name and category information , wsdl contract can be constructed.
For 2 step: Use the JAXB and JAXB Annotation Introduction , we also can easily
unmarshal the soap message as a request object and put it in Esb message payload to run the ActionPipeLineProcessor.
Does XStream can do this also ?
Appreciated your thoughts and comments .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151701#4151701
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151701
17 years, 10 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Clients Hanging...
by timfox
"clebert.suconic(a)jboss.com" wrote : When I run the perfSender (without perfListener) it's very common the client hanging without an answer.
|
| The client keeps waiting on this condition, as if a message was dropped on the wire.
|
| [java] "main" prio=1 tid=0x000000004011d620 nid=0xa70 in Object.wait() [0x00007fff4bbc1000..0x00007fff4bbc2190]
| | [java] at java.lang.Object.wait(Native Method)
| | [java] - waiting on <0x00007f693877a5f0> (a org.jboss.messaging.core.client.impl.RemotingConnectionImpl$ResponseHandler)
| | [java] at org.jboss.messaging.core.client.impl.RemotingConnectionImpl$ResponseHandler.waitForResponse(RemotingConnectionImpl.java:276)
| | [java] - locked <0x00007f693877a5f0> (a org.jboss.messaging.core.client.impl.RemotingConnectionImpl$ResponseHandler)
| | [java] at org.jboss.messaging.core.client.impl.RemotingConnectionImpl.sendBlocking(RemotingConnectionImpl.java:167)
| | [java] at org.jboss.messaging.core.client.impl.ClientSessionImpl.close(ClientSessionImpl.java:485)
| | [java] - locked <0x00007f691bbc12d0> (a org.jboss.messaging.core.client.impl.ClientSessionImpl)
| | [java] at org.jboss.messaging.core.client.impl.ClientConnectionImpl.closeChildren(ClientConnectionImpl.java:222)
| | [java] at org.jboss.messaging.core.client.impl.ClientConnectionImpl.close(ClientConnectionImpl.java:163)
| | [java] - locked <0x00007f691bbc1490> (a org.jboss.messaging.core.client.impl.ClientConnectionImpl)
| | [java] at org.jboss.messaging.jms.client.JBossConnection.close(JBossConnection.java:219)
| | [java] at org.jboss.jms.example.PerfExample.runSender(PerfExample.java:137)
| | [java] at org.jboss.jms.example.PerfExample.main(PerfExample.java:74)
| | [java]
| |
|
| This happens on Persistent or NonPersistent messages. Allthough on NonPersistent messages it would happen more frequently.
|
| Any idea why?
|
|
| I may do some research on this later (maybe monday). But maybe this is known issue.
When you close, the close is sent blocking and and will be ordered against any non blocking prior invocations, so all the sends need to be processed before close completes. If this takes longer than the block timeout it will timeout. Try increasing the timout.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151614#4151614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151614
17 years, 10 months