7 Replies Latest reply on Nov 24, 2014 3:59 AM by AMINA Aster

    Monitoring with Jboss Fuse or Operation Network?

    AMINA Aster Newbie

      I have existing application have presentation layer (Pages jsf2.2, Managed Bean) business layer (remote service EJB) and Model Layer .I should monitor this application (monitoring of ejb services calls from managed bean) , so I want to know if JBoss fuse enable to monitor this application without creating routes if yes how? and same question for Operation network?


      Thank you in advance.

        • 1. Re: Monitoring with Jboss Fuse or Operation Network?
          Claus Ibsen Master

          If you are using EJBs then JBoss EAP is a JEE server which supports EJBs etc.

           

          JBoss Fuse is an ESB and do not out of the box support running EJB applications. But JBoss Fuse can call remote EJBs, eg EJBs running outside JBoss Fuse, eg such JBoss EAP.

          JBoss Fuse can run WAR applications, though mind that JBoss Fuse is currently OSGi based so your WAR needs to support OSGi which not every web technology does. So if you can run a WAR in JBoss Fuse, that calls remote EJBs, then you can get some monitoring. Though usually that relies on JMX. So if the Web framework offers JMX metrics then you can monitor that from JBoss Fuse.

           

          For operation monitoring products then Red Hat has JBoss Operations Network.

           

          JBoss Fuse comes with a management console that has some monitoring capabilities based on the hawtio project.

          http://hawt.io

          • 2. Re: Monitoring with Jboss Fuse or Operation Network?
            AMINA Aster Newbie

            Thank you Claus Ibsen for your quick reply, my application not support OSGi I tried to deploy war in fuse container but not work .I think best solution to monitor it using Jboss Operation Network product.

             

            You said that Jboss Fuse can enable some monitoring capabilities that include invocation times for each EJB and count number of EJB Session Bean called?

             

            I have other question how I can create routes between remote EJBs services and web application (managed bean) using fuse ESB? Taking in account war application not support OSGi.

             

            Thank you in advance

            • 3. Re: Monitoring with Jboss Fuse or Operation Network?
              Claus Ibsen Master

              > You said that Jboss Fuse can enable some monitoring capabilities that include invocation times for each EJB and count number of EJB Session Bean called?


              JBoss Fuse does not have any special monitoring for that. JBoss EAP has that as its a JEE server, where EJBs is a natural technology.

              JBoss Fuse do however supports JMX, so any metrics exposes as JMX can be viewed from JBoss Fuse.


              > I have other question how I can create routes between remote EJBs services and web application (managed bean) using fuse ESB? Taking in account war application not support OSGi.


              If you deploy a WAR and want to do remote EJB calls, then you can do that. And if you want routing you can embed Camel together. And use the Camel bean component where you can write java code to call the remote EJBs.


              As Apache Camel offers JMX information, then you can use the monitoring functionality of JBoss Fuse that supports Camel to see routing metrics. JON would support that also.

              • 4. Re: Monitoring with Jboss Fuse or Operation Network?
                AMINA Aster Newbie

                Thank you so much for your clarification.

                • 5. Re: Monitoring with Jboss Fuse or Operation Network?
                  AMINA Aster Newbie

                  hi Claus,

                   

                  I have other questions , i migrate my web application to OSGI standard in order to  integrate camel route and deploy it to JBoss Fuse.

                  my questions are as follows:

                  • how i can access to my web application deployed on fuse ( for exampe in jboss EAP6 localhost:8080/nameApp ) ?
                  • how i can call ejb deployed on jboss fuse as ejb bundle from web application without using camel route?
                  • how i can call ejb deployed on jboss fuse as ejb bundle from web application using camel route?

                   

                  Thank you in advance.

                  • 6. Re: Monitoring with Jboss Fuse or Operation Network?
                    Claus Ibsen Master

                    You can deploy WAR files also. Though to configure the context-path there is some Web-Context-Path information you can set in the MANIFEST.MF file that the bundle plugin generates.

                     

                    There is some details here

                    OSGi-fy your WAR - OPS4J Pax Web - OPS4J Wiki

                     

                    You can call the EJB just like you would do in Java. Though it may be a bit tricky to install the EJB client JAR and have that available for the WAR. So I suggest to include the EJB client JAR in the WAR lib directory. And then use the EJB API directly in the WAR applicaiton using Java code.

                     

                    From a Camel route there is the ejb component. But the trick is to install the EJB client and have that available for the ejb component to use. That is a bit trickier to do in OSGi.

                    You can get better help if you use the Red Hat customer portal and log a ticket to get help. As there is a team ready to help. And there is also a knowledge base you can search from the customer portal to find examples for JBoss Fuse and how to do X.

                    • 7. Re: Monitoring with Jboss Fuse or Operation Network?
                      AMINA Aster Newbie

                      Thank you very much Claus for your help.