Category Archives: Logging

Sawing through the Java Loggers

Sawing through the Java Loggers I know what your thinking, “It’s just logging!”. This small, yet common part of our applications, provides developers, QA and troubleshooters with information to help in determining code execution sequences, inspecting data values and trouble … Continue reading

Posted in Jakarta Commons Logging, Java Util Logging, LogBack, Logging, SLF4J | Tagged , , , , , | 4 Comments

Enterprise Spring Framework Best Practices – Part 3 – XML Config

Enterprise Spring Best Practices Series In part 3, Spring XML Configuration. The best thing about Spring is that there are several way to solve a problem, the worst thing about Spring is that there are several ways to solve a … Continue reading

Posted in Java Util Logging, SLF4J, Spring | Tagged , , , , , , , | 5 Comments

Enterprise Spring Best Practices – Part 1 – Project Config

Enterprise Spring Best Practices Series In part 1, let’s review project structure and configuration. Sections Project Directories Project Dependencies Smart Logging Running with Jetty and Tomcat Spring Configuration Files Complete Maven Config Valuable Maven Commands Further Reading Social Me Project … Continue reading

Posted in Eclipse, Jakarta Commons Logging, Java, Java Util Logging, Jetty, Log4J, LogBack, Logging, Maven, SLF4J, Spring, Spring Framework, Spring MVC, STS, Testing, Tomcat | Tagged , , , , , , | 10 Comments

Unit Testing Spring with Mockito & PowerMock

Unit Testing Spring with Mockito & PowerMock I’ve updated my Spring Mockito Demo app that I demonstrate when teaching with a PowerMock of a final class with a static method. Demo Features Maven 3.0 Maven Enforcer plugin restricting use of … Continue reading

Posted in LogBack, Logging, Maven, Mocking, Mockito, PowerMock, SLF4J, Spring Framework, Spring MVC, Testing | Tagged , , , , , , , , | Leave a comment

tcServer Logging with Logback & SLF4J

Logback and SLF4J provide better logging for java applications. To configure VMware vFabric tcServer to take advantage of the speed and flexibility of Logback use the following steps as a starting point. Download the tcServer Developer Edition free: http://www.springsource.com/developer/tcserver This … Continue reading

Posted in Jakarta Commons Logging, Java, Java Util Logging, LogBack, Logging, SLF4J, Spring, Spring Insight, tcServer, Tomcat | Tagged , , , , , , | Leave a comment

Sending Beans as XML with JmsTemplate

Introduction We often want to send XML via web services. We may already have the schema or annotated JAXB2 classes configured in our application. What if we want to send the same format via JMS? By default Spring JMS is … Continue reading

Posted in ActiveMQ, Jakarta Commons Logging, Java Util Logging, JMS, JUnit, Log4J, LogBack, Logging, Maven, SLF4J, Spring, Spring Framework, Testing | Tagged , , , , , , , , , , , , , , , | 11 Comments

Updated Docs for Spring Roo

Want updated Roo Documentation? Want information on creating and publishing Roo Add-Ons? 1. Get the dev build of Spring Roo from: http://git.springsource.org/roo I am assuming here that you have created a /roo-dev directory. To build Roo, you should read the … Continue reading

Posted in felix, Git, LogBack, OSGi, Roo, Spring, Spring Framework, Spring Roo | Tagged , , , , , , , | Leave a comment

LogBack Logger Addon for Roo

Want faster, flexible & more robust logging? Have you looked at LogBack by the creator of Log4J yet??? Introducing the LogBack Addon for Roo Features Adds the command to the Roo shell – logback setup Creates a New File: src/main/resources/logback.xml … Continue reading

Posted in Jakarta Commons Logging, Java, Java Util Logging, Log4J, LogBack, Maven, Roo, SLF4J, Spring, Spring Roo | Tagged , , , , , , , , | Leave a comment

Configuring LogBack Logging in Spring & Spring Roo

LogBack is the more versatile logging strategy created by the same person that created log4j. Use the following steps to configure your Roo 1.1 project to use LogBack. See Also: Reasons to Switch to LogBack 1. Create a logback.xml file … Continue reading

Posted in LogBack, Logging, Maven, Roo, SLF4J, Spring Roo | Tagged , , , , , , , | 1 Comment

Troubleshooting URL Rewriting in Spring Roo

Spring Roo automatically installs URL Rewriting for your application. If we want to configure another servlet in our web.xml file, we may need make configuration changes to the urlrewrite.xml file. 1. Enable Logging Before you jump into log4j.properties file, you … Continue reading

Posted in Log4J, Roo, SLF4J, Spring, Spring Framework, Spring Roo | Tagged , , , , , , , , | Leave a comment