jakarta-ee Questions

3

I have an EJB timer schedule in a singleton EJB running inside a Wildfly 10.10: @Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class MySingletonBean { public m...
Sinasinai asked 25/10, 2017 at 4:58

4

Solved

In Java EE 7, what's the purpose and use of @Named annotation here? Even without it, the container should be able to discover this bean at runtime, right? Also, what about the @Singleton do? If d...
Salcido asked 27/9, 2014 at 5:57

4

I am trying to configure DB2 connection with DB2JDBC Type4 drivers. But I am getting this error. Exception in thread "main" com.ibm.db2.jcc.am.SqlInvalidAuthorizationSpecException: [jcc][t4][2...
Penicillin asked 23/5, 2013 at 4:36

1

I am trying to create a web app that complies with the Jakarta RESTful Web Services (formerly JAX-RS) specification, running on a WildFly server. I can start a deployment and access the WildFly hom...
Chur asked 12/2, 2024 at 13:15

10

Solved

I am working on a simple Java EE application. I have class like this: import javax.annotation.PostConstruct; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persist...
Ike asked 10/8, 2013 at 12:4

5

as mentioned from the title i have a problem stopping the wildfly windows service. When i tried to stop the wildfly service via the server manager - services window the status of the wildfly servic...
Gavra asked 15/7, 2016 at 8:4

3

I'm using the com.google.gson.Gson API to convert a JSON string to a Java object: Gson gson = new Gson(); User u = gson.fromJson(jsonString, User.class); I'd like to know if there's an equivalent ...
Cyrilla asked 24/3, 2015 at 14:23

10

Solved

...without actually reading and parsing the persistence.xml I can retrieve the name of the persistence unit of an EntityManager using the properties of it's factory. I can retrieve the available d...
Turgid asked 14/9, 2012 at 11:48

1

I have been using GlassFish 4 as my server. I am opening a WebSocket connect using this statement: webSocket = new WebSocket(link); Where: link = 'ws://localhost:8080/CollabEdit/Document/file333B1...
Kaz asked 7/4, 2015 at 19:53

11

Solved

Even though I set the attribute to be @Column(unique=true), I still insert a duplicate entry. @Entity public class Customer { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long ...
Dorton asked 16/8, 2010 at 18:18

5

Solved

here i am trying out many-to-many relationship in JPA, I'v created tables "tblcourse" and "tblStudent", a student can register to many courses, create table tblcourse( id integer primary key, na...
Zubkoff asked 25/4, 2012 at 14:51

7

Solved

It's a third party application generating huge amounts of log entries on our app server. Like this: [03.03.10 15:21:57:250 CET] 00000180 FtpProtocolHa I org.slf4j.impl.JCLLoggerAdapter info Close c...
Rozalin asked 3/3, 2010 at 14:31

2

Solved

@RequestMapping(value = "/v3/{versionId}/start/info/{type}", method = RequestMethod.GET, headers = "Content-Type=application/json", produces = "application.json") p...
Betthezel asked 27/11, 2022 at 14:48

7

I have been doing Java SE for some years now and moving on to Java EE. However, I have some trouble understanding some aspects of Java EE. Is Java EE just a specification? What I mean is: Is EJB ...
Halonna asked 3/9, 2011 at 18:42

3

Solved

I have a JPA Entity which uses a discriminator column. But I need to get access to the value of the discriminator as one of the fields of the entity. How do I that. If I create a method that matche...
Hoang asked 4/3, 2013 at 18:47

15

Solved

I developed a dynamic web project in Eclipse. I can access the app through my browser using the following URL: http://localhost:8080/MyDynamicWebApp I want to change the access URL to: http:/...
Mensa asked 13/3, 2010 at 6:7

2

Solved

I am asking this question after a couple of days on research and finding no definitive answer to this question: How do I process multipart form-data requests (clean and nice) with JAX-RS (not servl...
Aymara asked 26/7, 2022 at 18:49

2

Solved

I have a J2EE project with the following characteristics: CDI 1.0 Dynamic Web Module 3.0 Java 1.7 (it's being changed to 1.8) JSF 2.0 JPA 2.0 I'm running SonarQube 5.6.6 rules against it and it ...
Feaze asked 9/5, 2017 at 12:14

5

Solved

I have a simple problem: I want to configure an object differently based on whether the object is instantiated within a servlet container, or whether it is instantiated in a stand alone app. The o...
Anarchist asked 4/6, 2010 at 18:48

5

Solved

In a managed bean, @PostConstruct is called after the regular Java object constructor. Why would I use @PostConstruct to initialize by bean, instead of the regular constructor itself?
Mccarley asked 4/8, 2010 at 14:32

3

Solved

I have the following in a Question entity: @NamedQuery(name = "Question.allApproved", query = "SELECT q FROM Question q WHERE q.status = 'APPROVED'") and @Enumerated(EnumType.STRING) private S...
Broncobuster asked 21/11, 2011 at 19:8

3

Solved

I've read this article (assumes I already know what a transaction boundary is) and this SO question (can't decipher meaning of transaction boundary from that question). In other words, there are no...
Calling asked 15/11, 2018 at 7:16

6

Solved

I need to make sure many concurrent users be able to access the database. Although after each commit I close the session but sometimes my code runs into following error, but when I do the same oper...
Advance asked 9/7, 2013 at 7:11

8

How to optimize solr index. I want to optimize my solr indexing for i try to change in solrconfig.xml it getting indexed but i want to how to verify that they are optimized and with which thing ar...
Hydrogenize asked 5/8, 2011 at 9:43

19

Solved

I am trying to build a simple hello world application for two days using Jersey + Google app engine. For simple AppEngine project I followed these tutorials and both works just fine https://develop...
Demagnetize asked 6/8, 2013 at 17:2

© 2022 - 2025 — McMap. All rights reserved.