can it possible to define two remote interface for one ejb. the situation:: all the methods accessed by all the department clients in an organization are written in one ejb. can it possible to restrict to access only some methods by defining two remote interfaces that are implemented by one ejb.
pl help me.
Discussions
EJB programming & troubleshooting: can it possible define two remote interfaces for one ejb
-
can it possible define two remote interfaces for one ejb (4 messages)
- Posted by: kishore kumar
- Posted on: March 16 2004 05:05 EST
Threaded Messages (4)
- can it possible define two remote interfaces for one ejb by Shreeram Iyer on March 16 2004 09:32 EST
- can it possible define two remote interfaces for one ejb by Paul Strack on March 16 2004 10:35 EST
- thank you by kishore kumar on March 17 2004 12:18 EST
- can it possible define two remote interfaces for one ejb by Paul Strack on March 16 2004 10:35 EST
- can it possible define two remote interfaces for one ejb by Balaji K M on March 24 2004 02:28 EST
-
can it possible define two remote interfaces for one ejb[ Go to top ]
- Posted by: Shreeram Iyer
- Posted on: March 16 2004 09:32 EST
- in response to kishore kumar
I don't think you can define multiple remote interfaces for one EJB. What you could do is use a Session bean to make calls to the business methods in the EJB. That way you can control what you want a particular client can do. The client need not be aware of the methods exposed by your Entity bean.
-Shree -
can it possible define two remote interfaces for one ejb[ Go to top ]
- Posted by: Paul Strack
- Posted on: March 16 2004 10:35 EST
- in response to Shreeram Iyer
Here is another option:
Make EJB2 that is a subclass of your original EJB1. It will have all of the same logic through inheritance. Make a new (restricted) remote interface for EJB2. This will really only work well if EJB1 is a Session Bean. -
thank you[ Go to top ]
- Posted by: kishore kumar
- Posted on: March 17 2004 00:18 EST
- in response to Paul Strack
Thank you Paul,
my doubt is cleared with your answer. -
can it possible define two remote interfaces for one ejb[ Go to top ]
- Posted by: Balaji K M
- Posted on: March 24 2004 02:28 EST
- in response to kishore kumar
Instead of making two remote you can provide security tag in the xml which help to provide the access like for some of the User you can expose some methods for other you can expose methods.