This chapter describes: AssetBean AssetMgr AssetMgrEJB AssetMgrHome AssetTagAssociationBean AssetTypeBean AssociationBean AssociationMgr

Size: px
Start display at page:

Download "This chapter describes: AssetBean AssetMgr AssetMgrEJB AssetMgrHome AssetTagAssociationBean AssetTypeBean AssociationBean AssociationMgr"

Transcription

1 $VVHW9LVLELOLW\ 6HUYLFHV$3, 1 This chapter describes: AssetBean AssetMgr AssetMgrEJB AssetMgrHome AssetTagAssociationBean AssetTypeBean AssociationBean AssociationMgr AssociationMgrEJB AssociationMgrHome CommissionActivity CommissionActivityEJB CommissionActivityHome DefaultActivity DefaultActivityEJB DefaultActivityHome DefaultPostActivity DefaultPostActivityEJB DefaultPostActivityHome DomainData DomainDataParser

2 GenericActivity GenericActivityEJB GenericActivityHome InfoBean NotifiableObject PostActivityIF PropertyBean Shipment ShipmentEJB ShipmentFactsUpdate ShipmentFactsUpdateEJB ShipmentFactsUpdateHome ShipmentHome ShipmentManager ShipmentManagerEJB ShipmentManagerHome ShipReceive ShipReceiveEJB ShipReceiveHome StatelessBase StatelessBaseEJB StatelessBaseHome TagBean

3 $VVHW%HDQ $VVHW%HDQ public class AssetBean extends InfoBean java.lang.object -- com.smartchain.datacenter.avs.infobean.infobean -- com.smartchain.datacenter.avs.infobean.assetbean An instance of this class represents an individual asset. &RQVWUXFWRU6XPPDU\ AssetBean() Default constructor.,qvwdqfh0hwkrgv6xppdu\ String long String String String long long getaccountcustomerid() Retrieves the customer reference account ID of the asset. getaccountid() Retrieves the account ID of the asset (the primary key of the account table). getassetcustomerid() Retrieves the customer ID of the asset. getassetdescription() Retrieves the description of the asset. getassetguid() Retrieves the Global Unique ID. getassetid() Retrieves the primary ID assigned by the database system. getassetsitestatus() Retrieves the asset site status, an indicator of whether the asset has been received or is in transit.

4 $VVHW%HDQ long String long long long Timestamp long long Hashtable long getassettypeid() Retrieves the primary key from the avs_asset_type table. getassettypename() Retrieves the name of the asset type. getisload() Returns (long) TRUE if the asset is loaded with items and (long) FALSE if not. getisparent() Returns (long) TRUE if this asset has a child asset and (long) FALSE if not. getlastactionid() Retrieves the ID of the last action performed on this asset (one of SHIP, RECEIVE, or EXIT). getlastactiontime() Retrieves the time of the last action performed on this asset. getlastdatapointid() Retrieves the ID of the datapoint at which the last action occurred. getparentassetid() Retrieves the asset ID of the parent asset into which this asset was loaded. getpropertycollection() Retrieves the list of properties for this asset (a table of PropertyBeans stored by parameter name). getstatus() Retrieves the status of soft deletion. setaccountcustomerid(string) Sets the customer reference account ID of the asset. setaccountid(long) Sets the account ID of the asset (the primary key of the account table).

5 $VVHW%HDQ setassetcustomerid(string) Sets the customer ID of the asset. setassetdescription(string) Stores the description of the asset. setassetguid(string) Stores the Global Unique ID. setassetid(long) Sets the primary ID assigned by the database system. setassetsitestatus(long) Sets the asset site status. setassettypeid(long) Sets the [[what is this? awaiting definition for getassettypeid()]] setassettypename(string) Sets the name of the asset type. setisload(long) Sets whether the asset is loaded with items. setisparent(long) Sets whether this asset has a child asset. setlastactionid(long) Stores the ID of the last action performed on this asset. setlastactiontime(timestamp) Stores the date of the last action performed on this asset. setlastdatapointid(long) Stores the ID of the datapoint at which the last action occurred. setparentassetid(long) Stores the asset ID of the parent of this asset. setpropertycollection(hashtable) Stores a list of properties for the asset.

6 $VVHW%HDQ setstatus(long) Sets the soft deletion status of the AssetBean. &RQVWUXFWRU $VVHW%HDQ Default constructor. public AssetBean(),QVWDQFH0HWKRGV JHW$FFRXQW&XVWRPHU,' Retrieves the customer reference account ID of the asset. public String getaccountcustomerid() JHW$FFRXQW,' Retrieves the account ID of the asset (the primary key of the account table). public long getaccountid() JHW$VVHW&XVWRPHU,' Retrieves the customer ID of the asset. public String getassetcustomerid() JHW$VVHW'HVFULSWLRQ Retrieves the description of the asset. public String getassetdescription() JHW$VVHW*8,' Retrieves the Global Unique ID. public String getassetguid()

7 $VVHW%HDQ JHW$VVHW,' Retrieves the primary ID assigned by the database system. public long getassetid() JHW$VVHW6LWH6WDWXV JHW$VVHW7\SH,' Retrieves the asset site status, an indicator of whether the asset has been received or is in transit. [[what does a value of -1 represent?]] public long getassetsitestatus() Retrieves the primary key from the avs_asset_type table. [[true?]] public long getassettypeid() JHW$VVHW7\SH1DPH JHW,V/RDG JHW,V3DUHQW JHW/DVW$FWLRQ,' Retrieves the name of the asset type. public String getassettypename() Returns (long) TRUE if the asset is loaded with items and (long) FALSE if not. public long getisload() Returns (long) TRUE if this asset has a child asset and (long) FALSE if not. public long getisparent() Retrieves the ID of the last action performed on this asset (one of SHIP, RECEIVE, or EXIT). public long getlastactionid() JHW/DVW$FWLRQ7LPH Retrieves the time of the last action performed on this asset.

8 $VVHW%HDQ See also AssetBean.getLastActionID(). public Timestamp getlastactiontime() JHW/DVW'DWDSRLQW,' JHW3DUHQW$VVHW,' Retrieves the ID of the datapoint at which the last action occurred. See also AssetBean.getLastActionID(). public long getlastdatapointid() Retrieves the asset ID of the parent asset into which this asset was loaded. [[true?]] public long getparentassetid() JHW3URSHUW\&ROOHFWLRQ JHW6WDWXV Retrieves the list of properties for this asset (a table of PropertyBeans stored by parameter name). public Hashtable getpropertycollection() Retrieves the status of soft deletion. public long getstatus() VHW$FFRXQW&XVWRPHU,'6WULQJ Sets the customer reference account ID of the asset. public setaccountcustomerid(string straccountcustomerid) String straccountcustomerid The customer reference account ID. VHW$FFRXQW,'ORQJ Sets the account ID of the asset (the primary key of the account table). public setaccountid(long laccountid) long laccountid The account ID.

9 $VVHW%HDQ VHW$VVHW&XVWRPHU,'6WULQJ Sets the customer ID of the asset. public setassetcustomerid(string strassetcustomerid) String strassetcustomerid The customer ID. VHW$VVHW'HVFULSWLRQ6WULQJ Stores the description of the asset. public setassetdescription(string strassetdescription) String strassetdescription The description. VHW$VVHW*8,'6WULQJ VHW$VVHW,'ORQJ Stores the Global Unique ID. public setassetguid(string strassetguid) String strassetguid The Global Unique ID. Sets the primary ID assigned by the database system. public setassetid(long lassetid) long lassetid The asset ID. VHW$VVHW6LWH6WDWXVORQJ Sets the asset site status. public setassetsitestatus(long lassetsitestatus) long lassetsitestatus The asset site status, an indicator of whether the asset has been received or is in transit. [[what does a value of -1 represent?]] VHW$VVHW7\SH,'ORQJ Sets the [[what is this? awaiting definition for getassettypeid()]] public setassettypeid(long lassettypeid)

10 $VVHW%HDQ VHW$VVHW7\SH1DPH6WULQJ VHW,V/RDGORQJ VHW,V3DUHQWORQJ long lassettypeid [[what is this? awaiting definition for getassettypeid]] Sets the name of the asset type. public setassettypename(string strassettypename) String strassettypename The name of the asset type. Sets whether the asset is loaded with items. public setisload(long lisload) long lisload Whether the asset is loaded with items ((long) TRUE or (long) FALSE). Sets whether this asset has a child asset. [[or is it better to say "Sets whether this asset is loaded with a child asset."?]] public setisparent(long lisparent) VHW/DVW$FWLRQ,'ORQJ long lisparent Whether the asset has a child asset ((long) TRUE or (long) FALSE). Stores the ID of the last action performed on this asset. public setlastactionid(long llastactionid) long llastactionid SHIP, RECEIVE, or EXIT. VHW/DVW$FWLRQ7LPH7LPHVWDPS Stores the date of the last action performed on this asset. public setlastactiontime(timestamp datelastactiontime) Timestamp datelastactiontime Timestamp.

