Have a look at Springs WebApplicationContextUtils.getWebApplicationContext(...). This in conjunction with org.springframework.web.context.ContextLoaderListener should give you what you need.
best, jim On Wed, Apr 9, 2008 at 12:41 PM, Pinger <[EMAIL PROTECTED]> wrote: > > So I am using wicket annot. > > So I have classes elsewhere in my app that are using JMS and other services > in a web service. The issue I am having is I need the ApplicationContext in > non-wicket files. > > When I Do public static ApplicationContext spring = new > ClassPathXmlApplicationContext("applicationContext.xml"); > > this causes issues cause things are created 2 times.. > > > Thanks > -- > View this message in context: > http://www.nabble.com/Application-Context-tp16592544p16592544.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]