Questions tagged [ejb-3.0]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 3.0 programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 3.0 specification, use the [JPA] tag.

JSR 220: Enterprise JavaBeans 3.0

The Enterprise JavaBeans architecture is a component architecture for the development and deployment of component-based business applications.

The purpose of Enterprise JavaBeans (EJB) 3.0 is to improve the EJB architecture by reducing its complexity from the developer's point of view.

The goal of EJB 3.0 is to target ease of development, the main theme of the Java EE 5 platform release. EJB 3.0 is a major simplification over the APIs defined by the EJB 2.1 and earlier specifications. The simplified EJB 3.0 API allows developers to program EJB components as ordinary Java objects with ordinary Java business interfaces rather than as heavy weight components. Both component and client code are simplified, and the same tasks can be accomplished in a simpler way, with fewer lines of code. Because it is much simpler, EJB 3.0 is also much faster to learn to use than EJB 2.1.

2345 questions
0
votes
0 answers

CallableStatement never ends when it is executed for first time

I am currently working with ejb3, Java 1.8, jboss and oracle project. I am having a issue with CallableStatement. I have a procedure that is called when a CSV file is processed. When the procedure it called for the first time most of the time it…
0
votes
0 answers

JBAS011469: Transaction is required to perform this operation in Stateless bean

I have a problem with some old EJB app. In this app, I have a bean named SqsMessageManager which is a @Singleton bean. In the @Postconstruct method, there is an SQS JMS message listener. When a message arrives, the onMessage is executed (this…
Vape
  • 121
  • 2
  • 11
0
votes
4 answers

EJB timer performance

I am trying to decide if use a java-ee timer in my application or not. The server I am using is Weblogic 10.3.2 The need is: After one hour of a call to an async webservice from an EJB, if the async callback method has not been called it is needed…
Pau
  • 803
  • 1
  • 6
  • 12
0
votes
2 answers

@MessageDriven doesn't work in JBoss AS 5

The code as given below throws a javax.naming.NameNotFoundException. I think that it might be some kind of problem with JBoss AS 5. package web; import java.util.Properties; import javax.jms.Queue; import javax.jms.QueueConnection; import…
jack
  • 1
0
votes
3 answers

How to use EJB3 in Webservice

I created a EJB project in eclipse id, the project is to retrieve data from a database and write data to the database. I did that database handling part using JPA. Now I want to convert this to a web service. I googled for two days but every guide…
Isuru
  • 79
  • 1
  • 3
  • 9
0
votes
0 answers

Merging EJB project into Spring boot

We have a SOAP based service that is built with EJB stack and it runs on jboss EAP 7.1. We need to convert and merge with ongoing project (This new project spring boot app). As initial step, we merged the code with new app, got rid of compilation…
alex
  • 21
  • 1
  • 5
0
votes
2 answers

How to configure startup sequence of JBoss services (JmsActivation)

When I deploy my application on JBoss 5 the EJBs are created before the QueueService is started. Creation of Message Driven beans now fails miserably because the queues are not yet available: 17:11:29,151 INFO [EJBContainer] STARTED EJB:…
Kees de Kooter
  • 7,078
  • 5
  • 38
  • 45
0
votes
1 answer

EJB 3.0 webservice in weblogic 10.3.3.4

I am trying to create a EJB 3.0 session bean with methods exposed as webservice.I am using Eclipse and my weblogic server is integreated and is there a tutorial of sorts to create a sample webservice?
Harish
  • 3,343
  • 15
  • 54
  • 75
0
votes
1 answer

Advice on converting from EJB 1.1 to EJB 3.0

I'm in the middle of converting a 10-year-old Java EE application to more modern standards. The next phase of this effort involves replacing my EJB 1.1 code with EJB 3.0 code. I've done a lot of reading up on EJB 3.0. However, there seems to be…
Steve Ferguson
  • 792
  • 3
  • 10
  • 21
0
votes
1 answer

Unit test for EJB3

I would like to setup unit and integration for ejb3 (entity/jpa). I'm using Eclipse, Maven, and Jonas server. It seems that easybeans is what I need for integration test. Where can I find some sample project? Thanks,
ruddy32
  • 21
  • 7
0
votes
1 answer

How to get EJB object in servlet?

I have created simple EJB and i am trying to use in my sample servlet, i am using TomEE server and eclips as IDE following is my code HelloBeanInterface.java package com.ccc.demo; public interface HelloBeanInterface { public String…
Jignesh Ansodariya
  • 12,583
  • 24
  • 81
  • 113
0
votes
2 answers

EJB3 - handling RollBackExceptions

I have an EJB3 application which consists of some EJB's for accessing a DB, and exposed via a Session Bean as a web service. Now there are two things I need to find out: 1) Is there any way I can stop SQL exceptions from causing the web service from…
Anthony Roy
  • 1,835
  • 3
  • 15
  • 16
0
votes
1 answer

EJBConfigurationException IBM websphere 9.0.11

so when i deployed my application in whebersphere 9.0.11 i have got this exception : is there any config that i need to add in ejb-jar.xml com.ibm.ejs.container.ContainerException: Bean class xxxxxxxxxxx could not be found or loaded; nested…
aabc
  • 9
  • 5
0
votes
1 answer

guidance on using ejb 3 with Datasource connection and lots of methods

I have to code an Stateless EJB3 that uses callable statements, and builds a XML structure. I'm getting a DataSource Connection from JNDI; ctx.lookup('DS').getConnection(); my ejb has lots of methods(that build each part of the XML), and i found…
0
votes
0 answers

Security tool(Fortify) is complaining about @RequestScoped bean being stateful

My understanding of @RequestScoped bean is that CDI creates a new instance for each request. We have a @Stateless bean and have @RequestScoped injected into…
rohith
  • 733
  • 4
  • 10
  • 24