ejb-3.0 Questions

16

Solved

I have 3 entities with ManyToMany relationships: Role Entity: @Entity public class Role { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer roleID; private String roleNa...
Shrive asked 27/10, 2014 at 15:52

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

5

Solved

I got the following code @Stateless public class BondecomandeDAO { @PersistenceContext private EntityManager em; public Bondecommande findBCbyid(int id) { Query q =em.createNamedQuery("sele...
Termitarium asked 10/12, 2013 at 15:2

10

Solved

I am trying to run this basic JPA/EJB code: public static void main(String[] args){ UserBean user = new UserBean(); user.setId(1); user.setUserName("name1"); user.setPassword("passwd1"); em.p...
Donielle asked 14/3, 2010 at 8:25

6

Solved

I am using JPA and I need to make the "tableName" a variable. In a database, I have many tables, and my code needs to access the table where I specify it to read. @Entity @Table(name = "tableNam...
Magnus asked 15/3, 2010 at 3:42

14

Solved

What is the difference between Data Access Objects (DAO) and Repository patterns? I am developing an application using Enterprise Java Beans (EJB3), Hibernate ORM as infrastructure, and Domain-Driv...

21

Solved

I'm having something quite peculiar here, my build is successful in maven when I type "mvn clean install" however once imported into Eclipse it's showing errors. See for yourself: I gue...
Homorganic asked 14/6, 2012 at 9:39

6

Solved

Which one is better among following(EJB 3 JPA) //Query a). getEntityManager().createQuery("select o from User o"); //Named Query where findAllUser is defined at Entity level b). getEntityManage...
Typeset asked 7/8, 2014 at 10:51

7

Solved

I'm getting a warning in the Server log "firstResult/maxResults specified with collection fetch; applying in memory!". However everything working fine. But I don't want this warning. My code is p...
Spicule asked 11/7, 2012 at 11:28

6

Solved

I have an Entity class: @Entity @Table(name="CMC_MAP_SERVER_INFO") @NamedQuery(name="CmcMapServerInfo.getMapServer", query="SELECT c FROM CmcMapServerInfo c") public class CmcMapServerInfo impleme...
Why asked 28/1, 2014 at 5:15

6

Solved

I am building an application using JPA, JSF, EJB, Derby. At this point the application is still small. I have a form in the application to add new products. When adding data to the db it goes smoot...
Attenuant asked 4/11, 2012 at 23:39

2

Solved

When using Message Driven BEans, the destination name from where to receive messages is hard coded in the annotation @MessageDriven(mappedName = "someDestinationName") Is there a way to add this i...

4

Solved

How can I use the following code in my non-ejb application. The code works. @Override public void saveItems(Collection<T> items) { synchronized (em) { EntityTransaction tx = em.getTransacti...
Chantal asked 9/6, 2012 at 21:29

4

Solved

I am new to EJB, and was trying "Hello World" type of EJB Java program. Here is my EJB: package dukesbookstore.ejb; @Stateless(name="BookRequestBean", mappedName="ejb/BookRequestBean") @Named publ...
Inspissate asked 10/5, 2013 at 11:27

5

Solved

I have the following code to manage two kinds of repositories. Both repository classes inherit an interface to allow reinitialization of their resources. public interface CachingRepository { publ...
Zug asked 27/4, 2012 at 7:10

5

Solved

I have a business interface being implemented by two EJBs. UserManagementService @Remote public interface UserManagementService { // ... } UserManagementServiceJpaImpl @Stateless(name="userM...
Acrimonious asked 16/9, 2011 at 10:24

1

I'm trying to use CompletableFuture with EBJ bean running on WildFly. I can see the debugger reach the remote Ejb and retrieve the result successfully but in the Wayback to caller class I got an e...
Response asked 21/11, 2019 at 13:4

3

Solved

Any idea why I'm getting this error: JBAS014775: New missing/unsatisfied dependencies: service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.data-source.jboss/datasources/UserDS] ...
Duwe asked 10/1, 2013 at 22:6

3

Every time I try to deploy my EJB service app to Weblogic 10.3 server, I get following error: java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.Privileged...
Jenson asked 20/2, 2012 at 12:8

2

I have the following code that I'm trying to deploy as an EJB to WebLogic 12c, but I'm getting an error: "Error deploying the EJB GeopoliticalServiceBean(Application: campaigner-ejb, EJBCompon...
Sartor asked 21/7, 2015 at 18:21

7

When I try to deploy ejd-ear, web-ear on to glassfish server. I added an ejb client dependency in web project. The ejb-ear deploys successfully. But when I try to deploy web-ear, it throws an excep...
Paxton asked 1/7, 2011 at 20:10

3

Solved

I have a method that returns lot of data, should I use @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) for this method. The method perform a JPA query an loads the full content of a t...
Gone asked 5/8, 2009 at 13:59

1

Solved

I'm migrating my application from JBoss 7 to WildFly (v9.0.1) and it is not deployed because of bean transaction management error. Caused by: javax.naming.NamingException: WFLYNAM0062: Failed to ...
Netta asked 23/5, 2018 at 15:14

3

Solved

I want to read environment variables inside persistence.xml file. Idea is that i don't want my database details to be read from properties file as there is a change of getting properties file over...
Facia asked 12/1, 2012 at 14:39

7

We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 30...
Tarshatarshish asked 2/2, 2010 at 14:46

© 2022 - 2024 — McMap. All rights reserved.