JAVA Help

Polymorphism 1-3

Table Model interface used for implementaion of jtable

Socket API unix domain

Serlvelt infterface is the top abstraciton level.

Java can send icmp packet

Custmo class loader use to load serlvet repaealtid

Getbinary stream is use to get binary data.

Jsessionid is the cookie that maintains sessionn.

Skeleton object is use GET VALUE OR EXCEPTION

The rmic compiler generates the stub and skeleton classes for remote objects you’ve written

EJB class, home and remote interfaces are needed for session ejb and entity.

one servlet instance per registered servlet name,

java.io.Serializable is correct library.

Message-Driven Bean ClassIt implements the MessageDrivenBean and MessageListener interfaces.

Remote object access java.rmi.Remote interface

Serlvelt interface is a

ServletContextListener is a interface which contains two methods:

  1. public void contextInitialized(ServletContextEvent event)
  2. public void contextDestroyed(ServletContextEvent event)

http://download.oracle.com/javaee/1.4/api/javax/servlet/package-summary.htm

http://www.ece.cmu.edu/~ece842/S11/readings/raj2003.pdf

Entity beans:   
http://en.wikipedia.org/wiki/Entity_Bean

http://www.roseindia.net/ejb/entity-bean-example.shtml
Entity beans are enterprises beans, which represent persistent data stored in a storage medium, such as relational database an entity bean persists across multiple session and can be accessed by multiple clients. An entity bean acts as an intermediary between a client and a database. For example, consider a bank entity bean that is used for accessing account details from a database. When a client wants to perform a transaction, the information regarding their specific account is loaded into an entity bean instance from the database. Operations are performed on the data present in the instance and updated in the banks database at regular intervals.
ServletConfig: The object created after a servlet is instantiated and its default constructor is read. It is created to pass initialization information to the servlet.

Defines an object to provide client request information to a servlet. The servlet container creates a ServletRequest object and passes it as an argument to the servlet’s service method.

Interspection in bean

Answer
Introspection is the ability to ask a JavaBean component what properties and events it supports. By default, introspection is supported by reflection, where you name methods with certain naming patterns, like set/getProperty() and add/removeListener(). You can also explicitly expose the bean’s behavior through creation of a BeanInfo class related to the bean. The BeanInfo class can be used for many things, like setting up an icon for the component when used in a bean builder tool like JBuilder, limiting the properties available, or mapping methods to properties that don’t follow standard naming patterns.

What is a remote interface?

According to RMI specification, a remote interface is an interface that extends java.rmi.Remote interface and declares a set of methods that may be invoked from a remote Java Virtual Machine(JVM). Note that the java.rmi.Remote interface serves as a mark to tell the system that methods declared within this interface may be invoked from a non-local virtual machine.

What is the difference between activation and passivation

Answered by Jey on 2005-05-08 11:55:29:

Activation and Passivation is appilicable for only Stateful session bean and Entity bean.

When Bean instance is not used for a while by client then EJB Container removes it from memory and puts it in secondary storage (often disk) so that the memory can be reused. This is called Passivation.

When Client calls the bean instance again then Container takes the passivated bean from secondary storage and puts it in memory to serve the client request. This is called Activation.

Default erro number in case of servlet is 500

  • doGet, if the servlet supports HTTP GET requests
  • doPost, for HTTP POST requests
  • doPut, for HTTP PUT requests
  • doDelete, for HTTP DELETE requests
  • init and destroy, to manage resources that are held for the life of the servlet
  • getServletInfo, which the servlet uses to provide information about itself

Serlvelte loding proceess

http://oreilly.com/catalog/jservlet/chapter/ch03.html

RMI

http://infolab.stanford.edu/CHAIMS/Doc/Details/Protocols/rmi/rmi_description.html

http://docstore.mik.ua/orelly/java-ent/jenut/ch03_02.htm

RMI TOOLS

http://docstore.mik.ua/orelly/java-ent/jenut/ch09_01.htm

message bean dilver class.

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/MDB4.html

cover all topics of beans

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts.html

what is enterprise bean.

http://java.sun.com/j2ee/tutorial/1_3fcs/doc/EJBConcepts2.html#62895

Bussiness delegate

you want to hide clients from the complexity of remote communication with business service components.

Forces

  • You want to access the business-tier components from your presentation-tier components and clients, such as devices, web services, and rich clients

http://www.corej2eepatterns.com/Patterns2ndEd/BusinessDelegate.htm

http://www.codefutures.com/data-access-object/

e Data Access Object (DAO) layer is an essential part of good application architecture. Business applications almost always need access to data from relational or object databases and the Java platform offers many techniques for accessing this data. The oldest and most mature technique is to use the Java Database Connectivity (JDBC) API, which provides the capability to execute SQL queries against a database and then fetch the results, one column at a time. Although this API provides everything a developer needs to access data and to persist application state, it is a cumbersome API to develop against – which makes a code generator particularly useful.

Advertisements
This entry was posted in Android. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s