Hi
On 01/05/13 16:20, geecxf wrote:
Apparently, I spoke to soon. If I load the cxf configuration for my OSGi
bundle in the following manner:
String[] configs = new String[]
{
"classpath:META-INF/spring/cxf-context.xml"
//$NON-NLS-1$
};
OsgiBundleXmlApplicationContext appContext = new
OsgiBundleXmlApplicationContext(configs, AuthConsumer.applicationContext);
appContext.setBundleContext(AuthConsumer.bundleContext);
appContext.refresh();
I see no errors on deployment or startup of the application. Thus, the only
conclusion I can come to is that the beans that run my client tests are
created before the http conduit if they are in the same spring configuration
file. But how do I stop that from happening if I only want to use one file?
I can't insert a "depends-on" attribute in the conduit definition so there
is no way for me to tell spring to create the http conduit before creating
the bean that runs the clients which depend on the conduit.
Does anyone out there have any ideas on how to fix this problem besides the
solution that I found?
I can see both jaxws and jaxrs clients can use a "depends-on" attribute,
try that please
Cheers, Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/Problems-with-http-conduit-declared-in-OSGi-spring-configuration-tp5727009p5727012.html
Sent from the cxf-user mailing list archive at Nabble.com.