2 Replies Latest reply on Jun 11, 2010 4:50 AM by Hubert Felber

    How to ServiceBindingManger with EJB or DB ?

    Hubert Felber Newbie

      Hi,

      I'm using Jboss 5.1.0 GA

      For HttpInvoker I want to get the configuration values either from a EJB or from DB.

      Can I do this using ServiceBindingManger?

      Could anybody please give me a hint?

      Thank you

      Hubert

        • 1. Re: How to ServiceBindingManger with EJB or DB ?
          jaikiran pai Master

          Hubert Felber wrote:

           

          Hi,

          I'm using Jboss 5.1.0 GA

          For HttpInvoker I want to get the configuration values either from a EJB or from DB.


          Not sure what you are trying. Can you please explain a bit about what is it that you are doing?

          • 2. Re: How to ServiceBindingManger with EJB or DB ?
            Hubert Felber Newbie

            Hi Jaikiran,

             

            In http-invoker.sar\META-INF\jboss-service.xml I want to configure values for HttpInvoker.

             

            <attribute name="InvokerURL">${Server.WorkflowURL}invoker/EJBInvokerServlet</attribute>

             

            The ${Server.WorkflowURL} value is stored in DB an can either be retrieved by an EJB or if directly from DB.

             

            In JBOSS 4.2X this configuration worked because the mentioned EJB was instantiated early and set the  ${Server.WorkflowURL} as system property which then was picked up by HttpInvoker configuration.

            In 5.1 this does not work anymore. If I set the URL in run.bat as system property, then it works. But I cannot do this because I don't know the value.

            Is there a way I can do this with ServiceBindingManger?

             

            Thank you

            Hubert