Why is ejb2.X considered as heavy weight and ejb3.0 is considered as light weight?What you mean by heavy/light weight? How it affects the performance of server?
we have to make remote interface using @Remote in an ejb3 application
using ejb2 framework application provides the business layer logic's in distributive and secured manner but it is little bit heavy weighted and complex, so to reduce its complexity and to overcome the...
What is the need of ejb?
a business application consist of different-different layers like 1) User Interface development 2) Business logics development 3)database operation development EJB is used for Business logics develo...
EJB : It provides another layer where the platform's logic is stored. an EJB server provides functions such as Threading , concurrency , security and memory that(all of them ) is not provided by other container like tomcat so we need a EJB container.
What are the contents of a web module?
a small unit of a web resource which can be deploy, can be used in our application is a web module.
for our banking or any other business application J2EE platform is a web module.
How can we update a row in the db using entity bean?
Yes, we can update a row using entity bean.
ejbStore() will do that.
in BMP you have to write code to update the row.
Comparison between ejb2.0 and ejb3.0
The deployment descriptors are no longer required; everything can be accomplished using metadata annotations. The CMP (Container Managed Persistence) has been simplified; it is now more l...
The major differences i have seen between EJB 2.x and EJB 3.0 versions are as follows :- 1). Removal of home interface enabled simple lookup process in ejb 3.0 2). EJB deployment descriptors are not r...
What is the expansion for blob & clob?
Blob Stands for Binary Large Object.
Clob Stands for Character Large Object.
BLOB: Binmary Large Object
CLOB: Character Large Object
Both of these are used to store large amounts of data.
What is jms and message driven bean. Explain with some examples.
message driven is like printer,
it wont get reply from destination
How ejp aplication communicate with JSP or servlet
To access a servlet/jsp from EJB create a URL and call its openStream() method.URL google = new URL("http://www.google.com/"); BufferedReader in = new BufferedReader(new InputStreamReader(go...
JSP or Servlet can communicate with EJB by giving the jndi name of that EnterpriseJavaBean in the lookup method of InitialContext.It will return a reference for the home interface of EJB.
How ejb improve efficiency when user loading is incresing?
We can improve efficency through Pooling. If you are asking how we can balance the load, we can do it through clustering so that we can balance the load. this one will reduce the server balancing. You can take either one .
In plain English, I think this question is asking how EJB is more efficient as user load increases. The correct answer is pooling. Pooling is implemented differently across application server implem...
What is the difference between ejbcreate() and ejbpostcreate()
ejbCreate() is a method that must exist in all EJBs, it is a method that will be called by the EJB container to create a remote object when it is requested to do so by the client. ejbPostCreate() only...
What is location transparency? Is it in rmi technology
In a distributed system it is the idea that the resources accessed by a user can be anywhere on the network without the user having any idea where the resource is located. A file could be on the user'...
How can we register ejbhome in jndi directory service?
By addiing EJB ref tag to deployment descripters(web.xml etc..)
Can u tell me with an example
The user can not identified that the bean is stateful or stateless whenever he would not see the web.xml file, there s only one entry in ds file dat d bean is srateul or stateless.Main Difference:Stat...
What about the default transaction attribute?
Container uses "Required" as the default transaction attribute.
Supports is considered to be the default transaction attriibute
What is the difference between setentitycontext() and setsessioncontext() methods
one is setting up the entity bean context and the other for session bean context.
see ejb-jar.xml and weblogic-ejb-jar.xml, which defines the deployment descriptor's.
ejb componenets r deployed with the help of xml files (we have to tell the components to the container in form of xml files) container can understand the components
What is meant by distributed technology?
all server side programming handle distributed tech (one jvm to another jvm)client staying in one jvm can method of another jvm(server) in another jvm
Technology which can be accessed among multiple platforms
Hi The following code example work with weblogic 7.0 and ejb1.1Required Build Files:1) build.xml (If ur using ant for depl...
EJB 3.0 is not really light-weight. EJB 3.0 differs from its earlier versions in terms of development and NOT performance. Using pojos and annotations, unwanted method implementations and deployment d...
EJB 3.0 is not really light-weight. EJB 3.0 differs from its earlier versions in terms of development and performance. Using pojos and annotations, unwanted method implementations and deployment descr...