[jboss-user] [JBoss/Spring Integration] - Re: does spring deployer _require_ ejb?

ddouglass do-not-reply at jboss.com
Fri Sep 15 10:03:53 EDT 2006


Thanks for the reply Ales, and for Jboss Spring deployer ;)

That's what I've been trying to do via unit test -- the JNDI lookup gets me back a Reference object that refers to the NamedXmlApplicationContext, but any attempt to use the object (casting to ApplicationContext or BeanFactory) fails down in the Spring AOP layers with IllegalArgumentException: object not of declared type.

I've culled the forums (this one and others, JBoss and Spring) but have failed to find the magic to actual make use of the bound context in any meaningful way. I'm sure I'm just missing something.

Note that the unit test I refer to is running out-of-container, but a similar "test" done via a simple deployed war is giving similar results, though I haven't configured any resource/resource-ref in web.xml, etc., yet.

I've got several backup plans: write a simple stateless EJB wrapper that just delegates to injected deps. from the context and have the webapps use the EJB (though I'm trying to avoid EJB altogether); or, for now, I can package the context/services directly into the war and work out these details for my next iteration.

Thanks for any help/pointers,
Doug

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971924#3971924

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971924



More information about the jboss-user mailing list