  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | How does ejbs do logging? | How does ejbs do logging? 2003-09-29 - By Katz Guy
Back Hi; Actually, the logging server option is the only 'spec complient' way of dealing with logging from EJBs that I know. Due to the fact that you are not supposed to do file IO from EJBs. Its really weird that sun did not provide a standard way of logging for EJBs. Having a different server doing the pulling from JMS destinations/reading from sockets etc is usually out of the question for most apps and that's why most vendors allows logging to files by default. Any thoughts?
-- --Original Message-- -- From: BOWMAN, James [mailto:James.Bowman@(protected)] Sent: Monday, September 29, 2003 1:55 PM To: J2EEPATTERNS-INTEREST@(protected) Subject: Re: How does ejbs do logging?
Build a logging server that actually performs the database write. This server can then sit on a JMS queue to which your application can send messages to. That way your database writes are performed asynchronously.
-- --Original Message-- -- From: Vadlamudi, Ranga Rao (Cognizant) [mailto:VRanga@(protected)] Sent: 29 September 2003 11:54 To: J2EEPATTERNS-INTEREST@(protected) Subject: Re: [J2EEPAT-INT] How does ejbs do logging?
If we start logging to database then iam sure it will become a performance issue for a high transaction application..
-- --Original Message-- -- From: BOWMAN, James [mailto:James.Bowman@(protected)] Sent: Monday, September 29, 2003 3:44 PM To: J2EEPATTERNS-INTEREST@(protected) Subject: Re: How does ejbs do logging?
Log to the database. Accessing the file system is not allowed within the EJB container. If you really wish to have a log file, the code that writes to the file must run outside of the container. EJBs can then make calls to this "logging server" using RMI, sockets or JMS.
-- --Original Message-- -- From: peng wang [mailto:wp0@(protected)] Sent: 26 September 2003 15:56 To: J2EEPATTERNS-INTEREST@(protected) Subject: [J2EEPAT-INT] How does ejbs do logging?
Hi,
I heard of the ejbs cannot access local file system, is it true? if true, I wonder how ejbs do logging into files such as printing debug info.
In addition, if there are two session beans which are packed in two different jar files, the two jar files are deployed within one same ejb container. Can one session call the other by using local interface?(The local interface has been implemented.)
Thanks for help!
__ ____ ____ ____ ____ ____ ______ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35"> <TITLE>RE: How does ejbs do logging?</TITLE> </HEAD> <BODY>
<P><FONT SIZE=2>Hi;</FONT> <BR><FONT SIZE=2>Actually, the logging server option is the only 'spec complient' way of dealing with logging from EJBs that I know. Due to the fact that you are not supposed to do file IO from EJBs.</FONT></P>
<P><FONT SIZE=2>Its really weird that sun did not provide a standard way of logging for EJBs. Having a different server doing the pulling from JMS destinations/reading from sockets etc is usually out of the question for most apps and that's why most vendors allows logging to files by default.</FONT></P>
<P><FONT SIZE=2>Any thoughts?</FONT> </P>
<P><FONT SIZE=2>-- --Original Message-- --</FONT> <BR><FONT SIZE=2>From: BOWMAN, James [<A HREF="mailto:James.Bowman@(protected) .SLB.COM">mailto:James.Bowman@(protected)</A>] </FONT> <BR><FONT SIZE=2>Sent: Monday, September 29, 2003 1:55 PM</FONT> <BR><FONT SIZE=2>To: J2EEPATTERNS-INTEREST@(protected)</FONT> <BR><FONT SIZE=2>Subject: Re: How does ejbs do logging?</FONT> </P> <BR>
<P><FONT SIZE=2>Build a logging server that actually performs the database write. This</FONT> <BR><FONT SIZE=2>server can then sit on a JMS queue to which your application can send</FONT> <BR><FONT SIZE=2>messages to. That way your database writes are performed asynchronously.</FONT> </P>
<P><FONT SIZE=2>-- --Original Message-- --</FONT> <BR><FONT SIZE=2>From: Vadlamudi, Ranga Rao (Cognizant) [<A HREF="mailto:VRanga @(protected)">mailto:VRanga@(protected)</A>]</FONT> <BR><FONT SIZE=2>Sent: 29 September 2003 11:54</FONT> <BR><FONT SIZE=2>To: J2EEPATTERNS-INTEREST@(protected)</FONT> <BR><FONT SIZE=2>Subject: Re: [J2EEPAT-INT] How does ejbs do logging?</FONT> </P> <BR>
<P><FONT SIZE=2>If we start logging to database then iam sure it will become a performance</FONT> <BR><FONT SIZE=2>issue for a high transaction application..</FONT> </P>
<P><FONT SIZE=2>-- --Original Message-- --</FONT> <BR><FONT SIZE=2>From: BOWMAN, James [<A HREF="mailto:James.Bowman@(protected) .SLB.COM">mailto:James.Bowman@(protected)</A>]</FONT> <BR><FONT SIZE=2>Sent: Monday, September 29, 2003 3:44 PM</FONT> <BR><FONT SIZE=2>To: J2EEPATTERNS-INTEREST@(protected)</FONT> <BR><FONT SIZE=2>Subject: Re: How does ejbs do logging?</FONT> </P> <BR>
<P><FONT SIZE=2>Log to the database. Accessing the file system is not allowed within the</FONT> <BR><FONT SIZE=2>EJB container. If you really wish to have a log file, the code that writes</FONT> <BR><FONT SIZE=2>to the file must run outside of the container. EJBs can then make calls to</FONT> <BR><FONT SIZE=2>this "logging server" using RMI, sockets or JMS.< /FONT> </P>
<P><FONT SIZE=2>-- --Original Message-- --</FONT> <BR><FONT SIZE=2>From: peng wang [<A HREF="mailto:wp0@(protected)">mailto:wp0 @(protected)</A>]</FONT> <BR><FONT SIZE=2>Sent: 26 September 2003 15:56</FONT> <BR><FONT SIZE=2>To: J2EEPATTERNS-INTEREST@(protected)</FONT> <BR><FONT SIZE=2>Subject: [J2EEPAT-INT] How does ejbs do logging?</FONT> </P> <BR>
<P><FONT SIZE=2>Hi,</FONT> </P>
<P><FONT SIZE=2>I heard of the ejbs cannot access local file system,</FONT> <BR><FONT SIZE=2>is it true? if true, I wonder how ejbs do logging</FONT> <BR><FONT SIZE=2>into files such as printing debug info.</FONT> </P>
<P><FONT SIZE=2>In addition, if there are two session beans which are</FONT> <BR><FONT SIZE=2>packed in two different jar files, the two jar files</FONT> <BR><FONT SIZE=2>are deployed within one same ejb container. Can one</FONT> <BR><FONT SIZE=2>session call the other by using local interface?(The</FONT> <BR><FONT SIZE=2>local interface has been implemented.)</FONT> </P>
<P><FONT SIZE=2>Thanks for help!</FONT> </P>
<P><FONT SIZE=2>__ ____ ____ ____ ____ ____ ______</FONT> <BR><FONT SIZE=2>Do you Yahoo!?</FONT> <BR><FONT SIZE=2>The New Yahoo! Shopping - with improved product search</FONT> <BR><FONT SIZE=2><A HREF="http://shopping.yahoo.com" TARGET="_blank">http:/ /shopping.yahoo.com</A></FONT> </P>
<P><FONT SIZE=2>=============================================================== =====</FONT> <BR><FONT SIZE=2>Companion Site: <A HREF="http://www.corej2eepatterns.com" TARGET="_blank">http://www.corej2eepatterns.com</A></FONT> <BR><FONT SIZE=2>J2EE BluePrints: <A HREF="http://java.sun.com/blueprints /corej2eepatterns" TARGET="_blank">http://java.sun.com/blueprints /corej2eepatterns</A></FONT> <BR><FONT SIZE=2>List Archive:</FONT> <BR><FONT SIZE=2><A HREF="http://archives.java.sun.com/archives/j2eepatterns -interest.html" TARGET="_blank">http://archives.java.sun.com/archives /j2eepatterns-interest.html</A></FONT> <BR><FONT SIZE=2>Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to</FONT> <BR><FONT SIZE=2>listserv@(protected)</FONT> </P>
<P><FONT SIZE=2>---</FONT> <BR><FONT SIZE=2>Incoming mail is certified Virus Free.</FONT> <BR><FONT SIZE=2>Checked by AVG anti-virus system (<A HREF="http://www.grisoft .com" TARGET="_blank">http://www.grisoft.com</A>).</FONT> <BR><FONT SIZE=2>Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09 /2003</FONT> </P>
<P><FONT SIZE=2>=============================================================== =====</FONT> <BR><FONT SIZE=2>Companion Site: <A HREF="http://www.corej2eepatterns.com" TARGET="_blank">http://www.corej2eepatterns.com</A></FONT> <BR><FONT SIZE=2>J2EE BluePrints: <A HREF="http://java.sun.com/blueprints /corej2eepatterns" TARGET="_blank">http://java.sun.com/blueprints /corej2eepatterns</A></FONT> <BR><FONT SIZE=2>List Archive:</FONT> <BR><FONT SIZE=2><A HREF="http://archives.java.sun.com/archives/j2eepatterns -interest.html" TARGET="_blank">http://archives.java.sun.com/archives /j2eepatterns-interest.html</A></FONT> <BR><FONT SIZE=2>Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to</FONT> <BR><FONT SIZE=2>listserv@(protected)</FONT> </P>
<P><FONT SIZE=2>=============================================================== =====</FONT> <BR><FONT SIZE=2>Companion Site: <A HREF="http://www.corej2eepatterns.com" TARGET="_blank">http://www.corej2eepatterns.com</A></FONT> <BR><FONT SIZE=2>J2EE BluePrints: <A HREF="http://java.sun.com/blueprints /corej2eepatterns" TARGET="_blank">http://java.sun.com/blueprints /corej2eepatterns</A></FONT> <BR><FONT SIZE=2>List Archive:</FONT> <BR><FONT SIZE=2><A HREF="http://archives.java.sun.com/archives/j2eepatterns -interest.html" TARGET="_blank">http://archives.java.sun.com/archives /j2eepatterns-interest.html</A></FONT> <BR><FONT SIZE=2>Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to</FONT> <BR><FONT SIZE=2>listserv@(protected)</FONT> </P>
<P><FONT SIZE=2>---</FONT> <BR><FONT SIZE=2>Incoming mail is certified Virus Free.</FONT> <BR><FONT SIZE=2>Checked by AVG anti-virus system (<A HREF="http://www.grisoft .com" TARGET="_blank">http://www.grisoft.com</A>).</FONT> <BR><FONT SIZE=2>Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09 /2003</FONT> </P>
<P><FONT SIZE=2>=============================================================== =====</FONT> <BR><FONT SIZE=2>Companion Site: <A HREF="http://www.corej2eepatterns.com" TARGET="_blank">http://www.corej2eepatterns.com</A></FONT> <BR><FONT SIZE=2>J2EE BluePrints: <A HREF="http://java.sun.com/blueprints /corej2eepatterns" TARGET="_blank">http://java.sun.com/blueprints /corej2eepatterns</A></FONT> <BR><FONT SIZE=2>List Archive: <A HREF="http://archives.java.sun.com/archives /j2eepatterns-interest.html" TARGET="_blank">http://archives.java.sun.com /archives/j2eepatterns-interest.html</A></FONT> <BR><FONT SIZE=2>Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)</FONT> </P>
</BODY> </HTML> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |