8 Replies Latest reply on Dec 7, 2006 12:05 PM by alesj

    myApp.spring deploting

    ramar73

      Hi to all, I have a little problem trying to starting a JMX service that get the application context from my myApp.spring.

      I wrote all the dependencies of my mbean, that implements the startService method. When JBoss start my service start...but before JBoss deploy my myApp.spring. So I obtain NamingException...

      Does somenone know a way to add to my mbean a dependency that let JBoss wait until myApp.spring is loaded?

      Thanks in advance.

      Regards.

        • 1. Re: myApp.spring deploting
          alesj

          You can add the dependency to the SpringDeployer service - it's a mbean after all.

          • 2. Re: myApp.spring deploting
            ramar73

            Thanks, but it still doesn't work.
            I added the following entry:

            jboss.spring:service=SpringApplicationContextDeployer

            but nothing changed.

            Regards.

            • 3. Re: myApp.spring deploting
              alesj

              Hmmm ... post the mbean description with this dependency.

              • 4. Re: myApp.spring deploting
                ramar73

                here you are...



                jboss:service=Naming
                jboss.jca:service=DataSourceBinding,name=eport2DS
                jboss.jca:service=DataSourceBinding,name=JBossMQ
                jboss.mq.destination:service=Topic,name=to_bpm
                jboss.mq.destination:service=Queue,name=to_ddm
                jboss.mq:service=InvocationLayer,type=UIL2
                boss.spring:service=SpringApplicationContextDeployer




                Thanks, regards

                • 5. Re: myApp.spring deploting
                  ramar73

                  here you are...

                  <server>
                   <mbean code="com.set.eport2.services.ddm.DDMService" name="com.set.eport2.services.ddm:service=DDMService">
                   <depends>jboss:service=Naming</depends>
                   <depends>jboss.jca:service=DataSourceBinding,name=eport2DS</depends>
                   <depends>jboss.jca:service=DataSourceBinding,name=JBossMQ</depends>
                   <depends>jboss.mq.destination:service=Topic,name=to_bpm</depends>
                   <depends>jboss.mq.destination:service=Queue,name=to_ddm</depends>
                   <depends>jboss.mq:service=InvocationLayer,type=UIL2</depends>
                  <depends>boss.spring:service=SpringApplicationContextDeployer</depends>
                   </mbean>
                  </server>



                  Thanks, regards

                  • 6. Re: myApp.spring deploting
                    alesj

                     

                    <depends>boss.spring:service=SpringApplicationContextDeployer</depends>
                    


                    Missing 'j' infront?

                    • 7. Re: myApp.spring deploting
                      ramar73

                      No, just wring cut and paste...anyway never mind.
                      I found a solution following another way.
                      No Jmx services at all. All initialization is made by spring.

                      Regards.

                      • 8. Re: myApp.spring deploting
                        alesj

                        You could go through the log with debug mode ... and just see on what services does your DDMService depend on.
                        SpringDeployer should be there.
                        If so, the problem is somewhere else.