Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Integrating Logging with Main EJB Application

Posts: 5
Oracle Spring Java
  • Mark post as helpful
  • send pies
  • 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

    Bookmark Topic Watch Topic
  • New Topic