On 23 Jul, Scott M Stark wrote:
> Since this is a JBoss adapter I don't the benefit in supporting the PrintWriter
>interface
> for logging integration. If there was a reason to support PrintWriter I would use
> log4j by default in the JmsLogger and expose Category type methods from JmsLogger.
> If there was no PrintWriter set these would delegate to a category for the jms/ra
>package.
>
> I don't see a reason not to use log4j directly though.
Well, that depends on taste. When the JMS RA was written it was mean to
not be dependant on JBoss at all, but should be possible to use in any
App server. There was one (easy to fix dependancy then). Changes done
since then has tied it more closely to JBoss. I guess it would therefore
be ok to integrate it even more tightly.
It is, however, questionable, if we then should really call it a J2EE
connector resource adapter any more, because if its not spec compliant
(i.e, working in any app server) it is no longer a J2EE connector
resource adapter.
Since J2EE Connector 2.0 will include support for asynchrounous calls
and the JMS spec and the connector spec will probably by integrating the
transactional stuff for JMS through the connector spec, I think It is
good to keep the JMS connector clean.
It will be a great marketing fluff we we might say we have the first
J2EE connector 2.0 JMS resource connector. Or what?
//Peter
>
> ----- Original Message -----
> From: "Jason Dillon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 3:21 PM
> Subject: Re: [JBoss-dev] PrintWriter & Resources
>
>
>> Do you have any ideas on an good way to use this api to hook up the Log4j or
>> should we just use Log4j directly?
>>
>> --jason
>>
>>
>> On Mon, 23 Jul 2001, Scott M Stark wrote:
>>
>> > The PrintWriter is coming from 5.6 of the J2EE connector spec. Section 5.10.1
>lists
>> > these logging support methods as required:
>> >
>> > A resource adapter is required to provide support for basic error logging and
>tracing by
>> >
>> > implementing the following methods:
>> >
>> > . ManagedConnectionFactory.set/getLogWriter
>> >
>> > . ManagedConnection.set/getLogWriter
>> >
>> > It is just a portable way to integrate some level of logging into the app
>> >
>> > server the resource is being used in.
>> >
>> > ----- Original Message -----
>> > From: "Jason Dillon" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Friday, July 20, 2001 7:23 PM
>> > Subject: [JBoss-dev] PrintWriter & Resources
>> >
>> >
>> > > Can someone explain to me what the PrintWriter is used for in a resource?
>> > > Is this meant for portable logging between app servers? Is that important
>> > > for us? I am getting very frustrated at the JMS RA logging. I would like
>> > > to move it to Log4j, but I can't seem to find the right way to do it with
>> > > this PrintWriter bit laying around.
>> > >
>> > > Could someone drop a bit of knowledge about this for me?
>> > >
>> > > --jason
>> > >
>> > >
>> > > _______________________________________________
>> > > Jboss-development mailing list
>> > > [EMAIL PROTECTED]
>> > > http://lists.sourceforge.net/lists/listinfo/jboss-development
>> > >
>> >
>> >
>> > _______________________________________________
>> > Jboss-development mailing list
>> > [EMAIL PROTECTED]
>> > http://lists.sourceforge.net/lists/listinfo/jboss-development
>> >
>>
>>
>> _______________________________________________
>> Jboss-development mailing list
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/jboss-development
>>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
--
Jobba hos oss: http://www.tim.se/weblab
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: [EMAIL PROTECTED] WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development