aspose file tools*
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
Author

Integrating Logging with Main EJB Application

Damodar Wagle
Greenhorn

Joined: May 18, 2011
Posts: 5

Hi,
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
Damodar

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Integrating Logging with Main EJB Application