I'm very close to posting the project site for Snowdrop - which is the JBoss project that encompasses the JBoss-Spring integration utilities, so hopefully you'll find there more information about this, but here are some quick pointers.
1) Extract the zip in the deployer folder. So you should see something like this:
2) Make sure that you have a Spring application context in your deployment (the deployer is looking under META-INF/ for a file (or files) that matches *-spring.xml - so jboss-spring.xml, myapp-spring.xml are valid names)
3) If you want to inject Spring beans from those application contexts into EJBs, you need to define @Interceptors(SpringLifecycleInterceptor.class) on the bean class and then use @Spring for each dependency you want to inject. A complete example is available here:
Hope that helps,
Thanks very much for the quick response. I'll work with the info you provided and hopefully that will get me going. I'll let you know what happens.
Just wanted to let you know that I was able to get my Hibernate/Spring project working thanks to the information you provided. Thanks
Can you provide an example of the jboss-spring.xml that's expected? My project is loading spring from web.xml using context-params that are very similar to the example provided in the snowdrop documentation available at http://jboss.org/snowdrop/documentation.html
It's unclear if this is the right solution for us as we've been unable to migrate from JBoss 4.0.5 to newer versions without breaking our spring integration with or without snowdrop. Snowdrop seems to have little or no impact on the error we're experiencing so I am not certain that I haven't followed the instructions completely. I've posted details about the specific failure in the Spring Forums, but have not heard any suggestions on what to change. You can find the thread via the link http://forum.springsource.org/showthread.php?t=83439 I'd appreciate any insight you might be able to lend.
You can find the thread via the link http://forum.springsource.org/showthread.php?t=83439 I'd appreciate any insight you might be able to lend.
This looks like a ClassCastException to me.
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy667 implementing com.company.appserver.SiteManagementLocal,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.company.appserver.SiteManagementLocal] for property 'siteManagementLocal': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:289)
My guess is you have duplicate com.company.appserver.SiteManagementLocal class,
one in .war, the other one in ejb jar.