-
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
-
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.
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks