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
subject: Integrating Logging with Main EJB Application