Archive for category JavaEE
JavaEE 6 has been approved
On Monday the final votes for “JSR 316: Java Platform, Enterprise Edition 6 (Java EE 6) Specification” have been submitted and with little surprise it has been approved.
JavaEE6 marks a major milestone in enterprise Java with the arrival of subspecs such as CDI, JPA2, EJB 3.1 (with EJB Lite) or Servlet 3.0. But the most important part for me is the new web profile which was really overdue. Read the rest of this entry »
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.
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 »
Weld tutorial – Part 2
Welcome to part 2 of my litte Weld tutorial. Before I start I have to point you to the PFD2 of Weld. Why? Well, the whole JSR-299 is very extensive. It is IMO nearly impossible to cover all parts of it in a few lines. Hence I’m not going into much details of Weld but just show you how to get started.
Having said that lets go to… Read the rest of this entry »
Weld Tutorial – Part 1
Following my recently published article about integrating Weld with Tomcat6 here’s Part 1 of my Weld tutorial.
In this first part I want to create a really really really simple example application – the so called “Hello Weld” example. For the Non-German readers: “Hello Weld” is a litte pun. “World” is “Welt” in German which is pretty close to Weld.
Enough jokes for now, let’s go to work. Read the rest of this entry »
Integrating JSF 2.0 and Weld with Tomcat6
While Mojarra 2.0.0 is out on the street and Weld (aka Java Contexts and Dependency Injection (JSR-299)) is reaching CR1 there’s not much content on the web about it. So I tried to give a litte tutorial how they can be integrated with Tomcat6 (Glassfish v3 and JBoss provide built in support). Read the rest of this entry »
Recent Comments