A while back there was a thread on the 'debug' variable within JAWS. I
was quite vocal in saying that it should not be static final and that it
should be mutable at run time. I've made this configurable through jaws.xml.
This still defaults to false, but can be turned on for an ejb-jar by
adding a <debug> element as a child of the <jaws> element in jaws.xml:
<jaws>
<datasource>java:/DefaultDS</datasource>
<type-mapping>PostgreSQL</type-mapping>
<debug>true</debug>
...
</jaws>
Naturally, this can also be used to turn it on globally, if desired.
The remainder of this message is output from `cvs diff` in the
jboss/src/main/ejb/plugins/jaws directory. Can a comitter please commit
this, or tell me how to produce a more acceptable patch? (or tell me to
go away, that's fine too)
thanks,
danch
Index: jdbc/JDBCCommand.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java,v
retrieving revision 1.29
diff -r1.29 JDBCCommand.java
124a125
> this.debug = factory.getDebug();
Index: jdbc/JDBCCommandFactory.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommandFactory.java,v
retrieving revision 1.5
diff -r1.5 JDBCCommandFactory.java
54a55
> private boolean debug = false;
78c79
< jamd = jfl.load();
---
> jamd = jfl.load();
80a82,83
> debug = jamd.getDebug();
> log.debug("debug="+debug);
107a111,115
> }
>
> public boolean getDebug()
> {
> return debug;
cvs server: Diffing metadata
Index: metadata/JawsApplicationMetaData.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsApplicationMetaData.java,v
retrieving revision 1.4
diff -r1.4 JawsApplicationMetaData.java
53a54,55
>
> private boolean debug = false;
102c104,106
< protected ClassLoader getClassLoader() { return classLoader; }
---
> public boolean getDebug() { return debug; }
>
> protected ClassLoader getClassLoader() { return classLoader; }
167a172,179
>
> //enable extra debugging?
> Element debugElement = getOptionalChild(element, "debug");
> if (debugElement != null) {
> String stringDebug = getElementContent( debugElement );
> debug = Boolean.valueOf(stringDebug).booleanValue();
> }
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development