FAQs - EJB API

  1. Is SnmpEJBServer an EJB container? What is SnmpEJBServer factory? How are they related? Where do they run?

  2. There are problems in deploying your three EJB jar files in Inprise application server. I get an error saying the jar files are not EJB spec. compliant.

  3. I deploy the SnmpTargetEJB.jar file with the help of weblogic 5.1 deployer but while loading it, I get "Class not found" exception. Why is that so?

1. Is SnmpEJBServer an EJB container? What is SnmpEJBServer factory? How are they related? Where do they run?

 

The SnmpEJBServer is a remote interface and the SnmpEJBServerImpl is the corresponding implementation class that internally calls the SNMP rmi package classes. The SnmpEJBServer resides inside the EJB application server and outside the EJB container.

 

The EJB 1.1 specification limits EJB from doing any of the following.

The SnmpEJBServer is part of this EJB architecture, which allows the network management without any restrictions. This SnmpEJBServer is invoked and bound to the RMI registry and the application server does a lookup and gets the handle to the SnmpEJBServer. Now, any incoming client request is passed to this handle, which in turn calls the rmi classes, and the SNMP operations are performed.

 

Questions

 

2. There are problems in deploying your three EJB jar files in Inprise application server. I get an error saying the jar files are not EJB spec. compliant.

 

The EJB Jar files supplied with the AdventNetSNMP API package are standard Jar files and are compliant to EJB 1.1 spec. Therefore to deploy in different application servers, you need to supply the corresponding xml files used by the application server. For example, for Inprise application server 4.5, you need to archive ejb-inprise.xml file in the 'META-INF' directory to the standard Jar files from AdventNetSNMP API.

 

Questions

 

3. I deploy the SNMpTargetEJB.jar file with the help of weblogic 5.1 deployer but while loading it, I get "Class not found" exception. Why is that so?

 

The AdventNetSNMP package should be added to the WebLogic 5.1 CLASSPATH as shown below.

  1. Open the startWebLogic.bat file in <weblogic_HOME> directory in a text editor.

  2. Add the following line to the PRE_CLASSPATH variable.
    set PRE_CLASSPATH=<AdventNet_HOME>\AdventNetSnmpV3\classes;

    Here, '<AdventNet_HOME>' is the directory in which the AdventNetSNMP API was installed.

  3. Edit setEnv.bat file in <WebLogic-HOME> directory and set the AdventNetSNMP API classes directory in the CLASSPATH variable. Make sure the AdventNet package comes first in the CLASSPATH setting.

Questions



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.