4 Replies Latest reply: Jun 15, 2011 11:42 AM by John Ament RSS

SEAM-JMS: @MessageId("000077") MULTIPLE_DISPOSAL_METHODS problem

Lukasz Kaleta Newbie

I have a problem running seam-jms (beta2) and jboss6 (with weld 1.1.1):


the problem occurs for org.jboss.seam.jms.impl.inject.SessionProducer
and is thrown from weld at: org.jboss.weld.bean.ProducerMethod


   protected void initDisposalMethod(BeanDeployerEnvironment environment)
   {
      Set<DisposalMethod<X, ?>> disposalBeans = environment.<X>resolveDisposalBeans(getTypes(), getQualifiers(), getDeclaringBean());

      if (disposalBeans.size() == 1)
      {
         this.disposalMethodBean = disposalBeans.iterator().next();
      }
      else if (disposalBeans.size() > 1)
      {
         throw new DefinitionException(MULTIPLE_DISPOSAL_METHODS, this, disposalBeans);
      }
   }



For SessionProducer disposable beans are in count of two


Disposer method [[method] public org.jboss.seam.jms.impl.inject.SessionProducer.closeSelectedSession(Session)]
Disposer method [[method] public org.jboss.seam.jms.impl.inject.SessionProducer.closeSession(Session)]



Does someone knows how to solve this issue ?