In fast evolving projects you are most certain to find some kind of technical debt. As architects and developers we are always looking for the best mix of flexibiltiy, clarity and maintainability in our code base. To maintain the quality of the code most project have a set of coding standards and architectural guidelines which [...]
Archive for the ‘Java EE’ Category
Tags: sonar, technical debt
Posted in Build automation, Java EE, Tools | 1 Comment »
Imagine a service implementation having autowired dependencies like:
@Service
@Transactional(rollbackFor=ServiceException.class)
public class ManageDrugServiceImpl implements ManageDrugService {
@Autowired
private DrugPrescriptionManager drugPrescriptionManager;
@Autowired
private UserDAO userDao;
@Autowired
private DrugDAO drugDao;
@Override
public List getNewDrugsForUser() throws ServiceException {…
To test this above service in isolation and mock each dependency is not hard. Create a setter method for each dependency [...]
Posted in Java EE, Open Source, TDD | 3 Comments »
What is it?
CDI is an abbreviation of “Contexts and Dependency Injection for the Java EE platform”. First of all, I’d like to stress that CDI is not only for Java EE environments. It is equally applicable to Java SE applications, unit tests and other out-of-container environments.
The specification (JSR-299) defines its declared capabilities as follows:
This specification [...]
Posted in Java EE, Open Source | No Comments »
JAX-WS is the Java-standard for Web-Service XML to Java POJO binding. It entered the scene in Java EE 5 and Java SE 6. I wrote a blog entry a while back on it’s advantages over the predecessor (JAX-RPC). With WSDL-first (contract-first) design, Java POJO:s are generated from WSDL and XSD source files. The resulting Java [...]
Posted in Java EE, Open Source, SOA | 1 Comment »
I decided to see what it would take to deploy the weather feed of my previous post to Google App Engine – a cloud platform for Java servlets. I went the maven path, so that I could simply deploy to GAE via a maven build command. In order to keep the original project independent of [...]
Posted in Dynamic languages, Java EE | No Comments »
At the QCon conference, Dave Syer today gave an update on the Spring Batch project that is approaching the 1.0 release (scheduled for next week). Batch Processing has to do with processing (typically large) “batches” or sets of input data at regular intervals instead of continuously, “on-line”, for some reason (cost, time, throughput, etc). Within [...]
Posted in Java EE, Open Source | No Comments »
Spring Source recently announced a new member of the Spring family: Spring integration . It is an attempt to provide an abstraction for messaging, in the domain of business integration (i.e. it is not Telecom Messaging). Due to the lack of frameworks in this area, we have designed messaging abstractions for several large Java EE [...]
Posted in Java EE | No Comments »
Finally, it seems like Ed Burns, spec lead of JSF 2.0, has started to listen to the community (or at least he listened to Gavin King, according to his blog).
For several years, there has been a massive critique against using JSP as rendering engine for JSF (see this OnJava article for an example). The Facelets [...]
Posted in Java EE, Web | No Comments »
Prestandamätning är ett minerat område. Eftersom många testramverk riktar in sig mot vissa delar i det system det ska mäta ger det leverantören en möjlighet att optimera för testet. Förutom att kunna optimera de kodvägar som används av testet så är det också vanligt förekommande att offra best practices för design och utveckling för att [...]
Posted in Java EE | No Comments »
Java EEs vara eller inte vara debatteras flitigt. Eller rättare sagt behovet av en Enterprise Java specifikation i allmänhet och EJB som teknologi i synnerhet. Det råder dock inget tvivel om att EJB Persistence – en del av JavaEE 5-specifikationen – har luft under vingarna.
Den nya standardiseringen av API för lagring av domänobjekt i relationsdatabaser [...]
Posted in Java EE | No Comments »



