• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

More info required on Business Method Interface

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I was going through Design diagram given in HFEJB page no 86. I am little confused over here. This diagram also shows a Business Method interface. This interface is not implemented by developer. But, we will compile remote interface and bean class like any other java file. How does this interface come into picture? Who implements it?
I dont think container will come into picture when you are compiling java file.
More constructive information in this area will be helpful in understanding EJB Archietecture very well.

Thanks and Regards,
RK Gowda
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by KRK Gowda:
Hi All,
I was going through Design diagram given in HFEJB page no 86. I am little confused over here. This diagram also shows a Business Method interface. This interface is not implemented by developer. But, we will compile remote interface and bean class like any other java file. How does this interface come into picture? Who implements it?
I dont think container will come into picture when you are compiling java file.
More constructive information in this area will be helpful in understanding EJB Archietecture very well.

Thanks and Regards,
RK Gowda


Hi Gowda
As far i know
The container creates an instance of class by implementing the component interface(business method interface)called EJBObject and the client uses its refrence to call business methods on bean.
Let me know if it helps/clears your doubt.
 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Avishek,
Thanks for the reply. Whatever you said is correct, and i totally agree with you. But, Container will create an instance of EJBObject when the bean is deployed. I am talking at coding stage. Once you complete coding for interfaces and bean class, usually we will compile all 3 java files. My concern is at this point.
I am still standing where i have started
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by KRK Gowda:
Hi Avishek,
Thanks for the reply. Whatever you said is correct, and i totally agree with you. But, Container will create an instance of EJBObject when the bean is deployed. I am talking at coding stage. Once you complete coding for interfaces and bean class, usually we will compile all 3 java files. My concern is at this point.
I am still standing where i have started


Hi Gowda
Let me provide some explanation i would be happy if it clears your doubt
can't we compile an interface in java . While compiling the bean class the java complier will think the methods defination of remote interface in bean class as methods of bean class itself .The linking of component interface to bean class is defered till the bean get deployed in J2EE server & its done by the container..
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by KRK Gowda:
Hi All,
I was going through Design diagram given in HFEJB page no 86. I am little confused over here. This diagram also shows a Business Method interface. This interface is not implemented by developer. But, we will compile remote interface and bean class like any other java file. How does this interface come into picture? Who implements it?
I dont think container will come into picture when you are compiling java file.
More constructive information in this area will be helpful in understanding EJB Archietecture very well.

Thanks and Regards,
RK Gowda


At coding stage the component interface is nothing to do with bean class .We write this interface just as to say the conatiner that the client of the bean class would able to invoke these methods using my refrence..
 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks awishek
Your reply cleared my doubt.

Regards,
RK Gowda
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic