java-ee-7 Questions
2
Solved
I am using Windows 7 OS. I downloaded apache-activemq-5.8.0.zip from these Link and extracted in C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0 directory.
While Activemq initia...
Truss asked 6/8, 2013 at 14:2
7
Solved
I have below annotation.
MyAnnotation.java
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
}
SomeAspect.java
public class SomeAspect{
@Aroun...
Sass asked 22/1, 2014 at 6:32
2
Solved
I have an application that is running on a Java EE 7 application server (WildFly), that queries another service using REST resources.
In previous applications I have used the Jersey 1.x client API...
3
Solved
When should I use @javax.persistence.Lob annotation in JPA? What datatypes can be annotated by this annotation?
Galaxy asked 8/4, 2015 at 9:42
10
Solved
I developed a set of restful web services. I couldn't call any of these methods from remote clients due to the error
No 'Access-Control-Allow-Origin' header is present on the requested resource.
...
Cutcliffe asked 3/5, 2014 at 22:29
3
Solved
I am trying to deploy the first example (hello1) from the Java 7/8 EE tutorial* using Netbeans and I am running into problems. The project compiles without problems but when deploying it gives an e...
Theological asked 13/8, 2013 at 11:48
9
Solved
Without creating another class that I can inject. Is it possible to mock javax.mail.Transport so I can do some mock testing of the Transport.send() method on Java EE 7?
Riding asked 3/7, 2013 at 20:18
2
Solved
I have multiple java projects. these projects are creating jar,war and ear files using gradle. In each project I have used manifest file to maintain the meta data like version,date-time...
Fro this...
Wulfila asked 4/8, 2014 at 10:42
3
4
Solved
I am making application using JAVA EE,JAX-RS,JPA,GLASSFISH. Response is working properly in case of MediaType.APPLICATION_XML. It's not working in MediaType.APPLICATION_JSON.
Here is my pojo class...
2
I am dealing with a problem related with lazy loaded objects from the database.
Let's say that we have the below entity.
@Entity(name = "User")
@Table(name = "USERS")
public class User{
@Id
@Ge...
Maidenhead asked 15/3, 2016 at 15:26
3
Solved
I like the idea of having a standard for JSON serialization in Java, javax.json is a great step forward you can do an object graph like this:
JsonObject jsonObject3 =
Json.createObjectBuilder()
.a...
0
PROBLEM: Need to cache a native query (Hibernate Query Caching) in a stateless DAO EJB. Hibernate 5.3, Jpa 2.1, JavaEE 7.
RESEARCH:
Working example:
getEntityManager().createNativeQuery("SELECT...
Demimondaine asked 21/2, 2019 at 7:49
3
Solved
I'm working on a project that uses bean validation (Hibernate Validator 5.1.3.Final). My bean has a attribute with the @Past annotation.
@Past(message = "A data deve estar no passado.")
private Lo...
Stupefacient asked 15/5, 2015 at 0:51
1
Lately, during my research about asynchronous processing in Servlets, I came across at at least three ways to implement
some functionality using this approach.
The questions are:
Which one is the ...
Enteric asked 23/4, 2014 at 9:40
2
Solved
I have googled spring security examples using dao authentication and custom authentication filter, but which are I found, all the examples are using xml file configuration,
My question is how to c...
Alessandro asked 31/1, 2014 at 7:33
4
I've browsed a lot of Web Socket examples, presentation slides and they are mostly concentrated on a rather simple scenarios in which client-server communication is initiated by the client.
I am i...
Sanjak asked 16/10, 2014 at 16:59
4
I'm using Java EE 7. I would like to know what is the proper way to inject a JPA EntityManager into an application scoped CDI bean. You can't just inject it using @PersistanceContext annotation, be...
Toxemia asked 17/10, 2013 at 15:49
3
Solved
I have migrated my application from JSF 1.2 to 2.2.
It used XML namespaces on java.sun.com domain like xmlns:f="http://java.sun.com/jsf/core". However, Oracle's Java EE 7 tutorial is using XML na...
Remotion asked 26/6, 2015 at 8:41
3
Solved
I am migrating an application to Java EE 7 and would like to CDI 1.1. But I don't get the meaning of bean-discovery-mode="annotated". The
CDI 1.1 specification is not very helpful. At least I have...
Untimely asked 19/8, 2013 at 9:22
2
I'm doing a project in eclipse with JSF 2.2 and Servlet 3.1 (Java EE7). The first problem I had was a error in the pom.xml in line:
<packaging>war</packaging>
Error: web.xml is missi...
Denys asked 14/7, 2015 at 18:0
0
I have been looking into section 3.4.7.2 of the EJB3.2 specifications lately und done some tests.
The specifications:
@EJB Cart cart1;
@EJB Cart cart2;
… if (cart1.equals(cart1)) { //
this t...
2
Solved
By default Bean Validation gets Locale based on Locale.getDefault(), which is common to whole JVM.
How to change BeanValidation's Locale for current EJB method call?
I'm using JavaEE7 and want to...
Freon asked 15/4, 2014 at 13:31
4
I am being having a lot of issues deploying my war file on my VPS.
I have java-8 and tomcat-8. My server is an Apache/2.2.22 (Debian) and my HTTP is on port 80 and tomcat on 8080.
Currently if yo...
Morning asked 28/4, 2016 at 23:49
1
I want to get bean from producer method in order to read its properties. In some scenarios the bean is a EJB Singleton bean.
I've simplified my code to focus on the problem.
My simple qualifier:...
Densify asked 6/1, 2016 at 22:9
1 Next >
© 2022 - 2024 — McMap. All rights reserved.