1,214 questions
0
votes
0
answers
60
views
Is it possible to bypass parent Interceptor invocation in Java EE?
I'm working on a Java EE application where I have created a custom interceptor that extends an existing parent interceptor. My goal is to conditionally skip the invocation of the parent interceptor's ...
1
vote
0
answers
71
views
How to OrderBy entity results using Map value included in the @Entity as @CollectionTable
I am trying to orderby value of a Map that is included in my @Entity as @CollectionTable @ElementCollection. I try to do this using criteriabuilder and eclipselink.
I provide below the entity example
@...
2
votes
1
answer
103
views
EJB Persistent Timer cancel
My application is deployed on WebSphere Liberty 23.0.0.9.
In the following code snippet create method creates timer and cancel method cancels timer. arc represents a value which uniquely identifies ...
0
votes
1
answer
285
views
Restful API-JSON mapping Issue after Migration from WebLogic 12c to WebLogic 14c
I currently maintain a legacy EJB application that is hosted on WebLogic 12c, where it operates smoothly without any issues. Recently, I undertook the task of migrating this application to WebLogic ...
0
votes
1
answer
154
views
jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration
i'm trying to deploy a jdo resource adapter to wildfly 10 with this code: https://github.com/urbandroid/datanucleus-jca-adapter
java:/TestDS datasource deployed to server resource adapter must use ...
0
votes
0
answers
194
views
java.lang.NoSuchMethodError: javax.json.stream.JsonGenerator.writeKey(Ljava/lang/String;)Ljavax/json/stream/JsonGenerator;
I'm trying to deploy a simple graphql service to java ee 7 server to prove it can be done.
I managed the work for jakarta ee 10 version but java ee 7 one deploys and run but when i test the web ...
0
votes
1
answer
670
views
javax.jms.Message from IBM MQ has "null" JMSDestination
When consuming a javax.jms.Message from IBM MQ I want to log the message id and destination it came from like this:
Received [ID:...] from [...]
For some messages this works fine and looks like this:
...
0
votes
1
answer
33
views
Is it important to delete deleted from code timers from jboss_ejb_timer. EJB3. POSTGRES
I removed timer from code, but after app started, the timer is still exists in jboss_ejb_timer. It does not start, but maybe it is important to delete it from jboss_ejb_timer too.
-5
votes
1
answer
232
views
Multiple resource methods match request "POST /.../..."
I am doing a REST API with the Java Resteasy framework (using Jackson as well).
I was trying to define two API endpoints almost equal:
@POST
@Path("/addbook")
@Produces(MediaType....
0
votes
2
answers
619
views
JaxRS validate java.lang.Long as @QueryParam
I have an JaxRS API like this :
@GET
@Path("list")
public Response list(@QueryParam("id") Long id) {
...
}
How can i handle exception when send non digits parameter as id ?
...
0
votes
0
answers
170
views
Server Session timeout in Glassfish with custom page reload doesn't work
I have Java EE app + Glassfish 4.1 + JSF Primefaces + Websockets. Session timeout configured for 30 minutes. It works on some pages.
<!-- Session Timeout in min -->
<session-config>
&...
0
votes
0
answers
75
views
How to execute Shell commands in GNU/Linux
I am creating a Web using JavaEE + Tomcat, and I would like to know what would be the best way to execute a GNU/Linux Shell command and, if possible, to know if there has been an error in the ...
0
votes
1
answer
444
views
How add special characters in WebTarget.queryParam name in client JavaEE 7
I try make request using client library javax.ws.rs
I'm trying to add a parameter name containing characters [ and ] to query parameters, for encdoded special characters i am used URLEncoder.encode(). ...
0
votes
1
answer
176
views
EntityManager injected only once if declared into two different EJBs
I am on Weblogic 12c + JPA/Hibernate + EJB 3.
I wish to simplify my class model as follow:
public abstract class AbstractEJBBean {
@PersistenceContext(unitName = "myPU")
private ...
0
votes
1
answer
292
views
Injection not working in SecurityRealm-Bean
I'm trying to implement a custom security realm which access a database for user validation. I want to inject a configured database from the datasource-module. It seems that no dependency injections ...