Marcin noway

Greenhorn
+ Follow
since Dec 17, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marcin noway

Martijn Verburg wrote:So APP_LOG is your console log?



No - both are files.
Hi

I'm trying configure log4j to have logs of my app in one file and logs of frameworks (spring, struts2, hibernate) in other. It's part of my log4j.xml file:



But I have for example the following lines:
[2010-04-11 13:38:15.750]INFO [main][org.apache.struts2.config.BeanSelectionProvider] Choosing bean (struts) for interface com.opensymphony.xwork2.util.reflection.ReflectionProvider
[2010-04-11 13:38:15.015]DEBUG[main][org.hibernate.impl.SessionFactoryObjectFactory] initializing class SessionFactoryObjectFactory
[2010-04-11 13:38:15.109]DEBUG[main][org.springframework.beans.factory.support.DefaultListableBeanFactory] Finished creating instance of bean 'subtitlesParser'

in both log files, I'd like to have it only in file configured by APP_LOG2. What am I doing wrong?

David Newton wrote:Keeping implementation details non-specific helps testing and increases extensibility. Not sure what would be better, if anything.



Great to hear it :) Thank you.
13 years ago
Hi

In my application I have:
FileParser interface with one method:HashSet<WordDescription> readWordsList(File file);
Strust2 Action class: FileUploadAction which has fileParser property.

In general I don't need instance of FileParser - readWordsList method can be static but I can't do it in interface. I set the method abstract and injected some implementation of FileParser to FileUploadAction as singleton.

Do you think its good solution? I'm not sure and I'm looking for something better. Have you got any ideas?
14 years ago
Ok, I found - it's a bug in jboss 2.4.7.
14 years ago
The suspicious log message is 'Creating XA Pool' (thousands times) - I suppose the pool is not persistent. Database monitoring says that there is login before executing every query, and logout after it.
14 years ago
Hi

I want to configure connection pool but before any connection it creates new pool (In log I found thousands of 'Creating XA Pool')
How to force jboss to use the same pool, without creating new?

My configuration:


thanks
14 years ago