11 $VVHW%HDQ VHW/DVW'DWDSRLQW,'ORQJ Stores the ID of the datapoint at which the last action occurred. public setlastdatapointid(long llastdatapointid) long llastdatapointid The ID of the datapoint. VHW3DUHQW$VVHW,'ORQJ Stores the asset ID of the parent of this asset. public setparentassetid(long lparentassetid) long lparentassetid The asset ID of the parent of this asset. VHW3URSHUW\&ROOHFWLRQ+DVKWDEOH VHW6WDWXVORQJ Stores a list of properties for the asset. public setpropertycollection(hashtable opropertycollection) Hashtable opropertycollection A hashtable of PropertyBeans, stored by parameter name. Sets the soft deletion status of the AssetBean. public setstatus(long lstatus) long lstatus The status. [[what are allowed values?]]

12 ,QWHUIDFH$VVHW0JU,QWHUIDFH$VVHW0JU public abstract interface AssetMgr implements EJBObject This is the remote interface for the remote/ejb/home combination for the activity bean. Even if the corresponding EJB bean class has more methods, only the methods of this interface can be activated on a remote system. $OO,PSOHPHQWHG,QWHUIDFHV EJBObject,QVWDQFH0HWKRGV6XPPDU\ InfoBean AssetBean Vector AssetBean InfoBean deleteasset(assetbean) Required method signature for remote interface for AssetMgrEJB. getasset(assetbean) Required method signature for remote interface for AssetMgrEJB. getassettypes(long) Required method signature for remote interface for AssetMgrEJB. insertasset(assetbean) Required method signature for remote interface for AssetMgrEJB. updateasset(assetbean) Required method signature for remote interface for AssetMgrEJB. updateassetproperty(object, String, DomainData) Required method signature for remote interface for AssetMgrEJB.

13 ,QWHUIDFH$VVHW0JU,QVWDQFH0HWKRGV GHOHWH$VVHW$VVHW%HDQ Required method signature for remote interface for AssetMgrEJB. See also AssetMgrEJB. public InfoBean deleteasset(assetbean oassetbean) throws RemoteException AssetBean oassetbean The asset. JHW$VVHW$VVHW%HDQ Required method signature for remote interface for AssetMgrEJB. See also AssetMgrEJB. public AssetBean getasset(assetbean oassetbean) throws RemoteException AssetBean oassetbean The asset. JHW$VVHW7\SHVORQJ Required method signature for remote interface for AssetMgrEJB. See also AssetMgrEJB. public Vector getassettypes(long laccountid) throws RemoteException long laccountid The account ID. LQVHUW$VVHW$VVHW%HDQ Required method signature for remote interface for AssetMgrEJB. See also AssetMgrEJB. public AssetBean insertasset(assetbean oassetbean) throws RemoteException AssetBean oassetbean The asset. XSGDWH$VVHW$VVHW%HDQ Required method signature for remote interface for AssetMgrEJB.

14 ,QWHUIDFH$VVHW0JU See also AssetMgrEJB. public InfoBean updateasset(assetbean oassetbean) throws RemoteException AssetBean oassetbean The asset. XSGDWH$VVHW3URSHUW\2EMHFW6WULQJ'RPDLQ'DWD Required method signature for remote interface for AssetMgrEJB. See also AssetMgrEJB. public updateassetproperty(object ocustominfo, String strassetid, DomainData odomaindata) throws RemoteException Object ocustominfo The CustomInfo object. String strassetid The asset ID. DomainData odomaindata The DomainData object.

