> TomEE is not integrated with Axis so you need to do the integration yourself
Yes, I almost feared so. I just hoped that someone else did have a similar
setup, and that we could exchange some hints. Also I wanted to avoid to use
that cumbersome delegate pattern (see below) but it seems there is no way
around...
So what I was made is creating a delegate class where the actual requests are
handled, the webservice just calls the corresponding method in the delegate
class:
private WSSessionDelegate delegate;
public WSSession() {
ContainerLifecycle lifecycle =
WebBeansContext.currentInstance().getService(ContainerLifecycle.class);
BeanManager beanManager = lifecycle.getBeanManager();
CreationalContext creationalContext =
beanManager.createCreationalContext(null);
AnnotatedType annotatedType =
beanManager.createAnnotatedType(WSSessionDelegate.class);
InjectionTarget injectionTarget =
beanManager.createInjectionTarget(annotatedType);
delegate = new WSSessionDelegate();
injectionTarget.inject(delegate, creationalContext);
}
public OMElement login (OMElement xml) {
return delegate.login(xml);
}
Unfortunately the dependant classes do not get injected; for example I have a
private @Inject Logging logging;
in class WSSessionDelegate but the value stays null...
Did I miss there something?
Chris