[jboss-user] [JBoss Seam] - Re: seam, spring activemq

henderson_mk do-not-reply at jboss.com
Wed Mar 14 12:18:45 EDT 2007


no luck .

changed it as you said:


  | 
  |   <bean id="listenerService" 
  |   		class="org.banana.services.UpdateListener" 
  |   		depends-on="broker1" lazy-init="true">  
  |     <property name="brokerService"><ref local="broker1"/></property>        
  |     <property name="springHook"><ref local="springHook"/></property>    
  |   </bean>
  | 
  |   <seam:instance id="springHook" name="springHook" proxy="true" /> 
  | 
  | @Name("springHook")
  | @Scope(METHOD)
  | @Intercept(ALWAYS)
  | @Startup 
  | public class SpringHook {
  |     private static Log log = LogFactory.getLog(SpringHook.class);
  |     
  |     @In(create=true)
  |     private Session svDatabase;
  |         
  |     public void test(){
  |     	log.info("hib session=" + this.svDatabase);
  |     }
  |     
  |     public Session getSession(){return this.svDatabase;}
  |     public void setSession(Session s){this.svDatabase = s;}    
  | }
  | 
  | 
  | 

but its barfing on startup now with error that seams needs to be configured before spring.

not to worry... I have the workaround anyhoo.
thanks for the help!

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

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



More information about the jboss-user mailing list