All Examples All EJB Examples
This example is a utility program that creates a list of all the EJBeans deployed on a WebLogic Server. It recursively travels the JNDI tree, and checks each entry to see if it is an EJBean; if so, it prints out the JNDI name of the EJBean's home and the classname of the service stub that the client is accessing. From the name of the service stub you can determine the package name of the EJBean.
$ javac -d ..\..\..\myserver\clientclasses ListAll.java
$ java examples.ejb.utils.ListAll
If you're not running the WebLogic Server with its default settings, you will have to run the utility using:
$ java examples.ejb.utils.ListAll "t3://WebLogicURL:Port"
Parameters are optional, but if any are supplied, they are interpreted in this order:
Depending on the EJBeans you have deployed, you'll see output similar to this:
Starting to search tree for all EJBeans... EJBean Home: containerManaged/AccountHome Classname: examples.ejb.basic.containerManaged.AccountBeanHomeImpl_WLStub EJBean Home: isModifiedBeanManaged/AccountHome Classname: examples.ejb.extensions.isModifiedBeanManaged.AccountBeanHomeImpl_WLStub EJBean Home: isModified/AccountHome Classname: examples.ejb.extensions.isModified.AccountBeanHomeImpl_WLStub EJBean Home: beanManaged/AccountHome Classname: examples.ejb.basic.beanManaged.AccountBeanHomeImpl_WLStub Finished searching tree for all EJBeans...
Copyright © 1999-2000 BEA Systems, Inc. All rights reserved.
Last updated 01/12/2000