Questions tagged [ejb-3.1]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 3.1 programming model.

JSR 318: Enterprise JavaBeans, Version 3.1

Enterprise JavaBeans is an architecture for the development and deployment of component-based business applications. Applications written using the Enterprise JavaBeans architecture are scalable, transactional, and multi-user secure.

The Enterprise JavaBeans 3.0 specification focused on bringing ease-of-use to the EJB API. The purpose of the Enterprise JavaBeans 3.1 specification is to further simplify the EJB architecture by reducing its complexity from the developer's point of view, while also adding new functionality in response to the needs of the community.

The focus will be on the core session bean and message-driven bean component models and their client API. Although the Java Persistence API was developed within EJB 3.0, it will evolve under a separate JSR rather than within EJB 3.1.

1103 questions
0
votes
1 answer

Jboss error on deployment bean

I'm trying to deploy a bean that uses @Interceptros annotation in Jboss. According to documentation I've created beanRefContext.xml and here is Bean code @Stateless @LocalBean @Interceptors(SpringBeanAutowiringInterceptor.class) public class…
0
votes
1 answer

Simple EAR with 1 SSB and 1 supporting jar, won't deploy on JBoss AS 7.1.1

I have a very trivial EJB3 project that I'm trying to deploy on JBoss AS 7.1.1, but am getting the following error at deploy time: 04:04:07,806 INFO [org.jboss.as.repository] (HttpManagementService-threads - 3) JBAS014900: Content added at location…
mindcrime
  • 657
  • 8
  • 23
0
votes
0 answers

HTTP Status 404 when using the servlet annotation as an url

My js code is like this: window.location.href = "servletAnnotation?"+paramString; servletAnnotation is a webservlet annotation. Firefox and Chrome both run successfully. IE shows HTTP Status 404. Why IE can not identify the url? How could I make it…
Stevie Qiao
  • 141
  • 1
  • 3
0
votes
1 answer

EJB 3.1 Stateful Bean behaves like a Singleton Bean

I'm trying to program an EJB 3.1 using Stateful Session bean. I should have understood quite well what an EJB is and the difference between stateful, stateless and singleton. But my stateful bean has a strange behaviour. It behaves as a…
Alessio Fiore
  • 467
  • 1
  • 7
  • 18
0
votes
2 answers

Step by step jboss 7.1 final jndi properties file creation

I have eclipse juno and jboss AS 7.1 final running on my machine and configured it through it (eclipse juno). I hava a simple stateless bean and its interface (in fact is exactly the same example from the book Enterprise Java Beans 3.1 6th Edition).…
Jhonathan Ibanez
  • 89
  • 1
  • 2
  • 10
0
votes
0 answers

ejb invocation in virtual machines

I have a scenario where on one physical machine there are two VMs running. The OS on both of them is GNU/Linux. running uname -a on it gives me the following info : 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux on both VMs A &…
TYS
  • 195
  • 1
  • 5
  • 16
0
votes
2 answers

ejb 3.1 & jsf & jboss 7.1 & eclipse indigo

I have been starting use Eclipse Indigo+JBoss 7.1+MySQL. I am beginner programmer in Java EE. So, I have a problem with tutorial: http://www.youtube.com/watch?v=z55reyPqH44. (it's simple example how using MySql database). So, this project using :…
Wojtek
  • 27
  • 1
  • 2
  • 10
0
votes
1 answer

EJB 3.1 lookup returns null remote object

I am using EJB3 deployed on WAS 8. I am accessing this EJB from my WEB server using Context.lookup. This look up works fine and the entire application works fine for the first time after WAS is restarted. However when I run the application for the…
Toral
  • 101
  • 1
  • 1
  • 12
0
votes
1 answer

Accessing EJB 3.1 from the client using the JNDI on port no 3700 glashfish Server

I am using netbeans IDE 7.1.2 and I have created an EJB 3.1 Stateless Bean and implemented remote as well as local interfaces both and deployed it to the glassfish server 3.2.1 successfully...here is the…
0
votes
2 answers

How to Sync Entity Bean with Database After Trigger Update

PostgreSQL 9.1 Glassfish 3.1.2.2 Firefox 10.0.0.7 Linux I am using JPA to persist entities in PostgreSQL. However, there is one table (named Position) which is populated by triggers and I use an entity of that table which acts as a read only. The…
Ender
  • 1,652
  • 2
  • 25
  • 50
0
votes
2 answers

Error when using Asynchronous annotation in EJB

On invoking an @Asynchronous method in EJB, I see an error getting logged though the method execution works fine. Any suggestion on what is going wrong? EJB 3.1 on WebSphere V8 The interface is : @Local public interface MyService { …
ad-inf
  • 1,520
  • 4
  • 30
  • 53
0
votes
1 answer

Make EJB 3.1 bindings default to interface and not class name

@Singleton public class DummySentenceManager implements SentenceManager { binds to [java:global/appname/mypkg.DummySentenceManager, java:global/appname/mypkg.DummySentenceManager!mypkg.SentenceManager] I would like it to bind…
Alexandre
  • 5,035
  • 7
  • 29
  • 36
0
votes
1 answer

MessageDriven Bean: is MessageDrivenContext#setRollbackOnly() in Java EE 6 still required?

I have a Message Driven Bean (EJB 2.1) which does the following: public void onMessage(javax.jms.Message msg) { try{ ... } catch (JMSException e) { e.printStackTrace(); getMessageDrivenContext().setRollbackOnly(); } I want to convert…
Federico
  • 561
  • 2
  • 11
  • 32
0
votes
1 answer

InitialContext.lookup() parameter in JBoss 7.1

I am new in the world of EJB 3.1 and trying to get some basics with the JBoss Application Server 7.1. At the moment I am stuck at a - really basic - problem. When a bean on the server wants to use another bean I need to use the…
FredFloete
  • 627
  • 2
  • 13
  • 33
0
votes
2 answers

Polymorphic EJB client

I am using EJB 3.1 and jersey for a restapi. I would like to have a SuperResource as below, which is then inherited by the actual rest resources as below. The way I have it now, my @EJB object is null. Does anyone know how to fix…
kasavbere
  • 5,873
  • 14
  • 49
  • 72