I am currently undertaking a Java project and I was wondering is it best practice to create the DAL as a class library or in an EJB? I have seen a lot of articles regarding JPA, Hibernate etc but I like to have complete control over the statements that get executed so I would prefer to write my own using JDBC.
I come from a primarily C#/.NET background and this is my first full java project so any help would be greatly received.