Using a special parameter and adding to to JNDI env seems a good way to do it. If this flag is set, then it's an internal call (no need to expose such a parameter to external users, IMHO)
Emmanuel On 5/30/07, Enrique Rodriguez <[EMAIL PROTECTED]> wrote:
On 5/30/07, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote: > ... > another solution would be to add a flag to the OperationContext which > is passed through the interceptors, to tell if the request is internal > or not. > > Those contexts have been created for such purposes. How would this flag get set when connecting via JNDI? Today all the protocol providers use JNDI with CoreContextFactory. We use CoreContextFactory to bind users via LDAP (external) as well as protocol providers (internal) so we couldn't simply have all CoreContextFactory initial contexts set isInternal() to "true." We would need to cast to an interface to setInternal(true) or we would need a env parameter, such as Context.SECURITY_AUTHENTICATION = "internal". Enrique
-- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
