ejb-3.0 Questions

4

Solved

I am trying to call a method when my webapplication starts. The purpose is to kick-off a timer that does some work at defined intervals. how do i call a function helloworld when my jboss 7.1 ...
Birdwell asked 24/3, 2013 at 0:56

2

Solved

In our EJB 3.0 - application, we have an randomly occuring java.lang.NoClassDefFoundError happening. It just happens localy in the IDE. Setup: OS: Windows 7 32 Bit Java JDK: 1.6.0_24 (32 Bit)‎ I...
Juvenility asked 11/3, 2013 at 8:6

2

Solved

I am sending html and images with javamail but for some reason I don't see the images as part of the html, I see them only as an attachment. I don't know why is that. This is how it looks like when...
Jauch asked 10/3, 2011 at 14:1

3

Solved

I have to implement a simple (not clustered) timer for WebLogic and it seems there are two different 'standard' options Timer and Work Manager API (CommonJ) EJB3.0 TimerService Does anyone have...
Cesar asked 7/7, 2011 at 7:12

5

Solved

Starting a new project using EJB 3 / JPA, mainly stateless session beans and batch jobs. I've used JUnit in the past on standard Java webapps and it seemed to work pretty well. In EJB2 unit t...
Dipsomaniac asked 21/3, 2010 at 2:26

2

Solved

A quote from the EJB specification: If the bean method encounters a system exception or error, it should simply propagate the error from the bean method to the container (i.e., the bean method...
Outspeak asked 18/1, 2013 at 22:1

5

Solved

Is it possible to "self inject" an EJB in order to call local methods as bean methods? There are some cases where this could be favorable, for example if container managed transactions are used and...
Krebs asked 11/3, 2009 at 8:0

2

Solved

Im facing an issue how to correctly package my enterprise (EAR) application with simple WAR and EJB3 module for JBoss7 application server. The thing is, that EJB module is using XML-RPC library (fr...
Wortman asked 16/11, 2011 at 17:39

1

I have an existing project that I am in need of configuring different. This needs to happen without major code changes. I am actually hoping I could somehow do this only with configuration. I have ...
Hap asked 22/11, 2012 at 11:41

3

Solved

What would you suggest as a good and practical but simple pattern for a solution with: HTML + JSP (as a view/presentation) Servlets (controller, request, session-handling) EJB (persistence, busin...
Jaclyn asked 3/6, 2010 at 22:0

1

Solved

Since Java EE 5 does not have CDI, how does DI work in here? Can an EJB be injected with @EJB in a class that is a non-EJB? Can an EntityManager be injected with @PersistenceContext in a class th...
Crary asked 23/11, 2012 at 13:47

3

Solved

May be the best way is doing it manually. But in a large project you need some tool to assist you. It was the idea that led me to search a tool. Are there any EJB migration tools available for mig...
Sanalda asked 12/4, 2012 at 9:21

3

Solved

EDIT: Thanks everybody for your answers, but the problem was with my data source configuration, which was actually in auto-commit mode. See my answer below for details. Both the Javadoc of the Ent...
Gannon asked 18/11, 2012 at 14:27

3

Solved

I created a custom converter for jsf. The getAsObject() works perfect but the getAsString() is returning an exception. I am not really sure where the problem is, and I have tried converting the obj...
Jolley asked 6/11, 2012 at 4:44

3

Solved

I am doing a small research on Unit Testing of EJB 3.1. At the end my goal is to produce a easy to use solution for Unit Testing EJB 3.1. I do not have much knowledge with big EJB implementations...
Deplume asked 14/10, 2011 at 9:32

1

Solved

I'm using netbeans and generate entity class from database. All of my merge calls to insert and update entities are working perfectly, but when I try to remove an entity, it doesn't delete it from ...
Techy asked 1/10, 2012 at 23:3

0

I have an EJB 3.0 based applicattion deployed on JBoss 5.1. The global value for transaction timeout configured at ${JBOSS_HOME}/server/default/deploy/transaction-jboss-beans.xml on property transa...
Seigler asked 26/9, 2012 at 9:27

3

I knew stateful beans maintain conversational session between different instance method call,but stateless will not.My question,assume I have a stateless bean implementation like below import java...
Damaris asked 31/1, 2012 at 9:3

2

Solved

I have a JSF application that, in a managed bean, calls business logic from a remote stateful session bean (EJB 3.0). Right now there is a HttpSessionListener that calls a @Remove annotated method...
Zwart asked 4/9, 2012 at 9:19

1

I just read the very nice explanation of the various managed beans and their relations on Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean and as i face ...
Finley asked 2/9, 2012 at 11:8

1

Solved

I'm using EJB 3.0 with JBoss AS 7.1.1 Final. I am getting this error when I try to connect my client to the server: Aug 15, 2012 12:05:00 PM org.jboss.ejb.client.EJBClient <clinit> INFO: JB...
Serra asked 15/8, 2012 at 18:56

1

Solved

If we have code in the field that has a method that another product calls, and gets a list of objects back. And we need to make changes to the code to make it more flexible in populating the list t...
Knew asked 25/7, 2012 at 23:2

2

Solved

I just read the Transactions Chapter (10) of "Mastering EJB 3.0" and now I'm confused about nested transactions. The book says "The EJB-defined transaction manager does not support nested tra...
Dialectician asked 30/5, 2012 at 13:59

1

Solved

I happen to find examples that uses this construct though I am not sure what can I get from this? Does it means that all select statements in a stateless EJB should follow this? @Stateless public...
Omnipresent asked 29/5, 2012 at 9:10

4

Solved

I've been having problems trying to call an EJB's method from a Java Application Client. Here is the code. EJB Remote Interface package com.test; import javax.ejb.Remote; @Remote public interfa...
Canaigre asked 18/1, 2010 at 17:33

© 2022 - 2024 — McMap. All rights reserved.