EJB -- Excessing internal method in EJB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: EJB -- Excessing internal method in EJB

  1. #1
    Pranav Kamkhalia Guest

    EJB -- Excessing internal method in EJB

    I am working on EJB on weblogic server,and am stuck up with a problem
    My problem is :--

    I am having a EJB class(bean) which has got internal method and are not
    listed in my remote interface. Now my another EJB(bean) wants to access that
    internal method of that bean. Is it possible. ?? and if yes then how.

    Well according to my limited knowledge it is not. Kindly let me know if
    there is workaround.
    Thankxxxx

    Pranav




  2. #2
    Rajamannar Guest

    Re: EJB -- Excessing internal method in EJB


    "Pranav Kamkhalia" <pranav_k@vsnl.com> wrote:
    >I am working on EJB on weblogic server,and am stuck up with a problem
    >My problem is :--
    >
    >I am having a EJB class(bean) which has got internal method and are not
    >listed in my remote interface. Now my another EJB(bean) wants to access

    that
    >internal method of that bean. Is it possible. ?? and if yes then how.
    >
    >Well according to my limited knowledge it is not. Kindly let me know if
    >there is workaround.
    >Thankxxxx
    >
    >Pranav
    >
    >
    >



    Normally It is no possible. Because this violates the concept of OOPS. But
    there is one way in basics like have a protected method in one Bean. Then
    inherit a new Bean from the previous Bean. Now the first one becomes Super
    to the second. Now put both the beans in same package. Now it must be possible
    to access that protected method from this bean( I hope ). I am trying this
    method after you have posted. It is working in normal condition. Now I am
    trying that in the Bean level.

  3. #3
    Pranav Kamkhalia Guest

    Re: EJB -- Excessing internal method in EJB


    Rajamannar <ralagarsamy@aol.com> wrote in message
    news:39f41256$1@news.devx.com...
    >
    > "Pranav Kamkhalia" <pranav_k@vsnl.com> wrote:
    > >I am working on EJB on weblogic server,and am stuck up with a problem
    > >My problem is :--
    > >
    > >I am having a EJB class(bean) which has got internal method and are not
    > >listed in my remote interface. Now my another EJB(bean) wants to access

    > that
    > >internal method of that bean. Is it possible. ?? and if yes then how.
    > >
    > >Well according to my limited knowledge it is not. Kindly let me know if
    > >there is workaround.
    > >Thankxxxx
    > >
    > >Pranav
    > >
    > >
    > >

    >
    >
    > Normally It is no possible. Because this violates the concept of OOPS. But
    > there is one way in basics like have a protected method in one Bean. Then
    > inherit a new Bean from the previous Bean. Now the first one becomes Super
    > to the second. Now put both the beans in same package. Now it must be

    possible
    > to access that protected method from this bean( I hope ). I am trying this
    > method after you have posted. It is working in normal condition. Now I am
    > trying that in the Bean level.



    Actucally raja what u r talking is normal OOPS concept but in bean espically
    in EJB you need to have a method in remote iinterface. I am concerned about
    this.Kindly look into the matter




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center