15 $VVHW0JU(-% $VVHW0JU(-% public class AssetMgrEJB extends StatelessBaseEJB implements SessionBean java.lang.object -- com.smartchain.datacenter.avs.ejb.statelessbaseejb -- com.smartchain.datacenter.avs.ejb.assetmgrejb This class provides asset services. $OO,PSOHPHQWHG,QWHUIDFHV SessionBean &RQVWUXFWRU6XPPDU\ AssetMgrEJB() Default constructor.,qvwdqfh0hwkrgv6xppdu\ InfoBean AssetBean deleteasset(assetbean) Deletes an asset from the avs_asset table. ejbactivate() Overrides with an empty method body. ejbcreate() Empty implementation of the SessionBean method. ejbpassivate() Overrides with an empty method body. ejbremove() Overrides with an empty method body. getasset(assetbean) Retrieves the complete asset corresponding to the basic identification information in the supplied asset.

16 $VVHW0JU(-% Vector AssetBean InfoBean getassettypes(long) Retrieves all asset types for the supplied account ID. insertasset(assetbean) Adds the asset as a new record in the avs_asset table. setsessioncontext(sessioncontext) Sets the context. updateasset(assetbean) Updates an asset in the avs_asset table, replacing the attributes of the database asset with those of oassetbean. updateassetproperty(object, String, DomainData) Updates an asset s properties based on information in the domain data. &RQVWUXFWRU $VVHW0JU(-% Default constructor. public AssetMgrEJB(),QVWDQFH0HWKRGV GHOHWH$VVHW$VVHW%HDQ HME$FWLYDWH Deletes an asset from the avs_asset table. public InfoBean deleteasset(assetbean oassetbean) AssetBean oassetbean The asset. This must contain at least the account ID, customer ID and type name of the asset. Overrides with an empty method body. public ejbactivate() 6SHFLILHG%\ ejbactivate() in javax.ejb.sessionbean

17 $VVHW0JU(-% HME&UHDWH HME3DVVLYDWH Empty implementation of the SessionBean method. public ejbcreate() Overrides with an empty method body. public ejbpassivate() 6SHFLILHG%\ ejbpassivate() in javax.ejb.sessionbean HME5HPRYH Overrides with an empty method body. public ejbremove() 6SHFLILHG%\ ejbremove() in javax.ejb.sessionbean JHW$VVHW$VVHW%HDQ Retrieves the complete asset corresponding to the basic identification information in the supplied asset. public AssetBean getasset(assetbean oassetbean) AssetBean oassetbean The asset, containing at least the account ID, customer ID and type name of the asset. JHW$VVHW7\SHVORQJ Retrieves all asset types for the supplied account ID. public Vector getassettypes(long laccountid) long laccountid The account ID of the asset (the primary key of the account table). LQVHUW$VVHW$VVHW%HDQ Adds the asset as a new record in the avs_asset table. public AssetBean insertasset(assetbean oassetbean)

18 $VVHW0JU(-% AssetBean oassetbean The asset. VHW6HVVLRQ&RQWH[W6HVVLRQ&RQWH[W Sets the context. public setsessioncontext(sessioncontext ctx) SessionContext ctx The session context. 6SHFLILHG%\ setsessioncontext(sessioncontext) in javax.ejb.sessionbean XSGDWH$VVHW$VVHW%HDQ Updates an asset in the avs_asset table, replacing the attributes of the database asset with those of oassetbean. public InfoBean updateasset(assetbean oassetbean) AssetBean oassetbean The asset. XSGDWH$VVHW3URSHUW\2EMHFW6WULQJ'RPDLQ'DWD Updates an asset s properties based on information in the domain data. public updateassetproperty(object ocustominfo, String strassetid, DomainData odomaindata) Object ocustominfo The CustomInfo object. String strassetid The ID of the asset to be updated. DomainData odomaindata The DomainData object containing information about the asset, for use in updating the asset.

19 ,QWHUIDFH$VVHW0JU+RPH,QWHUIDFH$VVHW0JU+RPH public abstract interface AssetMgrHome implements EJBHome The home interface participates in the instantiation of the corresponding EJB class. $OO,PSOHPHQWHG,QWHUIDFHV EJBHome,QVWDQFH0HWKRG6XPPDU\ AssetMgr create(),qvwdqfh0hwkrg Implement this method to instantiate the bean. FUHDWH Implement this method to instantiate the bean. This method is called by the client program. Refer to J2EE specifications for more details. public AssetMgr create() throws CreateException, RemoteException

20 $VVHW7DJ$VVRFLDWLRQ%HDQ $VVHW7DJ$VVRFLDWLRQ%HDQ public class AssetTagAssociationBean extends InfoBean java.lang.object -- com.smartchain.datacenter.avs.infobean.infobean -- com.smartchain.datacenter.avs.infobean.assettagassociationbean This class represents the association of one or more tags with a single asset. &RQVWUXFWRU6XPPDU\ AssetTagAssociationBean() Default constructor.,qvwdqfh0hwkrgv6xppdu\ AssetBean Vector long String boolean boolean getassetbean() Returns the asset of this association. getassociationcollection() Retrieves a vector of AssociationBeans (one bean for each tag). getdatapointid() Retrieves the ID of the datapoint where association occurred. getdomaindata() Retrieves the XML representation the domain data for the association event. getforceassociation() Returns true if an association is to be made between an asset and tag, even if that would replace an existing association. isforceassociation() Returns true if an association is to be made between an asset and tag, even if that would replace an existing association. setassetbean(assetbean) Sets the asset of the association event.

21 $VVHW7DJ$VVRFLDWLRQ%HDQ setassociationcollection(vector) Sets a collection of AssociationBeans. setdatapointid(long) Sets the ID of the datapoint where association occurred. setdomaindata(string) Sets the domain data for the association event. setforceassociation(boolean) Sets whether an association is to be made between an asset and tag, even if that would replace an existing association. &RQVWUXFWRU $VVHW7DJ$VVRFLDWLRQ%HDQ Default constructor. public AssetTagAssociationBean(),QVWDQFH0HWKRGV JHW$VVHW%HDQ Returns the asset of this association. public AssetBean getassetbean() JHW$VVRFLDWLRQ&ROOHFWLRQ Retrieves a vector of AssociationBeans (one bean for each tag). public Vector getassociationcollection() JHW'DWDSRLQW,' Retrieves the ID of the datapoint where association occurred. public long getdatapointid()

22 $VVHW7DJ$VVRFLDWLRQ%HDQ JHW'RPDLQ'DWD Retrieves the XML representation the domain data for the association event. public String getdomaindata() JHW)RUFH$VVRFLDWLRQ Returns true if an association is to be made between an asset and tag, even if that would replace an existing association. LV)RUFH$VVRFLDWLRQ public boolean getforceassociation() Returns true if an association is to be made between an asset and tag, even if that would replace an existing association. public boolean isforceassociation() VHW$VVHW%HDQ$VVHW%HDQ Sets the asset of the association event. public setassetbean(assetbean oassetbean) AssetBean oassetbean The asset. VHW$VVRFLDWLRQ&ROOHFWLRQ9HFWRU Sets a collection of AssociationBeans. public setassociationcollection(vector oassociationcollection) Vector oassociationcollection A vector of AssociationBeans, which include the tags. VHW'DWDSRLQW,'ORQJ Sets the ID of the datapoint where association occurred. public setdatapointid(long ldatapointid) long ldatapointid The datapoint ID. VHW'RPDLQ'DWD6WULQJ Sets the domain data for the association event.

23 public setdomaindata(string strdomaindata) $VVHW7DJ$VVRFLDWLRQ%HDQ String strdomaindata An XML representation of the domain data. VHW)RUFH$VVRFLDWLRQERROHDQ Sets whether an association is to be made between an asset and tag, even if that would replace an existing association. public setforceassociation(boolean bforceassociation) boolean bforceassociation Whether an association is to be forced.

24 $VVHW7\SH%HDQ $VVHW7\SH%HDQ public class AssetTypeBean extends InfoBean java.lang.object -- com.smartchain.datacenter.avs.infobean.infobean -- com.smartchain.datacenter.avs.infobean.assettypebean This class represents types of assets. Sample types: pallet, chair style 1, chair style 2. &RQVWUXFWRU6XPPDU\ AssetTypeBean() Default constructor.,qvwdqfh0hwkrgv6xppdu\ long String long String getaccountid() Returns the account ID of the asset type. getassettypedescription() Returns the description of the asset type. getassettypeid() Returns the ID of the asset type, the primary key of the avs_asset_type table. getassettypename() Returns the name of the asset type. setaccountid(long) Sets the account ID. setassettypedescription(string) Sets the description of the asset type. setassettypeid(long) Sets the ID of the asset type.

25 $VVHW7\SH%HDQ setassettypename(string) Sets the name of the asset type. &RQVWUXFWRU $VVHW7\SH%HDQ Default constructor. public AssetTypeBean(),QVWDQFH0HWKRGV JHW$FFRXQW,' Returns the account ID of the asset type. public long getaccountid() JHW$VVHW7\SH'HVFULSWLRQ Returns the description of the asset type. public String getassettypedescription() JHW$VVHW7\SH,' Returns the ID of the asset type, the primary key of the avs_asset_type table. public long getassettypeid() JHW$VVHW7\SH1DPH Returns the name of the asset type. public String getassettypename() VHW$FFRXQW,'ORQJ Sets the account ID. public setaccountid(long laccountid) long laccountid The account ID.

26 $VVHW7\SH%HDQ VHW$VVHW7\SH'HVFULSWLRQ6WULQJ Sets the description of the asset type. public setassettypedescription(string strassettypedescription) String strassettypedescription The description of the asset type. VHW$VVHW7\SH,'ORQJ Sets the ID of the asset type. public setassettypeid(long lassettypeid) long lassettypeid The ID of the asset type. VHW$VVHW7\SH1DPH6WULQJ Sets the name of the asset type. public setassettypename(string strassettypename) String strassettypename The name of the asset type.

27 $VVRFLDWLRQ%HDQ $VVRFLDWLRQ%HDQ public class AssociationBean extends InfoBean java.lang.object -- com.smartchain.datacenter.avs.infobean.infobean -- com.smartchain.datacenter.avs.infobean.associationbean This class represents the association of a single tag with an asset. [[true?]] &RQVWUXFWRU6XPPDU\ AssociationBean() Default constructor.,qvwdqfh0hwkrgv6xppdu\ Timestamp long TagBean getactiontime() Returns the time of the tag read. getassociationid() Returns the ID of the association, the primary key of the avs_asset_property table. gettagbean() Returns the tag of this association. setactiontime(timestamp) Sets the time of the tag read. setassociationid(long) Sets the ID of the association, the primary key of the avs_asset_property table. settagbean(tagbean) Sets the tag of this association.

28 $VVRFLDWLRQ%HDQ &RQVWUXFWRU $VVRFLDWLRQ%HDQ Default constructor. public AssociationBean(),QVWDQFH0HWKRGV JHW$FWLRQ7LPH JHW$VVRFLDWLRQ,' JHW7DJ%HDQ Returns the time of the tag read. public Timestamp getactiontime() Returns the ID of the association, the primary key of the avs_asset_property table. public long getassociationid() Returns the tag of this association. public TagBean gettagbean() VHW$FWLRQ7LPH7LPHVWDPS Sets the time of the tag read. public setactiontime(timestamp dateactiontime) Timestamp dateactiontime The time of the tag read. VHW$VVRFLDWLRQ,'ORQJ Sets the ID of the association, the primary key of the avs_asset_property table. public setassociationid(long lassociationid) long lassociationid The association ID.

29 $VVRFLDWLRQ%HDQ VHW7DJ%HDQ7DJ%HDQ Sets the tag of this association. public settagbean(tagbean otagbean) TagBean otagbean The tag.

30 ,QWHUIDFH$VVRFLDWLRQ0JU,QWHUIDFH$VVRFLDWLRQ0JU public abstract interface AssociationMgr implements EJBObject This is the remote interface for the remote/ejb/home combination for the activity bean. Even if the corresponding EJB bean class has more methods, only the methods of this interface can be activated on a remote system. $OO,PSOHPHQWHG,QWHUIDFHV EJBObject,QVWDQFH0HWKRGV6XPPDU\ AllocationBean AssetTagAssociationBea n InfoBean InfoBean AssetTagAssociationBea n AssetTagAssociationBea n AssetTagAssociationBea n allocate(allocationbean) Required method signature for remote interface for DefaultActivityEJB. associatetagasset(assettagassociationbean) Required method signature for remote interface for DefaultActivityEJB. modifyassociation(assetbean, TagBean) Required method signature for remote interface for DefaultActivityEJB. unassociateasset(assetbean) Required method signature for remote interface for DefaultActivityEJB. unassociatetagasset(assettagassociationbean) Required method signature for remote interface for DefaultActivityEJB. verifyassociation(assetbean) Required method signature for remote interface for DefaultActivityEJB. verifyassociation(tagbean) Required method signature for remote interface for DefaultActivityEJB.

31 ,QWHUIDFH$VVRFLDWLRQ0JU,QVWDQFH0HWKRGV DOORFDWH$OORFDWLRQ%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public AllocationBean allocate(allocationbean oallocationbean) throws RemoteException AllocationBean oallocationbean The results of a buy/sell transaction. DVVRFLDWH7DJ$VVHW$VVHW7DJ$VVRFLDWLRQ%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public AssetTagAssociationBean associatetagasset(assettagassociationbean oassettagassociationbean) throws RemoteException AssetTagAssociationBean oassettagassociationbean The association of asset and tag. PRGLI\$VVRFLDWLRQ$VVHW%HDQ7DJ%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public InfoBean modifyassociation(assetbean oassetbean, TagBean vectagbean) throws RemoteException AssetBean oassetbean The asset. TagBean vectagbean A collection of tags to be associate with the asset. XQDVVRFLDWH$VVHW$VVHW%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public InfoBean unassociateasset(assetbean oassetbean) throws RemoteException

32 ,QWHUIDFH$VVRFLDWLRQ0JU AssetBean oassetbean The asset. XQDVVRFLDWH7DJ$VVHW$VVHW7DJ$VVRFLDWLRQ%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public AssetTagAssociationBean unassociatetagasset(assettagassociationbean oassettagassociationbean) throws RemoteException AssetTagAssociationBean oassettagassociationbean The association of asset and tag. YHULI\$VVRFLDWLRQ$VVHW%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public AssetTagAssociationBean verifyassociation(assetbean oassetbean) throws RemoteException AssetBean oassetbean The asset. YHULI\$VVRFLDWLRQ7DJ%HDQ Required method signature for remote interface for DefaultActivityEJB. See also AssociationMgrEJB. public AssetTagAssociationBean verifyassociation(tagbean otagbean) throws RemoteException TagBean otagbean The tag.

33 $VVRFLDWLRQ0JU(-% $VVRFLDWLRQ0JU(-% public class AssociationMgrEJB extends DefaultActivityEJB implements SessionBean java.lang.object -- com.smartchain.datacenter.avs.ejb.statelessbaseejb -- com.smartchain.datacenter.avs.ejb.defaultactivityejb -- com.smartchain.datacenter.avs.ejb.associationmgrejb This class supports association of tags with assets. A tag can only be associated with one asset, and one asset can be associated with multiple tags. Tags and assets can be reused and re-associated by dropping old associations. AVS supports the creation of asset/tag association when association events arrive from the site server. If tags or assets do not yet exist in the system, they are created in real-time. For AVS to receive and process events dispatched from a site server as association/dissociation events, the user must configure a datapoint with an association or commission activity. $OO,PSOHPHQWHG,QWHUIDFHV SessionBean &RQVWUXFWRU6XPPDU\ AssociationMgrEJB() Default constructor.,qvwdqfh0hwkrgv6xppdu\ AllocationBean AssetTagAssociationBea n allocate(allocationbean) Allocates a range of asset IDs and returns the starting serial number to be allocated. associatetagasset(assettagassociationbean) Associates a tag with an asset. ejbactivate() Overrides with an empty method body.

34 $VVRFLDWLRQ0JU(-% InfoBean InfoBean AssetTagAssociationBea n AssetTagAssociationBea n AssetTagAssociationBea n ejbcreate() Performs super.ejbcreate() and retrieves the AssetMgr for use in associatetagasset(). ejbpassivate() Overrides with an empty method body. ejbremove() Overrides with an empty method body. modifyassociation(assetbean, TagBean) Modifies an association (deprecated). setsessioncontext(sessioncontext) Stores the session context provided by the system. unassociateasset(assetbean) Dissociates an asset from all of its tags. unassociatetagasset(assettagassociationbean) Dissociates one or more tags from an asset. verifyassociation(assetbean) Determines the association information from the supplied asset. verifyassociation(tagbean) Determines the association information from the supplied tag. &RQVWUXFWRU $VVRFLDWLRQ0JU(-% Default constructor. public AssociationMgrEJB(),QVWDQFH0HWKRGV DOORFDWH$OORFDWLRQ%HDQ Allocates a range of asset IDs and returns the starting serial number to be allocated.

35 $VVRFLDWLRQ0JU(-% public AllocationBean allocate(allocationbean oallocationbean) AllocationBean oallocationbean The results of a buy/sell transaction. DVVRFLDWH7DJ$VVHW$VVHW7DJ$VVRFLDWLRQ%HDQ HME$FWLYDWH Associates a tag with an asset. This method takes an AssetTagAssociationBean and returns a version of it that contains messages regarding any errors in the association process. public AssetTagAssociationBean associatetagasset(assettagassociationbean oassettagassociationbean) AssetTagAssociationBean oassettagassociationbean A tag and asset that are to be associated. Overrides with an empty method body. public ejbactivate() 6SHFLILHG%\ ejbactivate() in javax.ejb.sessionbean HME&UHDWH HME3DVVLYDWH Performs super.ejbcreate() and retrieves the AssetMgr for use in associatetagasset(). public ejbcreate() throws RemoteException Overrides with an empty method body. public ejbpassivate() 6SHFLILHG%\ ejbpassivate() in javax.ejb.sessionbean HME5HPRYH Overrides with an empty method body. public ejbremove()

36 $VVRFLDWLRQ0JU(-% 6SHFLILHG%\ ejbremove() in javax.ejb.sessionbean PRGLI\$VVRFLDWLRQ$VVHW%HDQ7DJ%HDQ Modifies an association (deprecated). public InfoBean modifyassociation(assetbean oassetbean, TagBean vectagbean) AssetBean oassetbean The asset. TagBean vectagbean A collection of tags to be associate with the asset. VHW6HVVLRQ&RQWH[W6HVVLRQ&RQWH[W Stores the session context provided by the system. public setsessioncontext(sessioncontext ctx) SessionContext ctx The session context. 6SHFLILHG%\ setsessioncontext(sessioncontext) in javax.ejb.sessionbean XQDVVRFLDWH$VVHW$VVHW%HDQ Dissociates an asset from all of its tags. If dissociation is successful, this method returns null. Otherwise, it returns an InfoBean containing the error message. public InfoBean unassociateasset(assetbean oassetbean) AssetBean oassetbean The asset. XQDVVRFLDWH7DJ$VVHW$VVHW7DJ$VVRFLDWLRQ%HDQ Dissociates one or more tags from an asset. public AssetTagAssociationBean unassociatetagasset(assettagassociationbean oassettagassociationbean) AssetTagAssociationBean oassettagassociationbean The tag/asset association information.

37 YHULI\$VVRFLDWLRQ$VVHW%HDQ Determines the association information from the supplied asset. $VVRFLDWLRQ0JU(-% public AssetTagAssociationBean verifyassociation(assetbean oassetbean) AssetBean oassetbean The asset. YHULI\$VVRFLDWLRQ7DJ%HDQ Determines the association information from the supplied tag. public AssetTagAssociationBean verifyassociation(tagbean otagbean) TagBean otagbean The tag.

38 ,QWHUIDFH$VVRFLDWLRQ0JU+RPH,QWHUIDFH$VVRFLDWLRQ0JU+RPH public abstract interface AssociationMgrHome implements EJBHome The home interface participates in the instantiation of the corresponding EJB class. $OO,PSOHPHQWHG,QWHUIDFHV EJBHome,QVWDQFH0HWKRG6XPPDU\ AssociationMgr create(),qvwdqfh0hwkrg Implement this method to instantiate the bean. FUHDWH Implement this method to instantiate the bean. This method is called by the client program. Refer to J2EE specifications for more details. public AssociationMgr create() throws CreateException, RemoteException

39 ,QWHUIDFH&RPPLVVLRQ$FWLYLW\ public abstract interface CommissionActivity implements DefaultActivity, NotifiableObject,QWHUIDFH&RPPLVVLRQ$FWLYLW\ This is the remote interface for the remote/ejb/home combination for the activity bean. Even if the corresponding EJB bean class has more methods, only the methods of this interface can be activated on a remote system. $OO,PSOHPHQWHG,QWHUIDFHV DefaultActivity, NotifiableObject,QVWDQFH0HWKRG6XPPDU\,QVWDQFH0HWKRG UHFHLYH(YHQWORQJ+DVKWDEOH receiveevent(long, Hashtable) Required method signature for remote interface for CommissionActivityEJB. Required method signature for remote interface for CommissionActivityEJB. See also CommissionActivityEJB. public receiveevent(long instanceid, Hashtable oparams) throws CreateException, RemoteException long instanceid The instance of the activity at a datapoint. The number is the primary key of the avs_datapoint_activity table. Hashtable oparams A table of parameters. 6SHFLILHG%\ receiveevent(long, Hashtable) in com.smartchain.datacenter.avs.notifiableobject

Enterprise JavaBeans. Layer:03. Session

Enterprise JavaBeans. Layer:03. Session Enterprise JavaBeans Layer:03 Session Agenda Build stateless & stateful session beans. Describe the bean's lifecycle. Describe the server's swapping mechanism. Last Revised: 10/2/2001 Copyright (C) 2001

More information

Q: I just remembered that I read somewhere that enterprise beans don t support inheritance! What s that about?

Q: I just remembered that I read somewhere that enterprise beans don t support inheritance! What s that about? session beans there are no Dumb Questions Q: If it s so common to leave the methods empty, why don t they have adapter classes like they have for event handlers that implement all the methods from the

More information

UNIT-III EJB APPLICATIONS

UNIT-III EJB APPLICATIONS UNIT-III EJB APPLICATIONS CONTENTS EJB Session Beans EJB entity beans EJB clients EJB Deployment Building an application with EJB. EJB Types Types of Enterprise Beans Session beans: Also called business

More information

Stateless Session Bean

Stateless Session Bean Session Beans As its name implies, a session bean is an interactive bean and its lifetime is during the session with a specific client. It is non-persistent. When a client terminates the session, the bean

More information

Oracle Developer Day Agenda

Oracle Developer Day Agenda Oracle er Day Agenda 9.00 am 9:55 am 10:45 am 11:35 am 12.20 pm 1.15 pm 2.00 pm 2.30 pm SOA & The Agile Enterprise ing Enterprise JavaBeans EJB 3.0 ing Web Services Integrating Services with BPEL Lunch

More information

Enterprise JavaBeans. Session EJBs

Enterprise JavaBeans. Session EJBs Enterprise JavaBeans Dan Harkey Client/Server Computing Program Director San Jose State University dharkey@email.sjsu.edu www.corbajava.engr.sjsu.edu Session EJBs Implement business logic that runs on

More information

Enterprise Java Beans

Enterprise Java Beans Enterprise Java Beans Objectives Three Tiered Architecture Why EJB? What all we should know? EJB Fundamentals 2 Three Tiered Architecture Introduction Distributed three-tier design is needed for Increased

More information

Enterprise JavaBeans: BMP and CMP Entity Beans

Enterprise JavaBeans: BMP and CMP Entity Beans CIS 386 Course Advanced Enterprise Java Programming Enterprise JavaBeans: BMP and CMP Entity Beans René Doursat Guest Lecturer Golden Gate University, San Francisco February 2003 EJB Trail Session Beans

More information

@jbossdeveloper. explained

@jbossdeveloper. explained @jbossdeveloper explained WHAT IS? A recommended approach, using modern technologies, that makes you more productive. Modern Technologies A Simple Process Build A Domain Layer Java EE 6 HTML5 by AeroGear

More information

Virus Scan with SAP Process Integration Using Custom EJB Adapter Module

Virus Scan with SAP Process Integration Using Custom EJB Adapter Module Virus Scan with SAP Process Integration Using Custom EJB Adapter Module Applies to: SAP Process Integration 7.0 and Above Versions. Custom Adapter Module, Virus Scan Adapter Module, Virus Scan in SAP PI.

More information

Conception of Information Systems Lecture 8: J2EE and EJBs

Conception of Information Systems Lecture 8: J2EE and EJBs Conception of Information Systems Lecture 8: J2EE and EJBs 3 May 2005 http://lsirwww.epfl.ch/courses/cis/2005ss/ 2004-2005, Karl Aberer & J.P. Martin-Flatin 1 1 Outline Components J2EE and Enterprise Java

More information

Enterprise JavaBeans. Layer:07. Entity

Enterprise JavaBeans. Layer:07. Entity Enterprise JavaBeans Layer:07 Entity Agenda Build entity beans. Describe the bean's lifecycle. Describe the server's free pool. Copyright (C) 2001 2 Entity Beans Purpose Entity beans represent business

More information

<<Interface>> EntityBean (from ejb) EJBHome. <<Interface>> CountHome. (from entity) create() findbyprimarykey() <<Interface>> EJBObject.

<<Interface>> EntityBean (from ejb) EJBHome. <<Interface>> CountHome. (from entity) create() findbyprimarykey() <<Interface>> EJBObject. Count BMP Entity EJB Count BMP Entity EJB EJBHome (from ejb) EntityBean (from ejb) CountClient main() CountHome create() findbyprimarykey() EJBObject (from ejb) Count getcurrentsum() setcurrentsum() increment()

More information

Introduction to Session beans EJB 3.0

Introduction to Session beans EJB 3.0 Introduction to Session beans EJB 3.0 Remote Interface EJB 2.1 ===================================================== public interface Hello extends javax.ejb.ejbobject { /** * The one method - hello -

More information

Topexam. 一番権威的な IT 認定試験ウェブサイト 最も新たな国際 IT 認定試験問題集

Topexam.  一番権威的な IT 認定試験ウェブサイト 最も新たな国際 IT 認定試験問題集 Topexam 一番権威的な IT 認定試験ウェブサイト http://www.topexam.jp 最も新たな国際 IT 認定試験問題集 Exam : 1D0-442 Title : CIW EnterprISE SPECIALIST Vendors : CIW Version : DEMO Get Latest & Valid 1D0-442 Exam's Question and Answers

More information

Enterprise JavaBeans. Layer:08. Persistence

Enterprise JavaBeans. Layer:08. Persistence Enterprise JavaBeans Layer:08 Persistence Agenda Discuss "finder" methods. Describe DataSource resources. Describe bean-managed persistence. Describe container-managed persistence. Last Revised: 11/1/2001

More information

Lab2: CMP Entity Bean working with Session Bean

Lab2: CMP Entity Bean working with Session Bean Session Bean The session bean in the Lab1 uses JDBC connection to retrieve conference information from the backend database directly. The Lab2 extends the application in Lab1 and adds an new entity bean

More information

The Details of Writing Enterprise Java Beans

The Details of Writing Enterprise Java Beans The Details of Writing Enterprise Java Beans Your Guide to the Fundamentals of Writing EJB Components P. O. Box 80049 Austin, TX 78708 Fax: +1 (801) 383-6152 information@middleware-company.com +1 (877)

More information

Objectives. Software Development using MacroMedia s JRun. What are EJBs? Topics for Discussion. Examples of Session beans calling entity beans

Objectives. Software Development using MacroMedia s JRun. What are EJBs? Topics for Discussion. Examples of Session beans calling entity beans Software Development using MacroMedia s JRun B.Ramamurthy Objectives To study the components and working of an enterprise java bean (EJB). Understand the features offered by Jrun4 environment. To be able

More information

jar command Java Archive inherits from tar : Tape Archive commands: jar cvf filename jar tvf filename jar xvf filename java jar filename.

jar command Java Archive inherits from tar : Tape Archive commands: jar cvf filename jar tvf filename jar xvf filename java jar filename. jar & jar files jar command Java Archive inherits from tar : Tape Archive commands: jar cvf filename jar tvf filename jar xvf filename java jar filename.jar jar file A JAR file can contain Java class files,

More information

J2EE Application Server. EJB Overview. Java versus.net for the Enterprise. Component-Based Software Engineering. ECE493-Topic 5 Winter 2007

J2EE Application Server. EJB Overview. Java versus.net for the Enterprise. Component-Based Software Engineering. ECE493-Topic 5 Winter 2007 Component-Based Software Engineering ECE493-Topic 5 Winter 2007 Lecture 24 Java Enterprise (Part B) Ladan Tahvildari Assistant Professor Dept. of Elect. & Comp. Eng. University of Waterloo J2EE Application

More information

SDN Community Contribution

SDN Community Contribution Step by step guide to develop a module for reading file name in a sender file adapter SDN Community Contribution (This is not an official SAP document.) Disclaimer & Liability Notice This document may

More information

SCBCD EXAM STUDY KIT. Paul Sanghera CX JAVA BUSINESS COMPONENT DEVELOPER CERTIFICATION FOR EJB MANNING. Covers all you need to pass

SCBCD EXAM STUDY KIT. Paul Sanghera CX JAVA BUSINESS COMPONENT DEVELOPER CERTIFICATION FOR EJB MANNING. Covers all you need to pass CX-310-090 SCBCD EXAM STUDY KIT JAVA BUSINESS COMPONENT DEVELOPER CERTIFICATION FOR EJB Covers all you need to pass Includes free download of a simulated exam You will use it even after passing the exam

More information

Create Modules for the J2EE Adapter Engine

Create Modules for the J2EE Adapter Engine How-to Guide SAP NetWeaver 04 How To Create Modules for the J2EE Adapter Engine Version 1.00 September 2005 Applicable Releases: SAP NetWeaver 04 Exchange Infrastructure 3.0 Copyright 2005 SAP AG. All

More information

Lab1: Stateless Session Bean for Registration Fee Calculation

Lab1: Stateless Session Bean for Registration Fee Calculation Registration Fee Calculation The Lab1 is a Web application of conference registration fee discount calculation. There may be sub-conferences for attendee to select. The registration fee varies for different

More information

The Developer s Guide to Understanding Enterprise JavaBeans. Nova Laboratories

The Developer s Guide to Understanding Enterprise JavaBeans. Nova Laboratories The Developer s Guide to Understanding Enterprise JavaBeans Nova Laboratories www.nova-labs.com For more information about Nova Laboratories or the Developer Kitchen Series, or to add your name to our

More information

EJB ENTERPRISE JAVA BEANS INTRODUCTION TO ENTERPRISE JAVA BEANS, JAVA'S SERVER SIDE COMPONENT TECHNOLOGY. EJB Enterprise Java

EJB ENTERPRISE JAVA BEANS INTRODUCTION TO ENTERPRISE JAVA BEANS, JAVA'S SERVER SIDE COMPONENT TECHNOLOGY. EJB Enterprise Java EJB Enterprise Java EJB Beans ENTERPRISE JAVA BEANS INTRODUCTION TO ENTERPRISE JAVA BEANS, JAVA'S SERVER SIDE COMPONENT TECHNOLOGY Peter R. Egli 1/23 Contents 1. What is a bean? 2. Why EJB? 3. Evolution

More information

Distributed Applications (RMI/JDBC) Copyright UTS Faculty of Information Technology 2002 EJB EJB-3

Distributed Applications (RMI/JDBC) Copyright UTS Faculty of Information Technology 2002 EJB EJB-3 Advanced Java programming (J2EE) Enterprise Java Beans (EJB) Part 1 Architecture & Session Beans Chris Wong chw@it.uts.edu.au [based on prior course notes & the Sun J2EE tutorial] Enterprise Java Beans

More information

Lab3: A J2EE Application with Stateful Session Bean and CMP Entity Beans

Lab3: A J2EE Application with Stateful Session Bean and CMP Entity Beans Session Bean and CMP Entity Beans Based on the lab2, the lab3 implements an on line symposium registration application RegisterApp which consists of a front session bean and two CMP supported by database

More information

8. Component Software

8. Component Software 8. Component Software Overview 8.1 Component Frameworks: An Introduction 8.2 OSGi Component Framework 8.2.1 Component Model and Bundles 8.2.2 OSGi Container and Framework 8.2.3 Further Features of the

More information

J2EE Web Development 13/1/ Application Servers. Application Servers. Agenda. In the beginning, there was darkness and cold.

J2EE Web Development 13/1/ Application Servers. Application Servers. Agenda. In the beginning, there was darkness and cold. 1. Application Servers J2EE Web Development In the beginning, there was darkness and cold. Then, mainframe terminals terminals Centralized, non-distributed Agenda Application servers What is J2EE? Main

More information

Oracle8i. Enterprise JavaBeans Developer s Guide and Reference. Release 3 (8.1.7) July 2000 Part No. A

Oracle8i. Enterprise JavaBeans Developer s Guide and Reference. Release 3 (8.1.7) July 2000 Part No. A Oracle8i Enterprise JavaBeans Developer s Guide and Reference Release 3 (8.1.7) July 2000 Part No. A83725-01 Enterprise JavaBeans Developer s Guide and Reference, Release 3 (8.1.7) Part No. A83725-01 Release

More information

Teamcenter Global Services Customization Guide. Publication Number PLM00091 J

Teamcenter Global Services Customization Guide. Publication Number PLM00091 J Teamcenter 10.1 Global Services Customization Guide Publication Number PLM00091 J Proprietary and restricted rights notice This software and related documentation are proprietary to Siemens Product Lifecycle

More information

Life Cycle of an Entity Bean

Life Cycle of an Entity Bean Entity Bean An entity bean represents a business object by a persistent database table instead of representing a client. Students, teachers, and courses are some examples of entity beans. Each entity bean

More information

Entity Beans 02/24/2004

Entity Beans 02/24/2004 Entity Beans 1 This session is about Entity beans. Understanding entity beans is very important. Yet, entity bean is a lot more complex beast than a session bean since it involves backend database. So

More information

JAVA. Aspects (AOP) AspectJ

JAVA. Aspects (AOP) AspectJ JAVA Aspects (AOP) AspectJ AOP Aspect-oriented programming separation of concerns concern ~ a part of program code related to a particular functionality typically understood as an extension of OOP solves

More information

Session Bean. Disclaimer & Acknowledgments. Revision History. Sang Shin Jeff Cutler

Session Bean.  Disclaimer & Acknowledgments. Revision History. Sang Shin Jeff Cutler J2EE Programming with Passion! Session Bean Sang Shin sang.shin@sun.com Jeff Cutler jpcutler@yahoo.com 1 www.javapassion.com/j2ee 2 Disclaimer & Acknowledgments? Even though Sang Shin is a full-time employee

More information

Describing the functionality of EJB using the behavior protocols

Describing the functionality of EJB using the behavior protocols Describing the functionality of EJB using the behavior protocols Radek Pospíšil 1, František Plášil 1,2 1 Charles University Faculty of Mathematics and Physics Department of Software Engineering Malostranké

More information

Oracle9iAS Containers for J2EE

Oracle9iAS Containers for J2EE Oracle9iAS Containers for J2EE Enterprise JavaBeans Developer s Guide Release 2 (9.0.4) Part No. B10324-01 April 2003 Beta Draft. Oracle9iAS Containers for J2EE Enterprise JavaBeans Developer s Guide,

More information

Artix Artix for J2EE (JAX-WS)

Artix Artix for J2EE (JAX-WS) Artix 5.6.3 Artix for J2EE (JAX-WS) Micro Focus The Lawn 22-30 Old Bath Road Newbury, Berkshire RG14 1QN UK http://www.microfocus.com Copyright Micro Focus 2015. All rights reserved. MICRO FOCUS, the Micro

More information

8. Component Software

8. Component Software 8. Component Software Overview 8.1 Component Frameworks: An Introduction 8.2 OSGi Component Framework 8.2.1 Component Model and Bundles 8.2.2 OSGi Container and Framework 8.2.3 Further Features of the

More information

Code generation with XDoclet. It s so beautifully arranged on the plate you know someone s fingers have been all over it.

Code generation with XDoclet. It s so beautifully arranged on the plate you know someone s fingers have been all over it. Code generation with XDoclet It s so beautifully arranged on the plate you know someone s fingers have been all over it. Julia Child 33 34 CHAPTER 2 Code generation with XDoclet Developing EJBs today entails

More information

JBuilder. Getting Started Guide part II. Preface. Creating your Second Enterprise JavaBean. Container Managed Persistent Bean.

JBuilder. Getting Started Guide part II. Preface. Creating your Second Enterprise JavaBean. Container Managed Persistent Bean. Getting Started Guide part II Creating your Second Enterprise JavaBean Container Managed Persistent Bean by Gerard van der Pol and Michael Faisst, Borland Preface Introduction This document provides an

More information

Enterprise JavaBeans (EJB) security

Enterprise JavaBeans (EJB) security Enterprise JavaBeans (EJB) security Nasser M. Abbasi sometime in 2000 page compiled on August 29, 2015 at 8:27pm Contents 1 Introduction 1 2 Overview of security testing 1 3 Web project dataflow 2 4 Test

More information

An Integrated Platform for Locationbased Services Built on Java Technologies. C. Kassapoglou Faist CSEM

An Integrated Platform for Locationbased Services Built on Java Technologies. C. Kassapoglou Faist CSEM An Integrated Platform for Locationbased Services Built on Java Technologies C. Kassapoglou Faist CSEM CSEM Centre Suisse d Electronique et Microtechnique Technologies for innovation High technology know-how

More information

Copyright UTS Faculty of Information Technology 2002 EJB2 EJB-3. Use Design Patterns 1 to re-use well known programming techniques.

Copyright UTS Faculty of Information Technology 2002 EJB2 EJB-3. Use Design Patterns 1 to re-use well known programming techniques. Advanced Java Programming (J2EE) Enterprise Java Beans (EJB) Part 2 Entity & Message Beans Chris Wong chw@it.uts.edu.au (based on prior class notes & Sun J2EE tutorial) Enterprise Java Beans Last lesson

More information

Component Interfaces

Component Interfaces Component Interfaces Example component-interfaces can be browsed at https://github.com/apache/tomee/tree/master/examples/component-interfaces Help us document this example! Click the blue pencil icon in

More information

Understanding and Designing with EJB

Understanding and Designing with EJB Understanding and Designing with EJB B.Ramamurthy Based on j2eetutorial documentation. http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html 3/31/2003 1 Review Request/Response Model Distributed Objects:

More information

Sharpen your pencil. entity bean synchronization

Sharpen your pencil. entity bean synchronization Using the interfaces below, write a legal bean class. You don t have to write the actual business logic, but at least list all the methods that you have to write in the class, with their correct declarations.

More information

Communication Software Exam 5º Ingeniero de Telecomunicación February 18th Full name: Part I: Theory Exam

Communication Software Exam 5º Ingeniero de Telecomunicación February 18th Full name: Part I: Theory Exam Part I: Theory Exam Duration, exam (this year's students): 3 hours () (last year's students): 2 hours 45 minutes Duration, part I: 2 hours, 30 minutes The use of books or notes is not permitted. Reply

More information

Transaction Commit Options

Transaction Commit Options Transaction Commit Options Entity beans in the EJB container of Borland Enterprise Server by Jonathan Weedon, Architect: Borland VisiBroker and Borland AppServer, and Krishnan Subramanian, Enterprise Consultant

More information

Enterprise JavaBeans (I) K.P. Chow University of Hong Kong

Enterprise JavaBeans (I) K.P. Chow University of Hong Kong Enterprise JavaBeans (I) K.P. Chow University of Hong Kong JavaBeans Components are self contained, reusable software units that can be visually composed into composite components using visual builder

More information

BEA WebLogic Server. Enterprise JavaBeans

BEA WebLogic Server. Enterprise JavaBeans BEA WebLogic Server Enterprise JavaBeans Document 1.0 April 2000 Copyright Copyright 2000 BEA Systems, Inc. All Rights Reserved. Restricted Rights Legend This software and documentation is subject to

More information

SAP NetWeaver Process Integration 7.1 Developing User Enhancement Modules in the Adapter Engine

SAP NetWeaver Process Integration 7.1 Developing User Enhancement Modules in the Adapter Engine SAP NetWeaver Process Integration 7.1 Developing User Enhancement Modules in the Adapter Engine SAP NetWeaver Regional Implementation Group SAP NetWeaver Product Management December 2007 SAP NetWeaver

More information

The 1st Java professional open source Convention Israel 2006

The 1st Java professional open source Convention Israel 2006 The 1st Java professional open source Convention Israel 2006 The Next Generation of EJB Development Frederic Simon AlphaCSP Agenda Standards, Open Source & EJB 3.0 Tiger (Java 5) & JEE What is EJB 3.0

More information

CHAPTER 3 SESSION BEANS

CHAPTER 3 SESSION BEANS CHAPTER 3 SESSION BEANS OBJECTIVES After completing Session Beans, you will be able to: Explain the functioning of stateful and stateless session beans. Describe the lifecycle and context interactions

More information

Component-Based Platform for a Virtual University Information System

Component-Based Platform for a Virtual University Information System Component-Based Platform for a Virtual University Information System Dr. IVAN GANCHEV, Dr. MAIRTIN O DROMA, FERGAL McDONNELL Department of Electronics and Computer Engineering University of Limerick National

More information

What is it? CMSC 433 Programming Language Technologies and Paradigms Spring Approach 1. Disadvantage of Approach 1

What is it? CMSC 433 Programming Language Technologies and Paradigms Spring Approach 1. Disadvantage of Approach 1 CMSC 433 Programming Language Technologies and Paradigms Spring 2007 Singleton Pattern Mar. 13, 2007 What is it? If you need to make sure that there can be one and only one instance of a class. For example,

More information

MindTelligent, Inc. EJB 2.0 Design and Development with JDeveloper 9i and stand alone OC4J (Oracle Components for Java) A Technical White Paper.

MindTelligent, Inc. EJB 2.0 Design and Development with JDeveloper 9i and stand alone OC4J (Oracle Components for Java) A Technical White Paper. MindTelligent, Inc. EJB 2.0 Design and Development with JDeveloper 9i and stand alone OC4J (Oracle Components for Java) A Technical White Paper. Published by MindTelligent 2034, Lamego Way, El Dorado Hills,

More information

Advanced Java Programming

Advanced Java Programming Advanced Java Programming Length: 4 days Description: This course presents several advanced topics of the Java programming language, including Servlets, Object Serialization and Enterprise JavaBeans. In

More information

J2EE Packaging and Deployment

J2EE Packaging and Deployment Summary of Contents Introduction 1 Chapter 1: The J2EE Platform 9 Chapter 2: Directory Services and JNDI 39 Chapter 3: Distributed Computing Using RMI 83 Chapter 4 Database Programming with JDBC 157 Chapter

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC Java Programming, Fall Java Data Types and Control Constructs CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference

More information

An EJB Bean as a Client to Another Bean

An EJB Bean as a Client to Another Bean Topics EJB Clients Unit III Middleware Technologies Roy Antony Arnold G Lecturer Panimalar Engineering i College Chennai, Tamilnadu, India An EJB Bean as a Client to Another Bean EJB Client Bean import.;

More information

Enterprise JavaBeans

Enterprise JavaBeans 3.0 Claude Duvallet University of Le Havre Faculty of Sciences and Technology 25 rue Philippe Lebon - BP 540 76058 LE HAVRE CEDEX, FRANCE Claude.Duvallet@gmail.com http://litis.univ-lehavre.fr/ duvallet/index-en.php

More information

Container Managed Persistent in EJB 2.0

Container Managed Persistent in EJB 2.0 Container Managed Persistent in EJB 2.0 A comprehensive explanation of the new CMP in EJB 2.0 (PFD 2) using the RI of SUN By Raphael Parree 2001 IT-DreamTeam Table of Contents INTRODUCTION 3 CMP IMPLEMENTATION

More information

Sharpen your pencil. Container services. EJB Object. the bean

Sharpen your pencil. Container services. EJB Object. the bean EJB architecture 1 Label the three parts in the diagram. Client B Container services server Client object biz interface A EJB Object C the bean DB 2 Describe (briefly) what each of the three things are

More information

The Struts MVC Design. Sample Content

The Struts MVC Design. Sample Content Struts Architecture The Struts MVC Design Sample Content The Struts t Framework Struts implements a MVC infrastructure on top of J2EE One Servlet acts as the Front Controller Base classes are provided

More information

The Write Once, Deploy N MDA Case Study

The Write Once, Deploy N MDA Case Study Pieter Van Gorp, The Write Once, Deploy N MDA Case Study Belgisch-Nederlandse Evolution Workshop July 8-9, 2004 @ University of Antwerp The Write Once, Deploy N MDA Case Study Pieter Van Gorp, Dirk Janssens

More information

Inheritance. Inheritance Reserved word protected Reserved word super Overriding methods Class Hierarchies Reading for this lecture: L&L

Inheritance. Inheritance Reserved word protected Reserved word super Overriding methods Class Hierarchies Reading for this lecture: L&L Inheritance Inheritance Reserved word protected Reserved word super Overriding methods Class Hierarchies Reading for this lecture: L&L 9.1 9.4 1 Inheritance Inheritance allows a software developer to derive

More information

133 July 23, :01 pm

133 July 23, :01 pm Protocol Between a Message-Driven Bean Instance and its ContainerEnterprise JavaBeans 3.2, Public Draft Message-Driven Bean When a message-driven bean using bean-managed transaction demarcation uses the

More information

Topics. Advanced Java Programming. Transaction Definition. Background. Transaction basics. Transaction properties

Topics. Advanced Java Programming. Transaction Definition. Background. Transaction basics. Transaction properties Advanced Java Programming Transactions v3 Based on notes by Wayne Brooks & Monson-Haefel, R Enterprise Java Beans 3 rd ed. Topics Transactions background Definition, basics, properties, models Java and

More information

DESIGN PATTERN - INTERVIEW QUESTIONS

DESIGN PATTERN - INTERVIEW QUESTIONS DESIGN PATTERN - INTERVIEW QUESTIONS http://www.tutorialspoint.com/design_pattern/design_pattern_interview_questions.htm Copyright tutorialspoint.com Dear readers, these Design Pattern Interview Questions

More information

Java/J2EE Interview Questions(255 Questions)

Java/J2EE Interview Questions(255 Questions) Java/J2EE Interview Questions(255 Questions) We are providing the complete set of Java Interview Questions to the Java/J2EE Developers, which occurs frequently in the interview. Java:- 1)What is static

More information

Java Smart Ticket Demo Application Scrutinized

Java Smart Ticket Demo Application Scrutinized Java Smart Ticket Demo Application Scrutinized Dominik Gruntz and René Müller University of Applied Sciences, Aargau, Switzerland {d.gruntz, rene.mueller@fh-aargau.ch Abstract. For the Java component model

More information

Developing Adapter User-Module to Encrypt XML Elements in Process Integration 7.1

Developing Adapter User-Module to Encrypt XML Elements in Process Integration 7.1 Developing Adapter User-Module to Encrypt XML Elements in Process Integration 7.1 Applies to: SAP NetWeaver Process Integration 7.1. For more information, visit the Service Bus-based Integration homepage.

More information

API Knowledge Coding Guide Version 7.2

API Knowledge Coding Guide Version 7.2 API Knowledge Coding Guide Version 7.2 You will be presented with documentation blocks extracted from API reference documentation (Javadocs and the like). For each block, you will be also presented with

More information

these methods, remote clients can access the inventory services provided by the application.

these methods, remote clients can access the inventory services provided by the application. 666 ENTERPRISE BEANS 18 Enterprise Beans problems. The EJB container not the bean developer is responsible for system-level services such as transaction management and security authorization. Second, because

More information

ENTERPRISE beans are the J2EE components that implement Enterprise Java-

ENTERPRISE beans are the J2EE components that implement Enterprise Java- 18 Enterprise Beans ENTERPRISE beans are the J2EE components that implement Enterprise Java- Beans (EJB) technology. Enterprise beans run in the EJB container, a runtime environment within the J2EE server

More information

JNDI. JNDI (Java Naming and Directory Interface) is used as a naming and directory service in J2EE/J2SE components.

JNDI. JNDI (Java Naming and Directory Interface) is used as a naming and directory service in J2EE/J2SE components. JNDI JNDI (Java Naming and Directory Interface) is used as a naming and directory service in J2EE/J2SE components. A Naming service is a service that provides a mechanism for giving names to objects so

More information

Applying Aspect Orientation to J2EE Business Tier Patterns

Applying Aspect Orientation to J2EE Business Tier Patterns Applying Aspect Orientation to J2EE Business Tier Patterns Therthala Murali murali_therthala@yahoo.com Renaud Pawlak pawlakr@rh.edu Houman Younessi houman@rh.edu Rensselaer Polytechnic Institute- Hartford

More information

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question) CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

Deployment Manual. SAP J2EE Engine 6.20

Deployment Manual. SAP J2EE Engine 6.20 Deployment Manual SAP J2EE Engine 6.20 Contents About This Manual... 4 Target Audience... 4 Structure... 4 Deployment Tasks...5 Overview... 6 Generate J2EE Components... 7 Generate J2EE Components Using

More information

Oracle Containers for J2EE

Oracle Containers for J2EE Oracle Containers for J2EE Orion CMP Developer s Guide 10g Release 3 (10.1.3.1) B28220-01 September 2006 Oracle Containers for J2EE Orion CMP Developer s Guide, 10g Release 3 (10.1.3.1) B28220-01 Copyright

More information

CSS 533 Program 3: Mobile-Agent Execution Platform Professor: Munehiro Fukuda Due date: see the syllabus

CSS 533 Program 3: Mobile-Agent Execution Platform Professor: Munehiro Fukuda Due date: see the syllabus CSS 533 Program 3: Mobile-Agent Execution Platform Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment implements a mobile-agent execution platform that is in general facilitated

More information

5. Enterprise JavaBeans 5.4 Session Beans. Session beans

5. Enterprise JavaBeans 5.4 Session Beans. Session beans 5.4 Session Beans Session beans Exécutent des traitements métiers (calculs, accès BD, ) Peuvent accéder à des données dans la BD mais ne représentent pas directement ces données. Sont non persistants (short-lived)

More information

The Object Class. java.lang.object. Important Methods In Object. Mark Allen Weiss Copyright 2000

The Object Class. java.lang.object. Important Methods In Object. Mark Allen Weiss Copyright 2000 The Object Class Mark Allen Weiss Copyright 2000 1/4/02 1 java.lang.object All classes either extend Object directly or indirectly. Makes it easier to write generic algorithms and data structures Makes

More information

IBM WebSphere Application Server. J2EE Programming Model Best Practices

IBM WebSphere Application Server. J2EE Programming Model Best Practices IBM WebSphere Application Server J2EE Programming Model Best Practices Requirements Matrix There are four elements of the system requirements: business process and application flow dynamic and static aspects

More information

public static boolean isoutside(int min, int max, int value)

public static boolean isoutside(int min, int max, int value) See the 2 APIs attached at the end of this worksheet. 1. Methods: Javadoc Complete the Javadoc comments for the following two methods from the API: (a) / @param @param @param @return @pre. / public static

More information

Enterprise JavaBeans TM

Enterprise JavaBeans TM Enterprise JavaBeans TM Linda DeMichiel Sun Microsystems, Inc. Agenda Quick introduction to EJB TM Major new features Support for web services Container-managed persistence Query language Support for messaging

More information

Enterprise JavaBeans 2.1

Enterprise JavaBeans 2.1 Enterprise JavaBeans 2.1 STEFAN DENNINGER and INGO PETERS with ROB CASTANEDA translated by David Kramer ApressTM Enterprise JavaBeans 2.1 Copyright c 2003 by Stefan Denninger and Ingo Peters with Rob Castaneda

More information

Building Applications with the Java EE 5 Platform

Building Applications with the Java EE 5 Platform Building Applications with the Java EE 5 Platform Roberto Chinnici Senior Staff Engineer Sun Microsystems, Inc. Roberto Chinnici Building Applications with the Java EE 5 Platform Page 1 Agenda Introduction

More information

Declarations and Access Control SCJP tips

Declarations and Access Control  SCJP tips Declarations and Access Control www.techfaq360.com SCJP tips Write code that declares, constructs, and initializes arrays of any base type using any of the permitted forms both for declaration and for

More information

8. Component Software

8. Component Software 8. Component Software Overview 8.1 Component Frameworks: An Introduction 8.2 Microsoft s Component Object Model 8.2.1 Component Model 8.2.2 Component Infrastructure 8.2.3 Further Features of the COM Framework

More information

Java Fundamentals (II)

Java Fundamentals (II) Chair of Software Engineering Languages in Depth Series: Java Programming Prof. Dr. Bertrand Meyer Java Fundamentals (II) Marco Piccioni static imports Introduced in 5.0 Imported static members of a class

More information

Java Finite State Machine Framework

Java Finite State Machine Framework 1. Requirements JDK 1.4.x (http://java.sun.com/j2se/1.4.2/download.html) 2. Overview Java Finite State Machine Framework contains classes that define FSM meta-model, allows to manipulate with model, compile

More information

Java J Course Outline

Java J Course Outline JAVA EE - J2SE - CORE JAVA After all having a lot number of programming languages. Why JAVA; yet another language!!! AND NOW WHY ONLY JAVA??? CHAPTER 1: INTRODUCTION What is Java? History Versioning The

More information

3. Can an abstract class include both abstract methods and non-abstract methods? D

3. Can an abstract class include both abstract methods and non-abstract methods? D Assignment 13 Abstract Classes and Polymorphism CSC 123 Fall 2018 Answer Sheet Short Answers. Multiple Choice 1. What is an abstract class? C A. An abstract class is one without any child classes. B. An

More information

Web Services Integration Toolkit for OpenVMS Exceptions and Errors

Web Services Integration Toolkit for OpenVMS Exceptions and Errors Web Services Integration Toolkit for OpenVMS Exceptions and Errors July 2012 This document provides details about the exception classes in Web Services Integration toolkit. It also provides information

More information

Techniques for Building J2EE Applications

Techniques for Building J2EE Applications Techniques for Building J2EE Applications Dave Landers BEA Systems, Inc. dave.landers@4dv.net dave.landers@bea.com Why are we Here? Discuss issues encountered with J2EE Application deployment Based on

More information

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function?

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function? 1 The finally block of an exception handler is: -executed when an exception is thrown -always executed when the code leaves any part of the Try statement -always executed -always executed when the code

More information