The jsr77 MEJB is not deployed by default in 3.2.2. Its sitting in
the jboss-3.2.2/docs/examples/jmx/ejb-management.jar so copy that
to the deploy directory.

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Mariano Kamp wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

after reading this: http://www.onjava.com/pub/a/onjava/2002/03/27/
jsr77.html?page=2 I wanted to run the following code, but with no success so far:


log("started.\n");

                Properties p = new Properties();
                p.setProperty(
                        Context.INITIAL_CONTEXT_FACTORY,
                        "org.jnp.interfaces.NamingContextFactory");
                p.setProperty(Context.PROVIDER_URL, "localhost:1099");
                p.setProperty(
                        Context.URL_PKG_PREFIXES,
                        "org.jboss.naming:org.jnp.interfaces");

                log("Aquiring context");
                Context ctx = new InitialContext(p);
                log(".\n");

                
                log("Looking up mejb reference");
                Object o = ctx.lookup("ejb/mgmt/MEJB");   <-- Line 34
                log(".\n");




------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to