Archive for November, 2009

It’s /WEB-INF/classes/META-INF

Note to myself (which might help others):

In a web application always put the stuff (which is not packaged a single JARs)  in /WEB-INF/classes/META-INF (e.g. persistence.xml or service files) and not in /META-INF. Otherwise the various applications will not be able to locate them.

No Comments

Weld tutorial – Part 3

In part 1 and part 2 of this series of articles I talked about how to use the simple injection provided by Weld. What I’ve done so far was to inject full blown beans which get instanciated by its constructor. But there is another way: a producer-consumer-relationship.

With this way of injection it is possible to really inject everything. POJOs, DB resoures like ResultSets even primitives can be injected. Read the rest of this entry »

, ,

No Comments