Friday, April 26, 2013

Java Logging

Don’t forget to include Thread Name and fully qualified java class Name while printing logs because it would be impossible to find sequence of events if your code is executed by multiple threads without having thread name on it.
http://javarevisited.blogspot.com/2011/05/top-10-tips-on-logging-in-java.html

Monday, April 22, 2013

Java Servlets


The servlet container can be running in the same process as the host Web server,
in a different process on the same host, or on a different host from the Web server
for which it processes requests.
https://java.net/downloads/servlet-spec/Final/servlet-3_1-final.pdf

Friday, April 19, 2013

URL Parts in REST Service


http://localhost:8080/restful/resources/helloworld... it’s good to take a look how the URL is composed because when we start creating the service, you will see how the various parts of the URL—namely, the context root restful, the mapping of the RESTful resource container resources, and the name of the service itself—all manifest themselves in either the code or the XML configuration files.

http://www.theserverside.com/tip/RESTful-Web-services-made-easy

Saturday, April 13, 2013

DAO vs. Active Record

The DAO pattern is a popular choice in term of implementing of Data Access Layer. There is another pattern start to be attractive to developers especially inside some Dynamic Programming languages -- The Active Record pattern. The basic idea is directly enhancing the Domain Object to do data persistence. Recommended to read more before making decision which one is better for your project.
http://www.linkedin.com/groups/EJB-entity-beans-Hibernate-dao-50472.S.120316355

EJB's

EJB's are heavy weight components with all the different contract/convention. EJB entity beans provides you persistence with CMP and BMP with CMPs the container is taking care of all the services (Transaction, Security, Concurrency) and in BMP the bean itself needs to manage the services.
http://www.linkedin.com/groups/EJB-entity-beans-Hibernate-dao-50472.S.120316355

BPM

As a managerial approach, BPM sees processes as strategic assets of an organization that must be understood, managed, and improved to deliver value-added products and services to clients. 
http://en.wikipedia.org/wiki/Business_process_management

DTOs

Nor are ADO.NET data sets truly suitable as data transfer objects (the objects I shove around via messaging).
http://humbleblogger.blogspot.com/2005/04/aspnet-vs-j2ee.html