|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by objects that represent deployed Enterprise JavaBeans JARs.
AgiAdmElement
,
AgiAdmDesignElement
Field Summary | |
static String |
EJB_JAR
The "EJB JAR" design element type. |
static String |
PROP_EJB_HOMES
The list of EJB Homes of the EJBs that the EJB JAR contains. |
static String |
PROP_EJB_JNDI_NAMES
The list of EJB JNDI names of the EJBs that the EJB JAR contains. |
static String |
PROP_ENABLED
This property allows the caller to manage the "is enabled" status of the EJB JAR. |
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmDesignElement |
APP_OBJECT,
FORM,
GENERAL_ELEMENT,
IMAGE,
JAR,
JAVA_BEAN,
PAGE,
SERVLET,
SOUND,
TABLE,
VIEW |
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmElement |
ACL_KEY,
APPLY_TO_DESC,
APPLY_TO_DESC_SUPPORTED,
DIRECTORY_LIST_SECURITY,
GET_PERMS_AS_ACL,
GET_PERMS_DEFAULT,
PROP_CERTIFICATE,
PROP_DESCRIPTION,
PROP_DOMAIN,
PROP_FULL_NAME,
PROP_IS_LOCKSMITH,
PROP_LDAP_SERVER,
PROP_NAME,
PROP_NISPLUS_SERVER,
PROP_PARENT_URL,
PROP_PASSWORD,
PROP_QUAL_NAME,
PROP_TYPE,
PROP_URL,
REQUIRE_LOGIN,
REQUIRE_LOGIN_SUPPORTED |
Method Summary | |
boolean |
isActive()
Check to see if the EJB JAR is active. |
void |
shutdown(boolean restart)
Shut down the JAR and all its beans for the current server session. |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmElement |
getPermissions,
getServerURL,
getURL,
getVariables,
isAuthorized,
setPermissions |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmElementBase |
delete,
getName,
getType |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmPropertyBag |
getProperties,
getProperty,
setProperties,
setProperty |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmChanges |
cancelChanges,
saveChanges |
Field Detail |
public static final String EJB_JAR
public static final String PROP_EJB_HOMES
This property is read-only.
public static final String PROP_EJB_JNDI_NAMES
This property is read-only.
public static final String PROP_ENABLED
If a JAR is disabled, none of the EJBs in the JAR are available. Disabling a JAR stops any running EJBs in the JAR. A disabled JAR remains disabled until it is explicitly enabled.
For example:
// Get the current status Boolean enabled = (Boolean)ejbJar.getProperty(AgiAdmEjbJar.PROP_ENABLED); // Disable the JAR ejbJar.setProperty(AgiAdmEjbJar.PROP_ENABLED, new Boolean(false)); ejbJar.saveChanges(); // Enable the JAR ejbJar.setProperty(AgiAdmEjbJar.PROP_ENABLED, new Boolean(true)); ejbJar.saveChanges();
Method Detail |
public boolean isActive() throws AgoUnrecoverableSystemException, AgoSecurityException
boolean active = jar.isActive();
public void shutdown(boolean restart) throws AgoUnrecoverableSystemException, AgoSecurityException
restart
- if true, the EJB JAR is restarted, otherwise it's just shut downjar.shutdown(false);
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |