• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

Integrating Logging with Main EJB Application

Posts: 5
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic