Re: ServiceLoader usage in Axis2 web service code deployed on Tomcat web server

Bulent Ozhorasan <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Thanks for the reply.
 java.util.ServiceLoader class has a method
load(Class<S> service, ClassLoader loader)


AxisService myService = messageContext.getAxisConfiguration().getAxisService("serviceName"); 
AxisService myService = msgCtx.getAxisService();
ClassLoader clsLoader = myService.getServiceClassLoader();
Then I will invoke like this:
ServiceLoader.load(service,clsLoader)


_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.