Hi!
Sacha Labourey wrote:
> Is it possible to deploy a same CMP bean more than once with different
> remote interfaces? Example:
>
> remote interface A:
> Method A1
> Method A2
>
> Remote interface B extends A
> Method A1 (inherited)
> Method A2 (inherited)
> Method B1 (new)
>
> Can a same CMP Bean "AB" be accessed by A and B?
>
> How to deploy this?
Well the best advice I think is "just do it". :-)
Create the ejb-jar.xml just as with any other beans. The only difference
is that two entries will have the same bean class.
> The goal is to have a remote interface used by external clients and another
> remote interface used by other EJB (i.e. internal clients) with more
> powerfull methods (management, ...)
The above is not the best way to solve this. Use security instead.
That's what it's for. I.e. restrict the methods that are not supposed to
be used by certain types of users. If you don't use security at all it
is still possible for (malicious) external clients to lookup the bean
with the admin interface and call it as it wishes.
regards,
Rickard
--
Rickard Öberg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]