Hey
Rick MacConnell wrote:
> We've got some attributes we'd like to pass to our Stateless Session Bean layer on a
>*per session* basis. It seems that the properties attribute of the Context object
>would be suitable for this but it's been deprecated since EJB 1.1. Essentially, for
>each call to our EJB's we'd like to attach some attributes so that we can audit the
>operation that is being requested. Ideally, we could pass these attributes in with
>the Context but we've not been able to do this. Anyone had similar needs? We could
>easily add a collection to each of the method signatures on our stateless session
>beans and simply pass the audit arguments in that way but it seems like there must be
>a better way.
If you want to be server independent, no there's no way to do it.
<vendor>
JBoss is the only server that is both OpenSource *and* which also allow
you to customize features like this. You can easily modify the server to
pass custom context with each call, and have it be logged in an audit
log on the server.
For more info on how to do this, please download the JBoss server and
look in the code for the JRMP support. You will also want to look at,
and copy/modify, the LogInterceptor.
JBoss can be found at www.jboss.org
</vendor>
regards,
Rickard
--
Rickard Öberg
Email: [EMAIL PROTECTED]
===========================================================================
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".