7 Replies Latest reply on Jan 21, 2009 10:11 AM by emmartins

    bean undeployment in server (as5/jboss mc) shutdown

    emmartins

      I have a bean that is injected with the RealTransactionManager from JBoss AS5, and a second bean that is injected with the first one, and when I shutdown the server the RealTransactionManager is removed from the first bean before the second one undeploy completes, how can I avoid that behavior? I tried to add a for RealTransactionManager in the second one but it doesn't do any good...

      This is the beans xml:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:bean-deployer:2.0">
      
       <bean name="Mobicents.JAINSLEE.TransactionManagerMBean"
       class="org.mobicents.slee.runtime.transaction.SleeTransactionManagerImpl">
       <!-- jboss as tx manager bean -->
       <property name="transactionManager"><inject bean="RealTransactionManager"/></property>
       </bean>
      
       <bean name="Mobicents.JAINSLEE.SleeManagement"
       class="org.mobicents.slee.container.management.jmx.SleeManagementMBeanImpl">
       <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="slee:service=SleeManagement",exposedInterface=org.mobicents.slee.container.management.jmx.SleeManagementMBeanImplMBean.class, registerDirectly=true)</annotation>
       <property name="sleeTransactionManager"><inject bean="Mobicents.JAINSLEE.TransactionManagerMBean"/></property>
       </bean>
      
      
       <!-- ... -->
      
      </deployment>
      


      Thanks in advance :)

      -- Eduardo