Matt Sgarlata <[EMAIL PROTECTED]> writes:

>I think often JCL will be used as you describe, but not always.

>For example, let's say I am developing a component that monitors 
>database activity and monitors usage statistics (this is a hypothetical 
>example).  The main purpose of this component is to log messages to be 
>processed later by a human.  I use JCL and put a 
>commons-logging.properties in my org.dbmonitor package that says "use 
>Log4J and display INFO and higher messages".

>This component may be deployed in many different environments.  Here are 
>two examples:
>1) Standalone on a server.  In this case, the default settings specified 
>at the component level should be used.

In this case, your standalone app should integrate the org.dbmonitor
component with a small runtime and a JCL config file.

>2) As a component of another application.  In this case, the overall 
>application specifies logging properties that overwrite those in the 
>component.  To do this, the application specifies a 
>commons-logging.properties in the default package, which overwrites the 
>properties specified at the component level.  In this example, the 
>application chooses it only wants WARN and higher messages and that it 
>wants the messages rendered with JDK 1.4 logging.

In this case, your application, which integrates the org.dbmonitor
component should configure logging for it.

IMHO, it is not possible to find an "one size fits all" solution which
allows a component to be integrated seamlessly and to be used
standalone.

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

What is more important to you...
   [ ] Product Security
or [ ] Quality of Sales and Marketing Support
              -- actual question from a Microsoft customer survey

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to