-
1. Re: jboss-webservices.xml
okidoky Aug 24, 2012 9:34 PM (in response to okidoky)Never mind...
Didn't work, but someone commented that itsn't not supported until 7.2.0. So I'm bound to a nightly build now... hope it's really "stable".
Quick observation though. jbossws-cxf-server-4.1.0.Beta1.jar in org/jboss/wsf/stack/cxf/configuration/BusHolder.java (i'm looking at the code after decompiling mind you), I'm seeing this method:
private static AlternativeSelector getAlternativeSelector(Map props)
{
AlternativeSelector selector = new MaximalAlternativeSelector();
if(props != null && !props.isEmpty())
{
String className = (String)props.get("cxf.policy.alternativeSelector");
if(className != null)
try
{
Class clazz = Class.forName(className);
selector = (AlternativeSelector)clazz.newInstance();
}
catch(Exception e) { }
}
return selector;
}
I tried to add this to jboss-webserver.xml:
<property> <name>cxf.policy.alternativeSelector</name> <value>XYZXYZ</value> </property> with the intent to make purposely cause an exception, so that I have some feedback that tells me that indeed this property is the right one and is doing something.
After if doing nothing, I looking at the source, and saw how it absorbed the exception into nothingness. Someone should fix that.