wood burning stoves 2.0*
The moose likes Spring and the fly likes Integrating Logging with Main EJB Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Integrating Logging with Main EJB Application" Watch "Integrating Logging with Main EJB Application" New topic

Integrating Logging with Main EJB Application

Damodar Wagle

Joined: May 18, 2011
Posts: 5

I am using Spring AOP 3.1, AspectJ and log4j for logging (I am using annotations). So I created an Advice class, a Business Logic class and a Test class that has main method, in a standalone Java project. I put following two lines of code in the main method which loads the Spring Configuration XML and Logger XML file for me. This works fines. It logs the messages into specified log files.

Now I want to integrate this logging application with my main application. My application is as follows.
1) JMS client project that produces and send a message to Weblogic 10.3.3 Server. This client is a standalone java project.
2) The message is received by a MDB which passes it to an Stateless Session Bean.
3) Stateless Session Bean calls a DAO which inturn makes JDBC calls to insert the message into database.
Everything is working fine. But I donot know how to integrate the logging feature mentioned above with this main application so that it logs the messages for each method called in the above 3 steps.
Basically, I need to know how can I load the Spring and Logging xml configuration files.

Please help me with this. If you need any other detail then please let me know.

Thanks and Regards

It is sorta covered in the JavaRanch Style Guide.
subject: Integrating Logging with Main EJB Application
Similar Threads
Spring AOP and AspectJ Integration with EJB3
please answer this 128 questions for WLS. Urgently!
How to access spring beans through servlets
Wrapper class on the top of stateless session bean