Questions tagged [java-ee-7]

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

Java Enterprise Edition 7 (JEE7) is a specification defining a collection of Java-based technologies and how they interoperate. JEE7 incorporates the features of technologies of JEE6, including EJB3, JPA, JSF, CDI, etc. and adding new features like WebSockets, etc.

Numerous implementations are available in the form of both commercial products and open source projects.

Information

This tag is specific for the Java EE 7 version. See the tag for general Java EE questions.

Useful links

1224 questions
0
votes
1 answer

Ajax postback in JSF 2.2 view scoped bean creating new view

I have a CRUD form backed up by a primefaces datatable. Every time a new entity is created, the table is updated. But the thing is the creation only works once, subsequent requests in the same view do not trigger the backing bean action. Upon close…
synti
  • 67
  • 7
0
votes
1 answer

PrimFacse Linkbutton doesn't work inside dataGrid

Good morning everybody, I have a problem related to the primfaces controls. I put a commandLink inside dataGrid, but the commandLink didn't get in the action method. I don't why. So can you help me in this problem PLZ Here is the…
Yasmin
  • 183
  • 1
  • 2
  • 11
0
votes
1 answer

jax-rs 2.0 and Glassfish 4 unable to @consume JSON into Pojo

I'm trying to create a plain sample that will consume a json message and inject it in the pojo object. I'm using the Netbeans dev build with JavaEE7 support and the latest Glassfish 4 promoted build. When I call the Post method with a json message,…
Sebastien Dionne
  • 757
  • 2
  • 19
  • 34
0
votes
2 answers

How can a singleton Java EE bean obtain a reference to itself?

I have a singleton bean for which the @PostConstruct method needs to call an @Asynchronous method within itself. It cannot do so directly using this because that makes the call synchronous. I cannot @Inject itself because it is circular.
necromancer
  • 23,916
  • 22
  • 68
  • 115
0
votes
1 answer

Cannot Cancel @Asynchronous call to EJB

What am I doing wrong in this simplest of examples? (Glassfish 4.0-b87 + Eclipse Kepler m6) Myself.java package com.example.cancelbug; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import…
necromancer
  • 23,916
  • 22
  • 68
  • 115
0
votes
1 answer

Can Java EE Application Make HTTP Calls?

Can a Java EE Application -- a Servlet or a Session Bean -- make HTTP calls and still conform to portability standards? (assuming that the caller gracefully handles communication failure or unavailability of network) Furthermore, can a Java EE 7…
necromancer
  • 23,916
  • 22
  • 68
  • 115
-1
votes
1 answer

migration from http to https in wildfly

I want to migrate from http to https in wildfly 19.1 after setup all configuration from this tutorials https://medium.com/@hasnat.saeed/setup-ssl-https-on-jboss-wildfly-application-server-fde6288a0f40 i have trouble : when my application server…
-1
votes
1 answer

JavaEE MDB "EJB Container initialisation error"

I'm pretty new to JavaEE, and I want to make a message driven bean that consumes a message and a producer that produces a message. I got most of this code from a JavaEE manual, but it doesn't want to compile on my Glassfish server. Here is the code…
jimjim
  • 19
  • 2
-1
votes
1 answer

JVM crash with regard to Cannot allocate memory

I'm working on a java web-application deployed on wildfly that last night is crashed with the following errors: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007fba27a7b000, 12288, 0) failed; error='Cannot allocate memory'…
Skizzo
  • 2,883
  • 8
  • 52
  • 99
-1
votes
1 answer

what is the usage of Set> resources = new java.util.HashSet<>();

What is the usage of this code line in the rest api Set> resources = new java.util.HashSet<>(); @ApplicationPath("/service") public class ApplicationConfig extends Application { @Override public Set> getClasses() { …
-1
votes
1 answer

How get the items from an object that comes from another list with JSF

i have this entity Cliente, and have a relation OneToMany with Telefonos. @Entity public class Cliente implements Serializable { @Id @GeneratedValue(generator = "uuid") @Column(name = "id", unique = true) private String id; private…
Chay
  • 57
  • 2
  • 7
-1
votes
1 answer

Reading a table from database

I having a problem to run below Java code. I couldn't find the DB.java class. ResultSet rs = DB.getConnection().createStatement().executeQuery("select * from products"); while(rs.next()){ System.out.print(rs.getString("pid")); …
Russel
  • 29
  • 2
  • 7
-1
votes
1 answer

What is the difference between Java Web Application and Java Enterprise Application

Java EE applications have ejb, business layer and they run on application servers. However, I can create a Java Web Application that includes ejb, and also deploy it to a application server such as Glassfish. In this case, I cannot clearly see the…
tonder
  • 324
  • 3
  • 15
-1
votes
1 answer

How to Solve sql grammar exception and Unknown column 'id' in springBoot

**** customer Class Model********* @Entity @Table(name="customer") @NamedQuery(name="Customer.findAll", query="SELECT c FROM Customer c") public class Customer implements Serializable { private static…
Priyamal
  • 2,919
  • 2
  • 25
  • 52
-1
votes
2 answers

How can I force Jax-RS to only put out JSON only?

Currently my rest resources look like this: @GET @Override @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) public List findAll() { return super.findAll(); } From the looks of it, I feel like curl -v -H…
user465001
  • 806
  • 13
  • 29