Wednesday, August 25, 2010

SOA Architecture


SOA means Service Oriented Architecture.

above diagram illustrated the typical architecture.

"write once,read anywhere" concept accelerated by the SOA architecture.

Sunday, August 22, 2010

Session Bean Example ....

This is the session Bean example i have done.

public class BalanceInquiryBean extends AbstractCommonSMSBanking implements SessionBean,CommonSMSBanking{

public BalanceInquiryBean() {
super();
// TODO Auto-generated constructor stub
}
................


public void ejbCreate() throws CreateException {
// TODO Auto-generated method stub
}

public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo){
if(("D").equals(this.getDayNightMode()) ){
SMS002L2DAOImpl sms002L2 = new SMS002L2DAOImpl();
SMS002L2 sms002L2Obj = null;

..................

}




Home Interface

defines the methods that allow a client to create and find an entity bean.

Example:-

public interface BalanceInquiryHome extends EJBHome {

public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo) throws RemoteException, CreateException;


}


Remote Interface

The remote interface extends javax.ejb.EJBObject and defines the business methods that a remote client may invoke.

public interface BalanceInquiry extends EJBObject {

public Balance generateBalance() throws RemoteException, CreateException;

}