GeekInterview.com
Series: Subject: Topic:

EJB FAQ

Showing Questions 1 - 20 of 54 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Heavy weight and light weight

Asked By: vinayak_chennai | Asked On: Nov 11th, 2008

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?

Answered by: Srinivas Nalla on: Jan 18th, 2012

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...

Answered by: Srinivas Nalla on: Jan 18th, 2012

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...

What is the difference between ejb2.0 and ejb3.0 and I reviewed in net that ejb 3.0 using pojo(plain old Java objects) what is pojoi want the reply for this

Asked By: kiran | Asked On: Oct 29th, 2005

Answered by: Satish gupta on: Oct 29th, 2011

we have to make remote interface using @Remote in an ejb3 application

Answered by: Satish gupta on: Oct 29th, 2011

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...

Need of ejb

Asked By: ganesh_chormule | Asked On: Dec 8th, 2008

What is the need of ejb?

Answered by: Satish gupta on: Oct 29th, 2011

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...

Answered by: Abhishek on: Oct 13th, 2011

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.

Web module

Asked By: Ananda_Nayek | Asked On: Nov 10th, 2010

What are the contents of a web module?

Answered by: Satish gupta on: Oct 29th, 2011

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?

Asked By: rajani | Asked On: Jul 31st, 2007

Answered by: uppulafaq on: Jan 20th, 2010

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

Asked By: Savitha_BM | Asked On: Nov 16th, 2005

Answered by: am577 on: Dec 27th, 2009

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...

Answered by: thomaskm on: Apr 27th, 2007

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...

Blob & clob

Asked By: ponnit | Asked On: Apr 22nd, 2009

What is the expansion for blob & clob?

Answered by: myogeshchavan97 on: Jul 31st, 2009

Blob Stands for Binary Large Object.

Clob Stands for Character Large Object.

Answered by: itsvenuhere on: Jul 28th, 2009

BLOB: Binmary Large Object
CLOB: Character Large Object

Both of these are used to store large amounts of data.

Portableremoteobject.Narrow()

Asked By: supari | Asked On: Mar 18th, 2008

What is the purpose of the call to portableremoteobject.Narrow()?

Answered by: supari on: Mar 19th, 2008

i know its related to some CORBA purposes, but i need some explanation

What is jms and message driven bean. Explain with some examples.

Asked By: questioninterest | Asked On: Aug 15th, 2006

Answered by: bharanikumariyer on: Jun 23rd, 2007

message driven is like printer,
it wont get reply from destination

How ejp aplication communicate with JSP or servlet

Asked By: vemodharak | Asked On: Sep 17th, 2005

Answered by: Tamil Selvan on: May 28th, 2007

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...

Answered by: ArulJothi on: Sep 18th, 2005

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?

Asked By: Kulwant | Asked On: Sep 12th, 2005

Answered by: Sony V George on: Apr 4th, 2007

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 .

Answered by: CDT on: Sep 17th, 2005

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()

Asked By: questioninterest | Asked On: Aug 16th, 2006

Answered by: Lap on: Feb 11th, 2007

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

Asked By: questioninterest | Asked On: Aug 22nd, 2006

Answered by: sanju on: Jan 24th, 2007

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?

Asked By: sadashivarao | Asked On: Nov 29th, 2006

Answered by: madhu on: Jan 5th, 2007

By addiing  EJB ref  tag to  deployment descripters(web.xml etc..)

What is the difference between stateless and stateful session bean. Give a very simple and efficient example

Asked By: questioninterest | Asked On: Aug 15th, 2006

Answered by: surya kumari on: Jan 2nd, 2007

Can u tell me with an example

Answered by: Ram ji soni on: Dec 6th, 2006

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?

Asked By: kamruddin | Asked On: Oct 13th, 2006

Answered by: Somashekhara on: Dec 18th, 2006

Container uses "Required" as the default transaction attribute.

Answered by: Dhanasekar on: Oct 18th, 2006

Supports is considered to be the default transaction attriibute

What is the difference between setentitycontext() and setsessioncontext() methods

Asked By: questioninterest | Asked On: Aug 16th, 2006

Answered by: lhariPrasad on: Dec 8th, 2006

one is setting up the entity bean context and the other for session bean context.

How we can deploy an ejb component (session bean, bmp and cmp) in weblogic application server. Give me the complete procedure.

Asked By: questioninterest | Asked On: Nov 9th, 2006

Answered by: lhariPrasad on: Dec 8th, 2006

see ejb-jar.xml and weblogic-ejb-jar.xml, which defines the deployment descriptor's.

Answered by: srinivas on: Dec 1st, 2006

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?

Asked By: krish | Asked On: Nov 2nd, 2006

Answered by: srinivas on: Dec 1st, 2006

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

Answered by: Raj on: Nov 6th, 2006

Technology which can be accessed among multiple platforms

If any one working on ejb and weblogic, plz give me the code of writting the descriptor files required to deploy the ejb component in weblogic.

Asked By: questioninterest | Asked On: Nov 9th, 2006

Answered by: Dattatraya on: Nov 14th, 2006

Hi              The following code example work with weblogic 7.0 and ejb1.1Required Build Files:1) build.xml (If ur using ant for depl...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.