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

Seam - how to deatach entity

I'm working on Seam project and have following problem - there is an ajax edit form and many interactions with this form affect (mutate) underlying entity and are changed in db immediately, but I wan't those changes persisted in database only when…
Jeriho
  • 7,129
  • 9
  • 41
  • 57
0
votes
1 answer

global transaction websphere 8.5.5.11 ejb

I have an interface : public interface LogBookService extends EntityService { void writelogNewTransaction(LogBookEntity log); } and its implementation…
oumina
  • 31
  • 6
0
votes
0 answers

EJB timer scheduler on Wildfly

I wrote an EJB scheduler that worked a few days ago, now it doesn't work. I tried to delete the contents of the / wildfly / standalone / data / timer-service-data directory but the scheduler does not work. This is the code of my…
0
votes
1 answer

netbeans 7.0 applications client from database entity beans and session beans

In netbeans versions previous 7.0 was possible to write the following, @Stateless(mappedName="Soelprotocol") public class ProtocolFacade implements ProtocolFacadeLocal, ProtocolFacadeRemote { @PersistenceContext(unitName = "SOEL-ejbPU") …
Giorgos
  • 637
  • 3
  • 13
  • 25
0
votes
1 answer

Method @Produces return null when is inject

I have a problem with my method @Produces. When I inject ResteasyWebTarget target in my Api Request class, object target is null. Can someone help me with this. CDI not working in my class... @Qualifier @Retention(RetentionPolicy.RUNTIME) …
Carbomax
  • 23
  • 1
  • 4
0
votes
1 answer

export-ejb bug in glassfish 3.1?

I noticed that OSGI doesn't publish OSGI services when EJB extends an abstract class and is exported as OSGI service (with export-ejb:all). (I use glassfish 3.1) Is anyone familiar with this issue? the manifest in EJB jar is: …
lili
  • 1,866
  • 8
  • 29
  • 50
0
votes
1 answer

Edit a record from a DB table using EJB3?

im quite new to EJB3 and was wondering if it is possible to edit a specific record from a table using EJB3? If so, are there any tutorials and examples on how to do this? Thanks in advance
jonney
  • 4,255
  • 2
  • 16
  • 8
0
votes
1 answer

Timertasks using cron expressions EJB3/JBoss 6

for my EE application, i have to consider clustered timertasks in JBoss 6 Environment. The tasks must be persisted in the database. While application initialization,the tasks must be created and scheduled from these persisted entites. For example, i…
Erhan Bagdemir
  • 5,231
  • 6
  • 34
  • 40
0
votes
2 answers

Is it still beneficial to use EJB3,if no database is required

Haven't used EJB3, but by reading a tutorial, EJB3 looks like mostly for manipulating data in database through JPA (of course, it contains other business logic). Just curious, if no database is quired, is it still beneficial to use EJB3 or it just…
sarahTheButterFly
  • 1,894
  • 3
  • 22
  • 36
0
votes
1 answer

Storing username that last modified database row via EJB3.0 and JPA

I'd like to store username that has last modified table row to as a field in every table. I have following setup: an user logs in, web layer calls some EJB 3.0 beans. Those EJB beans create and modify some JPA entities. Now, I'd like that username…
Juha Syrjälä
  • 33,425
  • 31
  • 131
  • 183
0
votes
1 answer

is it better to have IBM MQ connection using EJB in spring batch processor or at writer?

Need to read a flat-file using spring batch and push success records into IBM MQ using EJB (MDB) hosted in WebSphere server and error records should be written to a flat-file. Is it better practice to have EJB in the processor or in writer ?
0
votes
0 answers

JDK 13 Upgrade Issue

I had a JavaFx project running perfectly on JDK 8. To connect with the database, the client calls remote interface which in turn calls the EJBs deployed on the server. However, after successfully upgrading the JDK to 13, I am getting the below error…
Sirish V
  • 930
  • 2
  • 12
  • 24
0
votes
2 answers

JSF 1.2 on Websphere 7.0.0.9 : backing beans' property not found

I'm working on JSF1.2 + EJB3.0 + Websphere 7.0.0.3. The whole business logic layer and Data layer (EJB 3.0) are tested and work successfully from the beginning. After I integrated JSF1.2, I got these errors when I tried to get some data from…
0
votes
1 answer

ResourceAdapter already set | JBoss 5.2 with Active MQ

We have JBoss 5 integrated with TIBCO Queue and MDB queue listener and its working as expected more over calling stop() and then start() methods in the JBoss JMX console is working fine. Now we replaced TIBCO with ActiveMQ. All functionalities are…
veeras
  • 61
  • 1
  • 4
  • 11
0
votes
1 answer

how to call a method in Stateless EJB during deployment?

How can i tell a application server to call a method in my stateless ejb so that I can print some message during deployment. If I annotate the method with @PostConstruct then it is not working. I also added static block still not working. I dont…
user509755
  • 2,941
  • 10
  • 48
  • 82
1 2 3
99
100