Hi,
in our company we use Hibernate/JPA + JbossWS to host create web services (beans annotated with @WebService). Now we get a lot of lazy loading exceptions when the Hibernate entity is serialized, because the persistence context is not any longer available when this takes place.
Someone had the same problems and found a solution :
http://forums.java.net/jive/message.jspa?messageID=174549
https://jaxb.dev.java.net/issues/show_bug.cgi?id=280
Only I have problems to apply this, because I do not find the correct places to configure JAXB in JBossWS.
So two things have to be done
1. set the JAXB marshaller property, only how?
marshaller.setProperty("com.sun.xml.bind.XmlAccessorFactory", true);
properties.put(JAXBRIContext.XMLACCESSORFACTORY_SUPPORT, true); context = JAXBContext.newInstance(new Class[] { ....}, properties);