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...
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...
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...
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...
Seanseana asked 18/12, 2011 at 6:5
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...
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...
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...
6
Solved
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...
Braun asked 16/4, 2013 at 9:37
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...
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...
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.