Hi Christian,

What you say only works if you:
    1- use privileged blocks in your RMI class (even in a simple java
class) and
    2- configure your server security policy to allow that classes to
start threads.

You can allso save your bean from server's restrictions setting up the
security policy used by the jre. The question is whether it makes sense.

Regards.


"Reichert, Christian" wrote:

>
>
> Hi Francis,
>
> I know that the restrictions usually apply to the entire closure of
> the bean methods' call graph.
> But I thought again about the approach above and
> I think it will work because if you call an object packed outside the
> EJB-jar, like via RMI,
> then you have a different class loader and the ejb thread restrictions
> shouldn't apply.
>
> Regards, Christian
>
>      -----Original Message-----
>      From:  francis pouatcha [SMTP:[EMAIL PROTECTED]]
>      Sent:  Tuesday, May 16, 2000 1:59 PM
>      To:    [EMAIL PROTECTED]
>      Subject:       Re: EJB calling outside thread class
>
>      Hallo Christian,
>
>      It is definitively not true. Not only the bean, but also
>      associated
>      helper classes are subject to the same restrictions. If one
>      container
>      doesn't behave like that, then it is a flaw in it implementation.
>
>      Regards.
>
>      "Reichert, Christian" wrote:
>
>      >
>      >
>      > To avoid the ejb-thread restriction I can call a class that
>      uses
>      > threads from an ejb
>      > by packaging it outside of the EJB-jar and instantiate it
>      outside of
>      > the bean.
>      > Should this approach work with every ejb server?
>      > I find the spec a bit unclear here.
>      > Thanks, Chris.
>      >
>
>      --
>      Francis Pouatcha
>
>      MATHEMA Software GmbH
>      http://www.mathema.de
>
>
>      ==========================================================================
>
>      To unsubscribe, send email to [EMAIL PROTECTED] and include
>      in the body
>      of the message "signoff EJB-INTEREST".  For general help, send
>      email to
>      [EMAIL PROTECTED] and include in the body of the message
>      "help".
>
--
Francis Pouatcha

MATHEMA Software GmbH
http://www.mathema.de

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to