JMX ( stand for Java Management Extensions) API is what you need.
JMX allows to use SNMP, HTTP, HTML , RMI, CORBA or any others protocols.
There are 3 parts in a JMX architecture:
-Instrumentation ( managed beans that could be EJB or servlet or whatever )
-Agent ( that is local, and makes the gateway server where Managed Beans are
registered)
-Manager ( that is a distributed client)
Agent could send "traps" to manager , the traps could be logging messages.
Manager could get/set attributes of all the Managed Beans ( registered in
Agent) or call methods of the Managed Beans.
Actually, only JBoss and Enhydra Application Server (JONAS based)
are implemented this API. ( and not all the functionalities )
JMS is not part of the J2EE.
JDMK (sun products), and Advent Net Agent toolkit are products that
implement JMX. There are a lot of sample in these distributions...
Have fun.
guillaume
-----Message d'origine-----
De : Smith, Curt H. <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : lundi 19 juin 2000 13:55
Objet : Re: Logging in Enterprise Applications
>> > Our requirement is to log messages from various
>> components of our
>> > application (Servlets and EJBs)
>> > into a file. This is required for debugging purposes if
>> something fails in
>> > the production environment. But since IO is not possible
>> from an EJB, we
>> > are looking for alternatives. We do not want to log these
>> messages into a
>> > database.
>> > Our requirement does not seem like an uncommon one. I am
>> interested in
>>
>> Need to redirect your system stream and use try-catches!
>
>Which appservers give you a "virtual VM" per bean where
>setting the printstream for System.out + System.err affects
>just one bean's VM environment VS for all beans??
>
>What we need is a per bean debug log and per bean event (SNMP)
>capability from the container (portable).
>
>curt
>
>
>Curt Smith
>Z-Tel
>email: [EMAIL PROTECTED]
>work: 404-237-1166 x182
>FAX: 404-237-1167
>
>===========================================================================
>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".
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
===========================================================================
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".