I have a ejb3 using a web service and configure the host name of the web service in the ejb-jar.xml file (or @WebServiceRef(wsdlLocation = "http:://myserver/service.wsdl") ). Can I do the same configure outside of the ejb-jar.xml file, similar to how a DataSource is configured?
A:
You can use deployment descriptors to override settings made by annotations. Maybe you can inject the values from outside, declaring a class similar to that what is described here:
stacker
2010-01-17 15:08:50