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
1 answer

Container Managed Transaction - Not marked for roll back

Bank.java @Stateless @Local public class Bank implements IBank { @EJB IConfigBean iConfigBean; @EJB IDbs iDBS; @EJB IPosb iPosb; @Override public void doTransaction() { System.out.println("--Bank…
Rawoof
  • 13
  • 5
0
votes
1 answer

Thorntail - WildFly Elytron Security remote connection getting authentication failed: none of the mechanisms presented by the server are supported

I have configured WildFly Elytron Security on thorntail application using project-defaults.yml. However the application is failing to invoke or connect to the remote secured EJB's Here is the yaml configuration for Elytron - Am not sure if this is…
Dev Fh
  • 586
  • 7
  • 18
0
votes
0 answers

How to Get Spring Beans using initContext.lookup() of EJB

I have a requirement where in there are two maven modules as below. Portal 1. EJBModule 2. Framework 3. UIModule Whenever I make a call to @RestController in UIModule it invokes a Service in Framework which uses lookup as below and gets the EJB…
Prasanna
  • 81
  • 1
  • 13
0
votes
1 answer

Concurrent modification should not be logged as ERROR?

We have an application running on a Wildfly 17. I have a scenario, which occurs occasionally, in which two background threads are accessing the same entity: Thread A deletes the entity (for good reason) Thread B is working on slightly older data…
Darkwyng
  • 130
  • 1
  • 7
0
votes
1 answer

@EJB annotation

@EJB SomeEJBLocal audit ; I am wondering if this Annotation @EJB works on all App Servers ? (Assuming that the App Servers do Implement J2EE spec) or does it work only on GlassFish AppServer ?
BlueSky
  • 1,423
  • 3
  • 12
  • 9
0
votes
1 answer

JBOSS EAP 7.1 : NoSuchMethodError: org.jboss.as.ejb3.logging.EjbLogger.tracef(Ljava/lang/String;I)V

so im using the getRollBackOnly method located under EjbComponent class that implements org.jboss.logging.BasicLogger interface : public boolean getRollbackOnly() throws IllegalStateException { if (isBeanManagedTransaction()) throw…
aabc
  • 9
  • 5
0
votes
1 answer

Is there any way of interrupting a stateful session bean?

This question is somewhat related to Handling a timeout in EJB3 without using threads. Background: I have an example of an operation that may lock up while it's running, and I have to be able to handle that eventuality and kill the operation if so…
mikek
  • 1,555
  • 17
  • 30
0
votes
1 answer

calling ejb3.0 in action class. application server : websphere7.0 and IDE: RAD7.5

I have written one stateless session bean and deployed in the server. when i tried to access that particular ejb, it's throwing error. Code sample: TestServiceBeanRemote : Remore bean TestServiceBean : Actual bean Context context = new…
Sagar
  • 1
  • 1
0
votes
1 answer

getConnection null in new transaction

I am using Weblogic 11, ejb3.0 I have code which is doing lookup to another deployment in my container remotely. everything work fine and I managed to reach to the another deployment. the method which working in the remote deployment open new…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

Fetching and Processing Entity Beans in different EJBs

I develop and application that uses JPA and stateless EJBs. Basically, the application includes EJBs that are responsible for implementing business cases and those responsible for fetching and removing data from the underlying database.…
0
votes
1 answer

EJB3.0 How to use MDB

Hey, I am new to coding in j2ee. My question is regarding MDB. I have already set up my weblogic 11g server. and the queue has been set up. I have written the client code which is a java se client that sends a msg to the queue. import…
Ng Zhong Qin
  • 1,211
  • 2
  • 15
  • 28
0
votes
2 answers

Can't Lookup Weblogic11

I am using Weblogic 11g, EJB3.0. I am trying to do simple look up from one deployment to another in the same machine. But no success. This is the code: In one deployment this is the target class: @CallByReference @Stateless (mappedName =…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

Injection inside Quartz Job

I am using weblogic 11, ejb3.0 I am trying to do Ejb injection inside a class which implements Job (org.quartz.job) No success. So i Thought to make my job class as a stateless bean. like that: @Stateless(mappedName = "StartSyncJob") @Local( {…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

Singleton Service in weblogic for cluster timer

I am using Weblogic 11. Ejb3.0 I am trying to set up a timer in a cluster environment. I understood from the net that it possible to do via the Singleton service of weblogic. anyone could show me some concrete implementation how to do it and how to…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
0 answers

How can I get the port in my thorntail application from a java class?

How could I get from a java class the port where my application? For example, with JBoss in standalone.xml I used it is: standalone.xml
Carbomax
  • 23
  • 1
  • 4
1 2 3
99
100