59
votes
16answers
26k views

Java EE 6 vs. Spring 3 stack [closed]

I'm starting a new project now. I have to choose technologies. I need something light, so no EJB or Seam. On the other hand I need JPA (Hibernate or alternative) and JSF with IceFaces. Do you think ...
36
votes
2answers
8k views

Where's the official JSP tutorial

I now have to remember how to create custom tag libraries, and since I'm using servlet 3.0 I decided to see the official JavaEE6 tutorial. Much to my surprise there is nothing about JSP in the JavaEE6 ...
35
votes
2answers
8k views

How do CDI and EJB compare? interact?

I'm having a tough time understanding how the two interact and where the boundary between them lies. Do they overlap? Are there redundancies between them? I know there are annotations associated with ...
25
votes
1answer
2k views

Does a JCA 1.6 ResourceAdapter need a ManagedConnectionFactory?

I have written a JCA resource adapter before. However, now I find myself in a position of having to write one solely to get access to the BootstrapContext and its associated WorkManager, and ...
21
votes
1answer
2k views

Where can i find a list of all the reference implementations for JEE6? [closed]

Do you know if there is a list with all the reference implementation for every component of JEE6? I.e. Glassfish is the reference container, Hibernate Validator for validation, etc.
20
votes
5answers
21k views

Differences between JPA and JPA2

Does anyone have a list of the changes between JPA 1 and JPA 2? I have read about the Criteria queries and other changes, but I would like a "what's new" kind of reference. Thanks
16
votes
5answers
29k views

JSF 2.0 File upload

I am looking around a few blogs, to try to find how to upload files using JSF 2.0 But all the solutions kind of confuse me. I would like to know what do I exactly need to be able to successfully ...
15
votes
5answers
9k views

Inject a EJB into JAX-RS (RESTfull service)

I'm trying to inject a Stateless EJB into my JAX-RS webservice via Annotations. Unfortunately the EJB is just null and I get a NullPointerException when I try to use it. @Path("book") public class ...
14
votes
2answers
3k views

JSF2.0 doesn't support cross-field validation, is there a workaround?

JSF2.0 only allows you to validate the input on one field, like check to see if it's a certain length. It doesn't allow you to have a form that says, "enter city and state, or enter just a zip code." ...
14
votes
2answers
1k views

What are the best debugging tricks with Weld/CDI?

One of the beauties with Java EE 6 is the new dependency injection framework - CDI with the Weld reference implementation - which has prompted us to start migrating internally to JSR-330 in an ...
12
votes
2answers
3k views

Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean

I feel there is a little mess in the Java EE 6 spec. There are several sets of annotations. We have javax.ejb annotations like @Stateful and @Stateless for creating EJBs. There is also a ...
12
votes
4answers
5k views

Servlet 3.0 asynchronous

What's the diffrent between servlet 3.0 asynchronous feature against: old servlet impl doGet(request,response) { Thread t = new Thread(new Runnable() void run(){ // heavy processing ...
12
votes
4answers
3k views

Multi tenancy support in Java EE 6

I have an existing Java EE 6 application (deployed in Glassfish v 3.1) and want to support multiple tenants. Technologies/APIs I'm currently using in my app are EJB (including the EJB timer service) ...
11
votes
2answers
373 views

A methology that allows for a single Java code base covering many different versions?

I work in a small shop where we have a LOT of legacy Cobol code and where a methology has been adopted to allow us to minimize forking and branching as much as possible. For a given release we have ...
10
votes
5answers
1k views

How to access a file from a different war which is in the same ear on a Java EE Server (JBoss)?

So following problem: We have a load balancer with n servers behind it. On each server there is a PDF project (war) installed in ear together with a pdf-builder project in the same earfile (different ...

1 2 3 4 5 34
15 30 50 per page