|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.xml.xslt.ContentBean
This stateless Session Bean generates XML content that is later displayed to various client types. Since the point of this example is to demonstrate the separation of content generation and presentation, this EJB generates static content.
| Constructor Summary | |
ContentBean()
|
|
| Method Summary | |
void |
ejbActivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbCreate()
This method corresponds to the create method in the home
interface ContentHome. |
void |
ejbPassivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbRemove()
This method is required by the EJB Specification, but is not used by this example. |
java.lang.String |
generateContent()
Generates XML content to be displayed to various client types. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ContentBean()
| Method Detail |
public void ejbActivate()
ejbActivate in interface javax.ejb.SessionBean
public void ejbCreate()
throws javax.ejb.CreateException
create method in the home
interface ContentHome.
The parameter sets of the two methods are identical. When the client calls
ContentHome.create, the container allocates an instance of
the EJBean and calls ejbCreate.javax.ejb.CreateException - if there is
a communications or systems failureContentHomepublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBeanpublic java.lang.String generateContent()
RemoteException - if there is
a communications or systems failurepublic void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext in interface javax.ejb.SessionBeanctx - SessionContext Context for session
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||