"mjhammel" wrote : Sorry - I didn't catch you're reply till today. I've been waiting for some feedback over in the EJB3 forum. I don't have all the links saved, but one that has some detailed explanation as to why it shouldn't work in web services at all is here:
|
| http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html
|
This is not your situation, you're not using the persistence context in a servlet, you need injection in a SLSB. And my previous post shows that it works.
anonymous wrote : Even if injection could be made to work, if I can't return a table row using Hibernate generated EJB3 objects then this is of no use to me.
I've just tried this too. It works more or less. I'm saying so since of course the problems you might have to face are lazy instantiation and cyclic referenced structure (that cannot be serialized into xml without references).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119000#4119000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119000
Hi,
I have a similar problem to issue: CLOSE WAIT and socket.close(),
My problem consist in this:
I have a Job that runs every 10 seconds, and every time uses a web service client maded with JBossWS. This web service does a operations over a remote server.
The problem is that each request opens a socket and this socket is not always closed, because the response may not return with the HTTP code expected to close the socket.
For any aid thank you very much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118834#4118834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118834
I am now getting quite specific. Our WSDL defines four operations and imports 13 schemas. I have solved all of my namespace-to-package mapping issues for our schema files with a JAXB binding file which looks like this:
<jxb:bindings version="1.0"
| xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
| xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
| xmlns:xs="http://www.w3.org/2001/XMLSchema"
| wsdlLocation="CARetriever.wsdl">
| <jxb:bindings schemaLocation="xyz.xsd" node="/xs:schema">
| <jxb:schemaBindings>
| <jxb:package name="com.ca.webservice.valueobj.xyz"/>
| </jxb:schemaBindings>
| </jxb:bindings>
| <!--and for 12 other schemas as well -->
| </jxb:bindings>
And I've solved the wsdl:definitions node namespace to mapping issues with a JAX-WS binding file that looks like this:
<jaxws:bindings version="2.0"
| xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
| xmlns:xs="http://www.w3.org/2001/XMLSchema"
| xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
| wsdlLocation="CARetriever.wsdl">
| <jaxws:bindings xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| node="wsdl:definitions">
| <jaxws:package name="com.ca.webservice.caservice"/>
| </jaxws:bindings>
| </jaxws:bindings>
However, my binding element for the WSDL's wsdl:definitions/wsdl:types/xsd:schema node shown below doesn't work - wsconsume produces the message 'Null', then fails to parse the wsdl and subsequently fails to launch WsImport.
<jaxws:bindings version="2.0"
| <jaxws:bindings
| node="wsdl:definitions/wsdl:types/xsd:schema">
| <jxb:schemaBindings>
| <jxb:package name="com.ca.webservice.caservice"/>
| </jxb:schemaBindings>
| </jaxws:bindings>
| </jaxws:bindings>
I've found many examples of this syntax for this last binding, and I can't see any error. I've also done it with the node attribute written in the (sanitized) form:
node="wsdl:definitions/wsdl:types/xsd:schema[@targetNamespace='http://www.ourdomain.com/our/namespace']">
Alas, with no joy. Can anyone help me understand why this last binding attribute isn't working with wsconsume?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118735#4118735
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118735