[jboss-user] [JBoss Web Services Users] - Spring bean injection to Service implementation
sagolsb
do-not-reply at jboss.com
Thu Oct 22 12:44:04 EDT 2009
Hi,
I have been trying to inject Spring beans to JBossWS native service implementation but still not successful. I tried getting the WebApplicationContext as follows, via @Resource WebServiceContext context, but it returns null (java.lang.UnsupportedOperationException: Not yet supported):
ServletContext servletContext =
(ServletContext) context.getMessageContext().get(
MessageContext.SERVLET_CONTEXT);
webApplicationContext =
WebApplicationContextUtils.getWebApplicationContext(servletContext);
Is there any example to inject Spring beans to JBossWS (native) services?
Regards,
Sagol
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261766#4261766
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261766
More information about the jboss-user
mailing list