Anand

Srikanth

May 26th, 2005

Java objects are reusable components which are having variables, methods. EJBs are also reusable components which can be placed at server side, EJBs are distributed component and can be deployed in EJB Container.

Thangamani Kasi

M.L.Srikanth

Jul 9th, 2005

EJB is java object which complies to the EJB specification. EJB has some special features to address the problems like, Deployability on verious standardized servers, Transactions, Security, Persistence ..etc and increasing the reusability by externalizing these into deployment configurations

J. P. Naidu

Subrahmanyam

Aug 12th, 2005

Hi, I think everyone needs to brush their knowledge of basics in java and ejb. See a java object is like a live once instance and an ejb object works in a distrubuitable environment and it cab accessed remotely across connections

vamshidhar ghanpur

Aug 27th, 2005

I'll give u best....... Java object is difinitly a reusable code,it needs JVM,in which it runs. Ejb object is also a reusable code,it needs a container where this component is deployed,and managed. container provides run-time environment to Ejb objects. Ejb objects are mean to be distributed over the network remotely.

Dheeraj Tanwar

Sep 5th, 2005

Yes, Simple JAVA object can't be accessed remotely but EJB object can be accessed remotely because EJB class extends Remote Interface. Simple Java object generally work on web server but EJB object work on Application server like IBM product Weblogic and Websphere. Java object are not reusable because of security issue but EJB objects are reusable.

shrin

Sep 12th, 2005

An EJB is maintained by application server where as a normal Java Object is not maintained by application server which means the services such as transaction,security,object pooling are not probagated to java object

The world can exist without EJBs! But the basic purpose of writing EJBS is to save a programmer the effort of writing middleware services like transaction services, security, network services etc. Thankfully, a server that conforms to J2EE specifications provides these services free of cost! you don't have to write any code for getting these services. All you have to do is specify what service you want in a set of XML files called deployment descriptors. And rest is only about writing the business logic !

An EJB object is also an java object, but as it follows the EJB Specifications, it can be remotely identified in an Application server. An java object can be deployed in an application server, but cannot be idetified. i.e A java object can be in the classpath of an EJB or web application and can be put in the server and it can even contain business logic. But only EJBs can be identified by the JNDI (Java Naming Directory Interface). While deploying an EJB in an application server, like weblogic, we give a JNDI name to it, in the deployment descriptor and it can be only accessed using that name.

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.