Hello every body,
I havae a big question??
1. In EJB alll are interfaces named EntityBean, EntityContext....... with abstract methods.There are no classes.
But we are going to call the abstract methods like ejbCreate()... and so on.
Where is the actual implementation and who is going to implement and when it will be done.
If so, let say that it is done by the container it self for every methode...
But in core java the same thing is happening for Enumeratins interface
2. when we are going to use the method elements()in any one of the collection class we are getting a return type of Enumeretion . And directly we are going to use the methods which are declared, but not defined in the Enumeration interface named hasNextElement(), and nextElement()...
But where the actual implementation... and which code is going to run when these methods are called..
in waiting for ur reply
Maru.
-
Where is the actual implementation of the following interfaces.. (3 messages)
- Posted by: Maruthi Ram
- Posted on: March 06 2004 10:10 EST
Threaded Messages (3)
- Where is the actual implementation of the following interfaces.. by Paul Strack on March 06 2004 10:29 EST
- Where is the actual implementation of the following interfaces.. by Neil Ellis on March 08 2004 13:04 EST
- Where is the actual implementation of the following interfaces.. by vinay vinay on July 06 2005 07:50 EDT
-
Where is the actual implementation of the following interfaces..[ Go to top ]
- Posted by: Paul Strack
- Posted on: March 06 2004 10:29 EST
- in response to Maruthi Ram
The implementation of the EJB interfaces is EJB-server specific. Similarly, the implementation of the Enumeration interface is generally specific to the collection from which you got the Enumeration.
As a general rule, the implementation class of an interface is something that a developer should not need to worry about. The interface describes WHAT the class will, and HOW the class does it should be unimportant. -
Where is the actual implementation of the following interfaces..[ Go to top ]
- Posted by: Neil Ellis
- Posted on: March 08 2004 13:04 EST
- in response to Maruthi Ram
You could try running the EJB compiler for your container if it has one and decompile the generated class files in the new jar file. This will give you an idea of what the generated Classes get up to. -
Where is the actual implementation of the following interfaces..[ Go to top ]
- Posted by: vinay vinay
- Posted on: July 06 2005 07:50 EDT
- in response to Maruthi Ram
Hye Maru,
Whenever you are creating the stubs and skeletons for the EJBS at that time it will write the implementation.
regards
Samudrala Vinay Kumar