Are You Recruiter/Hiring Manager?
Cloud-based Candidate Screening | Online Tests
PMP 1600 Questions
PMP 1600 Questions
1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)

Tutorial Home

Hibernate

  • Advantage of Hibernate over JDBC
  • Hibernate Setup with an web Application
  • First Hibernate Application
  • Hibernate mapping with Database TABLE
  • Hibernate Data Type-Java Data Type - SQL Data Type mapping
  • One to Many Relation in Hibernate
  • One to Many Relation in Hibernate bi-directional
  • Many to Many Relation in Hibernate
  • HQL: The Hibernate Query Language
  • Criteria Queries
  • Criteria Queries : Equal (eq), Not Equal(ne), Less than (le), greater than (gt),greater than or equal(ge) and Ordering the results
  • Criteria Queries: And OR conditions
  • Hibernate generator to generate id (primary key)
  • prevent concurrent update in Hibernate,slate object updatation in Hibernate,version checking in Hibernate

    Struts


  • Model View Controller (MVC)
  • Model View Controller (MVC)
  • Struts Flow-How Struts Works?
  • Struts Tutorial - Struts Setup- First Struts Action class setup
  • Message Resources
  • Validation Framework
  • Validation Framework-client side
  • ForwardAction
  • IncludeAction
  • DispatchAction
  • LookupDispatchAction
  • DynaActionForm
  • DynaActionForm
  • Struts Tutorial - Mutli-click prevention using struts tokens-Prevent Duplicate Submission
  • Logic Iterate Map and List

    JSP


  • JSP Tutorial
  • Introduction to JSP
  • JSP Comments
  • JSP Syntax
  • JSP Scripting Elements :Scriptlet, expression, declaration
  • JSP Directives
  • implicit objects in JSP
  • JSP Actions
  • Introduction to JSP
  • jsp:useBean
  • The jsp:setProperty Action
  • The jsp:getProperty Action
  • Introduction to JSP

    Spring


  • Spring Tutorial
  • Introduction to Spring
  • Benefits of Using Spring Framework
  • Inversion of Control in Spring
  • Introduction to BeanFactory
  • Dependency Injection in Spring
  • Collections Setter Injection
  • Bean Scopes in Spring
  • Spring IOC Setup Step by Step
  • Bean Lifecycle in Spring
  • ApplicationContext
  • MessageSources in Spring
  • Web Spring MVC framework
  • Developing Your First Spring Web Application
  • Developing Your Second Spring Web Application with Spring Form
  • Developing Your First Spring Web Application with Spring Validation Framework with Code Example
  • Spring integration with Hibernate
  • examples about session beans, including conversational state, the SessionBean interface, and create methods.

    Session bean is specified at deployment as having one of the following state management modes:

    • STATELESS — the session bean instances contain no conversational state between methods; any instance can be used for any client.

    • STATEFUL — the session bean instances contain conversational state which must be retained across methods and transactions.

    The conversational state of a STATEFUL session object is defined as the session bean instance’s field values.

    In advanced cases, a session object’s conversational state may contain open resources, such as open sockets and open database cursors. A container cannot retain such open resources when a session bean instance is passivated. A developer of such a session bean must close and open the resources in the ejbPassivate and ejbActivate notifications.

    All session beans must implement the SessionBean interface.

    public interface SessionBean extends EnterpriseBean {
    	void ejbActivate() throws EJBException, RemoteException;
    	void ejbPassivate() throws EJBException, RemoteException;
    	void ejbRemove() throws EJBException, RemoteException;
    	void setSessionContext(SessionContext ctx) throws EJBException, RemoteException;
    }
    
    public interface EnterpriseBean extends Serializable {
    }
    					

    A client creates a session bean instance using one of the create<METHOD> methods defined in the session bean’s home interface:

    public interface CartHome extends javax.ejb.EJBHome {
    	CartRemote create(String customerName, String account)
    		throws RemoteException, BadAccountException,
    		CreateException;
    	CartRemote createLargeCart(String customerName, String account)
    		throws RemoteException, BadAccountException,
    		CreateException;
    }
    					
    .....
    CartRemote cart = cartHome.create(“John”, “7506”);
    					
    or for LOCAL view:
    public interface CartHome extends javax.ejb.EJBLocalHome {
    	CartLocal create(String customerName, String account)
    		throws BadAccountException, CreateException;
    	CartLocal createLargeCart(String customerName, String account)
    		throws BadAccountException, CreateException;
    }
    					
    .....
    CartLocal cart = cartHome.create(“John”, “7506”);
    					

    The container creates an instance of a session bean in three steps:

    1. The container calls the bean class’ newInstance() method to create a new session bean instance.

    2. The container calls the setSessionContext(context) method to pass the context object to the instance.

    3. The container calls the instance’s ejbCreate<METHOD>() method whose signature matches the signature of the create<METHOD>() method invoked by the client.

    Each session bean class must have at LEAST one ejbCreate<METHOD>() method (NOTE: for Entity Beans create methods are optional).

    Invoking create() method by client on home interface of STATELESS session bean will NOT invoke ejbCreate() method on bean object. It only creates new EJB(Local)Object. ejbCreate() on STATELESS session bean is invoked by EJB container when it decides to put object in method-ready pool. For STATELESS session beans container handles creating of instances.

    Invoking remove() method by client on home interface of STATELESS session bean will NOT invoke ejbRemove() method on bean object. It does nothing. ejbRemove() on STATELESS session bean is invoked by EJB container when it decides to remove object from method-ready pool. For STATELESS session beans container handles removing of instances.

    Invoking create<METHOD>() method by client on home interface of STATEFUL session bean will invoke ejbCreate<METHOD>() method on bean object. More precisely: newInstance(), setSessionContext(context), ejbCreate<METHOD>([ARGS]).

    Invoking remove() method by client on home interface of STATEFUL session bean will invoke ejbRemove() method on bean object.

    The home interface of a STATELESS session bean must have one (and ONLY one) create() method that takes NO arguments.

    The create() method of the remote home interface must return the session bean’s remote interface. The create method of the local home interface must return the session bean’s local interface.

    STATELESS session bean CAN have instance variables, but there is no guarantee, that these variables will be accessed by the same client. However, the instance variables of the instance can contain the state across client-invoked method calls. Examples of such states include an open database connection and an object reference to an EJB object.

    A STATELESS session bean MUST NOT implement the javax.ejb.SessionSynchronization interface.

    The information you are posting should be related to java and ORACLE technology. Not political.