[jboss-user] [JBoss/Spring Integration] - Re: jboss-spring.xml beans location

loumaus do-not-reply at jboss.com
Wed Jul 11 05:49:15 EDT 2007


hi alesj .. 

if i post you a properly logfile ... 
and provide you some excerpts of the code .. 

would you be able to help me solving the problem .. 

fact for me is:

1. my spring package gets properly deployed during deployment.. 
   implementing the ApplicationContextAware interface in my service target class allows me to see all implemented beans, which are six.

2. in the spring context, the two target beans are properly bound together
"Autowiring by type from bean name 'catalogService' via property 'catalogDao' to bean named 'catalogDao'"

So .. the deployment on the jboss 4.0.5 is working perfectly, no problems no error messages

3. i call the stateless session bean. 
3.1 the private catalogService object is properly injected by the correct implementation of of this service which is located in my jboss-spring.xml file. 

3.2 the catalog service is called  which works fine as well. 

3.3 my target method calls the setApplicationContext again in order to display all bound beans. This time I receive an empty result list which means that no beans are bound.  

It looks to me as if the stateless using the @Spring is able to inject a single class / implementation grabbed out of the spring context, but is not able to get the defined and deployed complete context .

I could investigate more by now but wanted to have your opinion on this first of all. 

main question is .. 
are you guys sure that the while injecting a stateless bean the complete deployed spring context is grabbed and used ??

thanks for your help



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

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



More information about the jboss-user mailing list