1 - create a statefull session bean with your session data

Rickard Öberg wrote:

> 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".

--
Bruno Antunes,
Java Software Engineer

email: mailto:[EMAIL PROTECTED]
Phone: +351.21.7994200
Fax  : +351.21.7994242

WhatEverSoft - Java Center
Centro de Competencia Java
Praca de Alvalade, 6 - Piso 4
1700-036 Lisboa - Portugal
URL: http://www.whatevernet.com

****************** Internet Mail Footer ****************************
A presente mensagem pode conter Informação considerada Confidencial.
Se o receptor desta mensagem não for o destinatário indicado, fica
expressamente proibido de copiar ou endereçar a mensagem a terceiros.
Em tal situação, o receptor deverá destruir a presente mensagem e
por gentileza informar o emissor de tal facto.
--------------------------------------------------------------------
Privileged or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message,
you may not copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by
reply email.

===========================================================================
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