Transactions in Multithreaded app
Is it safe to use the same java.sql.Connection instance all over multithreaded app? Is transaction session associated with a thread? Or one Connection keeps just one transaction session for all threads?
Any help's appreciated.
Is it safe to use the same java.sql.Connection
instance all over multithreaded app?Yes, providing your access/uses is thread safe, i.e. syncronised.
Is transaction
session associated with a thread?No a connection.
Or one Connection
keeps just one transaction session for all threads?Yes.
A transactions should be autonomous, if all threads use the same transaction, it would be pointless using transactions in the first place.
Any help's appreciated.Checkout these link, your should
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/bmp.html
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jdbc.html
http://developer.java.sun.com/developer/technicalArticles/xml/metadata/
Similar Messages
-
Hi Friends,
I have a multithreaded app that refers stock price and suggest end user upon the availability, as of now it was running as a Swing app. we are thinking of porting it on web. So how can a end user access this Stock price screener using webservices ?
Here are my challenges :
1. I cannot deploy it in J2ee Webserver as they are managed environment.
2. We have not yet migrated to jdk1.6 ( WE WILL DO THAT NEXT YR DEPENDING HOW THE PRODUCT IS PERFORMING)
So how can this be acheived in a strict(ideal) j2ee environment.
My boss is strict about J2ee standard, I donot know how to implement this in budget n time ??
I am really scratching my head about the same for an hour n so I have not find a decent answer on web also. Is it that violting the basic rule of j2ee is the only way out. ("don't sponge a thread in a managed environment" ). I know there are software that are running thread with in like log4j but they have special grant to run not my application.
thks.s.dasEJP wrote:
I would have failed you in the interview for the garrulous verbosity of writing Boolean.TRUE.equals, which can be completely omitted, and Boolean.FALSE.equals, which can be replaced by !.Students learn what in the books, and lot of java books I see using the same style:
http://books.google.com/books?id=DXYZZVlWOAkC&pg=PA286&dq=Boolean.TRUE.equals%28&hl=en&sa=X&ei=i31sT8jdJonh0QH01-jyBg&ved=0CDIQ6AEwAA#v=onepage&q=Boolean.TRUE.equals%28&f=false
http://books.google.com/books?id=ppNBCdxxW5AC&pg=PA439&dq=Boolean.TRUE.equals%28&hl=en&sa=X&ei=i31sT8jdJonh0QH01-jyBg&ved=0CD8Q6AEwAg#v=onepage&q=Boolean.TRUE.equals%28&f=false
Here is more serious mistakes, looks like the book author doesn't understand the difference between Boolean and boolean, Integer and int:
http://books.google.com/books?id=FPxif81mgYoC&pg=PA219&dq=Boolean.TRUE.equals%28&hl=en&sa=X&ei=i31sT8jdJonh0QH01-jyBg&ved=0CDgQ6AEwAQ#v=onepage&q=Boolean.TRUE.equals%28&f=false
When you code wrong, you make something wrong for your application, When you teach wrong, you make lot of wrongs .... :D -
How can i pay my unpaid transaction in the app.store because my credit card was already close and i cant download even the free application ?
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
IO performance of multithreaded app
In a multithreaded app there are N threads. These threads produce some data and write to disk. The data is written on disk in following two ways:
1. Each thread is writing data to a different file.(All files are on same disk)
2. All threads write data to a single file.
After running some tests the results show that 2nd case takes 20% more time than 1st.
I want to know the actual reason the this, whether there is some parallel io happening, or some other reason.
Vinit.Hi Vinit,
Assuming that you have set thread councurrency level to a proper value, a simple reason is that writing to a file involves locking the corresponding inode. So if all your threads are writing to the same file , there is a chance that the LWPs corresponding to your user threads sleep inside the kernel for the lock on the inode . This will reduce the performance.
BTW , you didn't give your machine configuration ..
Thanks,
Prajeesh -
Error "Please contact itunes support to complete this transaction" when in-app purchases
Dear Sirs,
As frequent customer buying iTunes Gift Card, I would appreciate your kind clarification on below points, for my best reference:
- I'm using Apple ID Canada and playing a game (i.e. Clash of Clans from http://www.supercell.net) which identifies each game account by their GameCenter account. Hence in case of using only this Apple ID, for how many account game I can buy in-app purchases?
http://itunes.apple.com/ca/app/clash-of-clans/id529479190?mt=8
- I use my Apple ID buy gem ( intem of this game ) for 2 anccout game ( 2 iDevices) , but now I can't buy more Error "Please contact itunes support to complete this transaction" .How I can fix it ?
For ex: My Apple ID is [email protected] and share to a friend. Both of us log to this Apple ID "[email protected]" to download a game on 02 different iDevices namely "acc1" and "acc2". Is it possible to use only this Apple ID to buy in-app purchases for both account games "acc1" and "acc2".
Looking forward to hearing from you soon.
Thanks and Regards,noobdoon wrote:
... "Please contact itunes support to complete this transaction" .How I can fix it ?
Contact iTunes Customer Service
Apple Support iTunes Store Contact Us
noobdoon wrote:
... Is it possible to use only this Apple ID to buy in-app purchases for both account games "acc1" and "acc2".
See Here http://support.apple.com/kb/HE37
I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs. -
SIGSEGV in multithreaded app with OCI( on Linux
I have got a SIGSEGV in OCI9. Application is multithreaded.
OS Linux. Distribution SLES8. Libc version 2.2.5.
Oracle 9.2.0.5
Application is heavy multithreaded. SIGSEGV occures very rarely. But always in the same place.
Connect code:
static void oracle_init() {
ILock l(m_env);
if (counter++ <= 0)
(void)OCIInitialize(OCI_DEFAULT, 0, NULL, NULL, NULL);
ctor {
oracle_init();
(void)OCIEnvInit(&env, OCI_DEFAULT, 0, NULL);
(void)OCIHandleAlloc(env, (void **)&err, OCI_HTYPE_ERROR, 0, NULL);
connect {
checkerr(err, OCILogon(env, err, &ctx, (text *)const_cast<char *>(user.c_str()), user.len(), (text *)const_cast<char *>(password.c_str()), pass
word.len(), (text *)const_cast<char *>(db.c_str()), db.len()));
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(nlolgobj+0x50f) [0x4044a22d]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(nnfun2a+0x243) [0x403bc7e3]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(nnfsn2a+0x66) [0x403bc310]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(niqname+0x18a) [0x40365a1a]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(kwfnran+0x11f) [0x402d5df7]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(kwfcinit+0x177) [0x402a9155]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(kpuatch+0x834) [0x4014f7d2]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(kpulon+0x1bc) [0x4015009e]
/u/app/oracle/product/9.2.0/lib/libclntsh.so.9.0(OCILogon+0xd1) [0x401e2167]
Any ideas? Maybe I should initialise OCI with other flags?OCIInitialize should be called with mode OCI_THREADED instead of OCI_DEFAULT.
-
Transaction control of app module implementation , from a SLSB
Hi, We are using a Session bean , to invoke app module implementation - service methods to manipulate VOs.
The service method of app module is having control of transactions , like commit . We want to have this control from stateless session bean.
Could some one help me ? Thanks .Hi,
expose a custom client method on the ADF BC module and have this method (in AM impl) calling commit.
Frank -
JNI_CreateJavaVM fails in Multithreaded app.
Hello,
when i call JNI_CreateJavaVM in a multithreaded application, I ll get the error:
"ERROR: Could not find the pthread library (2). Are you running a supported Linux
distribution?"
So, given the following program, everyhing works okay:
----code---
#include "jni.h"
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void jnicall()
JNIEnv *env;
JavaVM *jvm;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jclass stringClass;
jobjectArray args;
JavaVMInitArgs vm_args;
JavaVMOption options[1];
options[0].optionString = "-Djava.class.path=.";
vm_args.version = 0x00010002;
vm_args.options = options;
vm_args.nOptions = 1;
vm_args.ignoreUnrecognized = JNI_TRUE;
res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
cls = env->FindClass("Hello");
if (cls == NULL) {
goto destroy;
mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
if (mid == NULL) {
goto destroy;
jstr = env->NewStringUTF(" from C!");
if (jstr == NULL) {
goto destroy;
stringClass = env->FindClass("java/lang/String");
args = env->NewObjectArray(1, stringClass, jstr);
if (args == NULL) {
goto destroy;
env->CallStaticVoidMethod(cls, mid, args);
destroy:
if (env->ExceptionOccurred()) {
env->ExceptionDescribe();
jvm->DestroyJavaVM();
int main()
jnicall();
---code---
But when I replace main with something like
---code---
int main()
pthread_t thread;
if (0 != pthread_create(&thread, NULL, (void*(*)(void*))jnicall, NULL))
fprintf(stderr, "Cannot create thread");
exit(1);
---code---
Really strange is that is does not matter, how i use pthread functions: even if
i call the jnicall function directly from main but start a different thread using
pthread_create, i get this method too:
---code---
int main()
pthread_t thread;
jnicall();
if (0 != pthread_create(&thread, NULL, (void*(*)(void*))some_other_thread_without_jni,
NULL))
fprintf(stderr, "Cannot create thread");
exit(1);
---code---
My system is a Suse Linux Enterprise Server 8.0 (wth United Linux 1.0) (kernel
2.4.19, glibc is 2.2.5); the Jrockit stuff is JRockit 8.1 SP 2
Any ideas?
TIA,
JohannesTry checking that the environment variable LD_ASSUME_KERNEL=2.2.5 is not
set.
From the release notes at:
http://edocs.bea.com/wljrockit/docs81/relnotes/relnotes.html#1041981
Best Regards,
Josefin Hallberg
BEA WebLogic JRockit
Customer Centric Engineering
"Johannes Hampel" <[email protected]> wrote in message
news:[email protected]...
>
Hello,
when i call JNI_CreateJavaVM in a multithreaded application, I ll getthe error:
"ERROR: Could not find the pthread library (2). Are you running asupported Linux
distribution?"
So, given the following program, everyhing works okay:
----code---
#include "jni.h"
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void jnicall()
JNIEnv *env;
JavaVM *jvm;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jclass stringClass;
jobjectArray args;
JavaVMInitArgs vm_args;
JavaVMOption options[1];
options[0].optionString = "-Djava.class.path=.";
vm_args.version = 0x00010002;
vm_args.options = options;
vm_args.nOptions = 1;
vm_args.ignoreUnrecognized = JNI_TRUE;
res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
cls = env->FindClass("Hello");
if (cls == NULL) {
goto destroy;
mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
if (mid == NULL) {
goto destroy;
jstr = env->NewStringUTF(" from C!");
if (jstr == NULL) {
goto destroy;
stringClass = env->FindClass("java/lang/String");
args = env->NewObjectArray(1, stringClass, jstr);
if (args == NULL) {
goto destroy;
env->CallStaticVoidMethod(cls, mid, args);
destroy:
if (env->ExceptionOccurred()) {
env->ExceptionDescribe();
jvm->DestroyJavaVM();
int main()
jnicall();
---code---
But when I replace main with something like
---code---
int main()
pthread_t thread;
if (0 != pthread_create(&thread, NULL, (void*(*)(void*))jnicall,NULL))
fprintf(stderr, "Cannot create thread");
exit(1);
---code---
Really strange is that is does not matter, how i use pthread functions:even if
i call the jnicall function directly from main but start a differentthread using
pthread_create, i get this method too:
---code---
int main()
pthread_t thread;
jnicall();
if (0 != pthread_create(&thread, NULL,(void*(*)(void*))some_other_thread_without_jni,
NULL))
fprintf(stderr, "Cannot create thread");
exit(1);
---code---
My system is a Suse Linux Enterprise Server 8.0 (wth United Linux 1.0)(kernel
2.4.19, glibc is 2.2.5); the Jrockit stuff is JRockit 8.1 SP 2
Any ideas?
TIA,
Johannes -
Connection pooling in multithreaded app results in occasional "Closed Statement" exc"
Hi there,
I'm writing a CORBA servant, which amongst all calls in a stored procedure. I'm using connection pooling (just by example) from multiple threads and use grabbed connection to prepare an SP statement, execute it, and close both statement and connection (to return it to the pool). My stress tests run fine for the most part but once in a while throws out "Closed Statement" exception when trying to excecute the prepared statement.
The reference platform is Solaris7, thin driver 8.1.6 for Java2, jdk 1.2.2, Oracle 8.1.5 (backend), ORBacus 3.3 (external application orb).
Do you guys have any "multithreaded" statements as far as pooling concerned? Let me know if you need code, schema, anything at all. Any recommendations are greatly appreciated too, like "don't use prepared statements, don't use pooling from multiple threads, download upgrade, etc". Thanks ahead.
Yours,
-EvgeniDear Oracle JDBC Development Team,
First of all, I object to your comment "Please don't spread wrong information.". I do not spread wrong information. That is why I wrote in my previous email, "it isn't thread safe (as far as my tests have shown)". My statement is thus conditional on MY testing. I recognise the fact that I could be wrong. Hence, the conditional clause.
As for the claim that OracleConnectionCacheImpl is thread safe - well, since it is your software then all I can do is believe you. However, I repeatedly get a java.util.EmptyStackException from calls to oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection() when running my test WITHOUT using the "synchronized" clause on the OracleConnectionCacheImpl object.
This, of course, could be due to the fact that my test is faulty. I don't know. I can't see the fault in any case. If you can help me with this then I would be more than grateful.
In any case, when I use the "synchronized" statement on OracleConnectionCacheImpl then this error disappears in a multithreaded environment.
Another interesting thing my test showed was that the JDBC driver seems to hang under heavy workload. Again, I could be WRONG. It could be my test that causes the problem, however, it is very hard to pinpoint the problem.
I would really appreciate help with this, if you have time, as we are using OracleConnectionCacheImpl in a major Internet billing system. If you wish to help then please send me an email to [email protected] (or [email protected]) and I will then send you my source code for the test.
In any case, I will word my messages with even more care in future!
regards,
Alexander Day
null -
Transaction management in App module
Hi -
I have a scenario where my db operation needs to participate in the distributed transaction. This operation will be called by a SOA service. So, i have created a custom class and custom method in my application module and exposed that as service interface. Now assume that a SOA service is making 3-4 sequence of calls to some other external systems. In between it is calling my custom method as well. Like
step 1) call to extenal system 1
step 2) call to external system 2
step 3) call to AM's method exposed through service interface.
step 4) call to extenal system 3.
In the above scenario, if any one of the call fails, SOA service has to rollback all the steps. In such scenario, can the AM's custom method (3rd step) participate in the transation and rolled back when 4 th step fails?
Thanks & regards
AravindanThanks for the response.
In the oracle documentation (section 11.3.7 in http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcextservices.htm), it has been mentioned that "remote call is stateless, and the remote service will not participate in the same transaction as the business component that uses a service-enabled application module's service interface"
"If you successfully call a remote service that results in modifying data, and then subsequently your local transaction fails for any reason, then it is the responsibility of your error handling code to perform a *compensating transaction* against the remote service to "undo" the previous change made"
any thoughts/suggestions? -
Threads - Multithreaded app. - How to cancel one and start another?
I've searched through the forums for some direction on this but have been unsuccessful in finding anything I could use yet.
What I am trying to accomplish is the following:
1. I have a multithreaded application
2. User can enter login information and then initiate the login thread by clicking the login button
3. Login button turns into a Cancel button during login attempt
4. If user changes their mind, they can initiate the cancel login thread by clicking the cancel button
How can I stop the login thread and start the cancel thread? Reading through the API (1.3.1), it seems that necessary methods have been depreciated. Could anyone offer me any insight/examples?
Thanks,
KJHave a boolean variable in the login thread which is checked at various points through the process and set to true when login starts. When the user clicks cancel, set it to false, then the login thread will end itself next time it checks the boolean.
-
PatternSyntaxException when calling String.replaceAll in multithreaded app
Dear,
Someone ever encountered or knows of problems when invoking String.replaceAll in a multithreaded application (JDK 1.4.2)?
I have an application that invokes replaceAll on a String and that runs just fine when only a single thread is active, but once multiple threads execute the same code, each on its own String instance, the following stack is produced (more often than not).
java.util.regex.PatternSyntaxException: Unknown character category {Digit} near index 9
^\p{Digit}
^
at java.util.regex.Pattern.error(Unknown Source)
at java.util.regex.Pattern.familyError(Unknown Source)
at java.util.regex.Pattern.retrieveCategoryNode(Unknown Source)
at java.util.regex.Pattern.family(Unknown Source)
at java.util.regex.Pattern.sequence(Unknown Source)
at java.util.regex.Pattern.expr(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.util.regex.Pattern.<init>(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)
The 1.4.2 source code seems to use a static HashMap (java.util.regex.Pattern#retrieveCategoryNode) to store some read only data, but it looks like the initialization of that HashMap in an multi threaded environment is not 'locked'. Could that be the/an issue? Anybody any thoughts?
Thanks,
PeterI ran peter's program on a hyperthreaded Intel P4 box and XP Pro. XP reports that there are 2 processors.
I used 1.4.2_06 and 1.5.0_01, with both -client and -server options.
The program was run with numThreads 10 and loadPattern 0 and 1.
The program was run 50 times for each of the configurations. Only one resulted in failures, as follows:
Java version cli/svr Pgm Parms # Failures
1.5.0_01 -client 10, 0 0
10, 1 0
-server 10, 0 0
10, 1 0
1.4.2_06 -client 10, 0 10
10, 1 0
-server 10, 0 0
10, 1 0
Of the 10 failures, 1 reported 3 errors, 2 reported 2 errors, and 7 reported 1 error.
The triple-error report is below:
"C:\Program Files\Java\jdk1.4.2_06\bin\java.exe" -client PatternProblem 10 0
Thread-7:Unknown character category {Digit} near index 9
^\p{Digit}
^
Thread-5:Unknown character category {Digit} near index 9
^\p{Digit}
^
Thread-3:Unknown character category {Digit} near index 9
^\p{Digit}
^
Note that this wording is not the same as peter encountered. The thread number varied,
apparently randomly, from 0 to 8 -
มีปัญหาอยากสอบถามครับ เมื่อวานได้ลองซื้อเงินในเกมส์ frontline commander d day ไป ซึ่งในครั้งแรก กดไป19.99$ หน้าจอกลับขึ้นว่า transaction error ก็คิดว่าคงเกี่ยวกับเนตเลยลองกดใหม่ไปอีก 2 ครั้ง ก็ยังคง error ปรากฏว่าตอนบ่ายธนาคารได้โทรมาสอบถ่ายและแจ้งยอดค่าใช้จ่ายว่าบัตรเครดิต มีการใช้และตัดยอดออกจากวงเงินไปแล้ว. 59.97$ แต่ไอเทมที่สั่งซื้อไปไม่ได้รับ กรณีเช่นนี้ ติดต่อผ่านทางไหนได้บ้างครับ
Yesterday i'll play frontline commander D Day and i bought gold 19.99 $in first time it's show transaction error i think it's off balance from my credit card i try to bought again in 4 time Shortly afterwards. The Bank Call center told me The spending my account at 59.99$
but in my ID i don't get any gold Please fix it and report progress immediatelyDid you use this contact form?... http://www.apple.com/support/itunes/contact.html?form=account&topic=iTunes%20Sto re%20Account%20and%20Billing&subtopic=Managing%20your%20Account
-
WLS - WLE Connections and Transactions in multithreaded
Hi .
We have a legacy system which was based on Tuxedo and now move to WLE
(4.0)
For our Internet applications we use WLS (4.03) as application server in
top of the legacy system.
We have problems trying to run more than one transaction on the WLS
which propagate to the WLE .
Looking at documentation we didn't understood how should we deal with
more than one client on the WLS . Each client should have its own
transaction and they should run simulstanly .
We only succeded when we synchronize the threads (Run just one thread
which get the transaction use it and then uses bt.destroy_current()
before activating the next thread to do the same)
It seems that the documantation in the WLE and WLS don't fit together .
Has someone use WLS-WLE connectivity with multiple clients/threads.
Can someone tell me how to use the Bootstrap object(destroy current?)
and the Transaction Control (begin , suspend, resume, commit) in order
to make it works.
RegardsI would strongly suggest that you not use WLE 4.0 which is rather old (4.2,
5.0.1 and 5.1 have all since been released), but move to the newest version
of WLE which is WLE 5.1.
WLS 4.0 is also an old release.
I am not sure how long these 2 releases will be supported, so the customer
should upgrade to the latest of both WLE and WLS.
Shlomo Rothschild wrote:
Hi .
We have a legacy system which was based on Tuxedo and now move to WLE
(4.0)
For our Internet applications we use WLS (4.03) as application server in
top of the legacy system.
We have problems trying to run more than one transaction on the WLS
which propagate to the WLE .
Looking at documentation we didn't understood how should we deal with
more than one client on the WLS . Each client should have its own
transaction and they should run simulstanly .
We only succeded when we synchronize the threads (Run just one thread
which get the transaction use it and then uses bt.destroy_current()
before activating the next thread to do the same)
It seems that the documantation in the WLE and WLS don't fit together .
Has someone use WLS-WLE connectivity with multiple clients/threads.
Can someone tell me how to use the Bootstrap object(destroy current?)
and the Transaction Control (begin , suspend, resume, commit) in order
to make it works.
Regards -
JDO Logging with MultiThreaded apps
I am having a HUGE problem w/ JDO displaying every SQL INFO statement to
the screen. I have my log4j.properties file setup as follows
log4j.rootCategory=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.SQL=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.JDBC=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.Schema=ERROR, console
log4j.category.com.solarmetric.kodo.Performance=ERROR, console
log4j.category.com.solarmetric.kodo.MetaData=ERROR, console
log4j.category.com.solarmetric.kodo.Enhance=ERROR, console
log4j.category.com.solarmetric.kodo.Query=ERROR, console
log4j.category.com.solarmetric.kodo.Runtime=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
And this works fine for a single threaded application, however if that
application spawns any threads, those threads write everything imaginable
to the screen, as though I had everything in my log4j.properties set to
=INFO.
This is really, really annoying for debugging purposes, I have no idea
where to go with this
And yes my kodo.properties file has multithreaded=true
I am also using JUnit to run these tests, FYI
Thanks in advance for any helpWe are spawning these threads within our application and we see the same
behavior when launched from the command line.
Here is my logging.properties:
# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler
# Set the default logging level for the root logger
..level=ALL
# Set the default logging level for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level=ERROR
# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level=ALL
# Set the default formatter for new ConsoleHandler instances
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
# Set the default logging level for all Kodo logs to ERROR
com.solarmetric.kodo.impl.jdbc.SQL.level=ERROR
com.solarmetric.kodo.impl.jdbc.JDBC.level=ERROR
com.solarmetric.kodo.impl.jdbc.Schema.level=ERROR
com.solarmetric.kodo.Performance.level=ERROR
com.solarmetric.kodo.MetaData.level=ERROR
com.solarmetric.kodo.Enhance.level=ERROR
com.solarmetric.kodo.Query.level=ERROR
com.solarmetric.kodo.Runtime.level=ERROR
Here is my log4j.properties:
log4j.rootCategory=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.SQL=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.JDBC=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.Schema=ERROR, console
log4j.category.com.solarmetric.kodo.Performance=ERROR, console
log4j.category.com.solarmetric.kodo.MetaData=ERROR, console
log4j.category.com.solarmetric.kodo.Enhance=ERROR, console
log4j.category.com.solarmetric.kodo.Query=ERROR, console
log4j.category.com.solarmetric.kodo.Runtime=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
And yet, I still get this output( from just a few seconds of runtime)
sed=209;params={(long)21102}]
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=643;size=10;max
=70;hits=632;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=643;size=10;max=70
;hits=632;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=210;params={(long)21103}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=644;size=10;max
=70;hits=633;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=644;size=10;max=70
;hits=633;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=211;params={(long)21104}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=645;size=10;max
=70;hits=634;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=212;params={(long)22155}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=211;params={(long)22205}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=213;params={(long)22156}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=212;params={(long)22206}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=214;params={(long)22157}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=213;params={(long)22207}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=215;params={(long)22158}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=214;params={(long)22208}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=216;params={(long)22159}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=215;params={(long)22209}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=655;size=10;max=70
;hits=644;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=212;params={(long)21105}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=656;size=10;max
=70;hits=645;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=656;size=10;max=70
;hits=645;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=213;params={(long)21106}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=657;size=10;max
=70;hits=646;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=657;size=10;max=70
;hits=646;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=214;params={(long)21107}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=658;size=10;max
=70;hits=647;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=658;size=10;max=70
;hits=647;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=215;params={(long)21108}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=659;size=10;max
=70;hits=648;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=659;size=10;max=70
;hits=648;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=216;params={(long)21109}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=660;size=10;max
=70;hits=649;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=217;params={(long)22160}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=216;params={(long)22210}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=218;params={(long)22161}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=217;params={(long)22211}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=219;params={(long)22162}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=218;params={(long)22212}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=220;params={(long)22163}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=219;params={(long)22213}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <18423897>:
[re used=221;params={(long)22164}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14008569; T:26117441; D:23582715 ] executing statement <10141941>:
[re used=220;params={(long)22214}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=670;size=10;max=70
;hits=659;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=217;params={(long)21110}] Jun 30, 2003 3:35:20 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 15ms Jun 30, 2003
3:35:20 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=671;size=10;max
=70;hits=660;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]]
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 11.157 sec Jun
30, 2003 3:35:21 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=671;size=10;max=70
;hits=660;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:21 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=218;params={(long)21111}] Jun 30, 2003 3:35:21 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:21 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms Jun 30, 2003
3:35:21 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] return
[com.solarmetric.datasource.
PoolConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dat
asou
rce.PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595
8617
,wrapped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=672;size=10;max
=70;hits=661;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0
to [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3 ; taken=2]] Jun 30, 2003 3:35:21 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] get
[com.solarmetric.datasource.Poo
lConnection@19da967[identityHashCode:16658781,wrapped:com.solarmetric.dataso
urce
..PreparedStatementCache$CacheAwareConnection@19da967[identityHashCode:595861
7,wr
apped:oracle.jdbc.driver.OracleConnection@19da967]:
[requests=672;size=10;max=70
;hits=661;created=11;redundant=0;overflow=0;new=11;leaked=0;unavailable=0]]]
fro m [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=3; max=10;
size=3; taken=1]] Jun 30, 2003 3:35:21 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] executing statement <2622421>:
[reu sed=219;params={(long)21112}] Jun 30, 2003 3:35:21 PM
com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] begin rollback
Jun 30, 2003 3:35:21 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:27109735; T:26117441; D:23582715 ] end rollback 0ms
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]...
Are you spawning the threads, or is JUnit forking off to start the
threads?
I suspect that you are using junit to create the threads, and the
classpath that the junit task is seeing does not have log4j.properties in
the classpath.
Can you ensure that the log4j.properties file is in the classpath that the
threads that are logging are using?
Alternately, configure the apace commons logging framework to use their
built-in simple logger and configure the simple logger via its
system-properties-based configuration capabilities.
-Patrick
On Fri, 27 Jun 2003 20:56:39 +0000, Damian Bradicich wrote:
I am having a HUGE problem w/ JDO displaying every SQL INFO statement to
the screen. I have my log4j.properties file setup as follows
log4j.rootCategory=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.SQL=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.JDBC=ERROR, console
log4j.category.com.solarmetric.kodo.impl.jdbc.Schema=ERROR, console
log4j.category.com.solarmetric.kodo.Performance=ERROR, console
log4j.category.com.solarmetric.kodo.MetaData=ERROR, console
log4j.category.com.solarmetric.kodo.Enhance=ERROR, console
log4j.category.com.solarmetric.kodo.Query=ERROR, console
log4j.category.com.solarmetric.kodo.Runtime=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
And this works fine for a single threaded application, however if that
application spawns any threads, those threads write everything
imaginable
to the screen, as though I had everything in my log4j.properties set to
=INFO.
This is really, really annoying for debugging purposes, I have no idea
where to go with this
And yes my kodo.properties file has multithreaded=true
I am also using JUnit to run these tests, FYI
Thanks in advance for any help--
Patrick Linskey
SolarMetric Inc.
Maybe you are looking for
-
Only HTTPS requests are working for SOAP Sender and HTTP not working
wHi Experts, We have enabled our HTTPS port ( SSL ) in NWA -- >> Security -- >> SSL and Key stores. So understanding is HTTPS port is now enabled on top of HTTP. So PI should be able to cater requests at both ports. Now, we have developed a synchrono
-
Importing .bmp with alpha channel
Is there a difference between the way that the Windows and Mac versions of Flash 8 Pro handle alpha channels on .bmp files? We are working with a .fla that was created in the Windows version of Flash 8, but we are editing it with the Mac version. Whe
-
G4 450 Dual - 1440 x 900 ??
My G4, dual 450, gigabit ethernet is being revamped for the kids to use. I'd like to replace the very old CRT with a new LCD and am wondering if the newer resolutions are supported by the built-in video card. Specifically, the 1440 x 900 res. 19" wid
-
Problem loading applet from tomcat
I am facing a problem loading the batik applet from tomcat. I have placed all the jar files of batik in ROOT directory in tomcat. Along with the folder containing the batik applet. Still i receive the following exception when trying to load the html
-
Is forcing Http tunneling mode possible ?
Hello, in order to make some tests between 2 PC on the same intranet, I would like to know if it's possible to force RMI to use http tunneling, and to choose the mode : http-to-port or http-to-cgi ? If possible, please tell me how. Many thanks in adv