All Examples  XML Examples  BizTalk Example

Class examples.xml.biztalk.ejb.bizTradeJournal.BizTradeJournalBean

java.lang.Object
   |
   +----examples.xml.biztalk.ejb.bizTradeJournal.BizTradeJournalBean

public class BizTradeJournalBean
extends Object
implements SessionBean
BizTradeJournal is a stateless SessionBean. This bean is used to illustrate mapping a second bean to process a BizTalk document.

Author:
Copyright (c) 2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o BizTradeJournalBean()

Method Index

 o ejbActivate()
This method is required by the EJB Specification, but is not used by this example.
 o ejbCreate()
This method corresponds to the create method in the home interface "BizBeanHome.java".
 o ejbPassivate()
This method is required by the EJB Specification, but is not used by this example.
 o ejbRemove()
This method is required by the EJB Specification, but is not used by this example.
 o service(IncomingMessage)
Called by BizTalk Server when a message for this bean is received.
 o setSessionContext(SessionContext)
Sets the session context.

Constructors

 o BizTradeJournalBean
 public BizTradeJournalBean()

Methods

 o ejbActivate
 public void ejbActivate()
This method is required by the EJB Specification, but is not used by this example.

 o ejbRemove
 public void ejbRemove()
This method is required by the EJB Specification, but is not used by this example.

 o ejbPassivate
 public void ejbPassivate()
This method is required by the EJB Specification, but is not used by this example.

 o setSessionContext
 public void setSessionContext(SessionContext ctx)
Sets the session context.

Parameters:
ctx - SessionContext Context for session
 o ejbCreate
 public void ejbCreate() throws CreateException
This method corresponds to the create method in the home interface "BizBeanHome.java". The parameter sets of the two methods are identical. When the client calls BizBeanHome.create(), the container allocates an instance of the EJBean and calls ejbCreate().

Throws: CreateException
if there is a communications or systems failure
See Also:
BizTradeJournalBean
 o service
 public void service(IncomingMessage message) throws RemoteException
Called by BizTalk Server when a message for this bean is received. This method processes the BizTalk message payload by logging the trade into the customers log file located in the /weblogic/examples/xml/biztalk directory.

Parameters:
message - BizTalk message payload.

All Examples  XML Examples  BizTalk Example