Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

More info required on Business Method Interface

 
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
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic