1 2 Previous Next 18 Replies Latest reply on Apr 1, 2009 3:39 AM by chtimi2 Go to original post
      • 15. Re: Can't get @Service to work
        jaikiran

         

        One more thing while you're here, what is the cleanest way to have the MDB inactive on startup?


        You mean to avoid messages from being delivered during the startup of JBoss (while your MDB hasn't yet started)? Look for DeliveryActive on this wiki http://www.jboss.org/community/docs/DOC-9334

        • 16. Re: Can't get @Service to work

           

          "jaikiran" wrote:

          You mean to avoid messages from being delivered during the startup of JBoss (while your MDB hasn't yet started)? Look for DeliveryActive on this wiki http://www.jboss.org/community/docs/DOC-9334

          Not exactly, i mean that i want it to never start unless i call start on the MDB's MBean (the one you pointed me to).
          In other words i want it to start as inactive, and programmatically call start/stop.

          I tried using DeliveryActive but it says the property doesn't exist? This seems to be somewhat of a recurring theme in the JIRA links my googling found, that's why i thought i would ask you if there was another way, or something to do about making DeliveryActive work.
          The stack:
          org.jboss.deployment.DeploymentException: Error for ActivationSpec class org.jboss.resource.adapter.jms.inflow.JmsActivationSpec as JavaBean; - nested throwable: (java.beans.IntrospectionException: No property found for: DeliveryActive on JavaBean: org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@2975fa(ra=null destination=topic/NoeudsPerdusDestination isTopic=true tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5))


          • 17. Re: Can't get @Service to work
            jaikiran

             

            "chtimi2" wrote:

            I tried using DeliveryActive but it says the property doesn't exist?


            Sorry, i forgot you were using 4.2.x AS. Its available in the recent versions of JBossAS-5.x. https://jira.jboss.org/jira/browse/EJBTHREE-1740

            • 18. Re: Can't get @Service to work

              Thanks, well that's one more reason to try JBoss5 i suppose.

              1 2 Previous Next