Use this tag for questions relating specifically to Java Enterprise Edition 6.

learn more… | top users | synonyms (5)

0
votes
0answers
8 views

IllegalStateException while using UserTransaction (JEE)

I am trying to make my first Java Enterprise Application and use UserTransactions. Therefore I use JNDI Lookup with java:comp/UserTransaction to get my UserTransaction Object. public void ...
0
votes
0answers
8 views

Join several javax.ws.rs.client.Invocation

In GWT there is a good feature that allows to join several requests to the server via com.google.web.bindery.requestfactory.shared.RequestContext.append() and run them all in one query by ...
0
votes
1answer
8 views

glassfish gives an illegalstateexception - trying to deploy java ee timer application

I have a simple application. Just one EJB with @startup and @singleton annotation. It programmitcally creates a timer and has a @timeout method. The code is mostly from the java ee 6 tutorial on the ...
0
votes
0answers
12 views

java ee 6 how to implement a lock on model

I have a simple JEE application that can viewer/edited by multiple people. I now want to implement the following feature: If a user has the application open, no other use is allowed to edit until the ...
0
votes
1answer
48 views

JSF2: How to add an Attribute on the CommandLink

This should be very basic, or easy to do, but it seems that this is not the case. Because of some compatibility issue with an HTML design template, we need to add a simple "href" attribute on all ...
2
votes
1answer
34 views

jax-b xml inverse reference with many to many relationship

I have a few many to many relationships in my data model. I have been trying to use JAX=B to get XML representations of the data models, however I have read that for one to many relationships an: ...
0
votes
1answer
30 views

How to Login a User into my RESTFul Webservice for use with javax.ws.rs.core.SecurityContext

I am currently stuck at implementing security into my RESTFul Webservice. I have found out that there is a SecurityContext which is easy to use and then again got stuck at putting my user information ...
0
votes
1answer
17 views

How to get DataSource or Connection from JPA2 EntityManager in Java EE 6

I have a working application where I use Java EE 6 with EclipseLink for persistence and a PostgreSQL database. For the User-Registration I want to set the password in PostgreSQL to: ... password = ...
0
votes
0answers
30 views

spring mvc framework 2.5, 3 & 4

i'm working thru the tutorial at http://static.springsource.org/docs/Spring-MVC-step-by-step/ downloaded version 4 of the framework and realize now that some classes have been droppped. i wish they ...
0
votes
1answer
25 views

How to use Criteria API objects for multiple and/or conditions

I'm having problems with multiple and/or conditions. Here's the situation, I have WorkTime entity with user, dateFrom and dateTo fields and User entity with organizationUnit field. I'm constructing ...
0
votes
1answer
10 views

How to find, in runtime, the jndi name that was given to my EJB

I have a static method that needs to lookup for a EJB instance. The problem is that the JNDI name depends on the name of the JAR where the Interface for the JEB is located. What I'm trying to do is ...
0
votes
0answers
5 views

Glassfish Exception Stacktrace hidden line numbers

Downbelow you see a part of a stacktrace of a exception. I cannot find the line number as usual in the trace because there it says unknown source. I guess it is because of @EJB Injected bean method ...
2
votes
1answer
20 views

Is it possibile to define a jax-rs service interface separated from its implementation (with eclipse and jersey)?

I don't know if the title is confusing, but let's say I have this interface: @Produces(MediaType.APPLICATION_JSON) @Path("/user") public interface UserService { @GET @Path("/{userId}") ...
0
votes
1answer
21 views

EJB3.1 JSF2.0 CDI ejbRef conversion

I am developping a project using JSF2.0/Primefaces, EJB3.1, Hibernate. I created an enterprise application, injected EJB3 Facades into JSF Managed Beans using CDI and created web pages that call the ...
0
votes
1answer
21 views

How i can upload an image using JSF PrimeFaces and store it in database

I am working with Java EE, JSF and PrimeFaces. I am using Apache Tomcat as server. In my poject, I have to upload some pictures in order to save it in the database. When I tried to upload a file, it ...

1 2 3 4 5 91
15 30 50 per page