1 Reply Latest reply on Sep 14, 2004 10:49 AM by jae

    howto get standard context in tomcat 5

    jae Master

      in tomcat 4, the standard context could be obtained in the fowllowing manner:

      
       WebApplication app = ....
      
       Object ctx = app.getAppData();
       Class standardContextClass = ctx.getClass();
      
      


      this no longer seems to work in tomcat 5 and instead i get back an ObjectName reference.

      could someone pls offer some input on what direction i need to take to resolve this.

      thx!

        • 1. Re: howto get standard context in tomcat 5
          jae Master

          update...

          it appears that if i grab a reference to the mbean server, then i can use the ObjectName ref that was returned to me and then invoke "findMappingObject" to get the catalina context.

          if anyone else has any experience w/ this, pls let me know if this is what i want to do.