ejb-3.0 Questions
3
Solved
I am trying to learn Spring Framework, before that I used to create application with EJBs
[Web services]->[Business Layer]->[DAO Layer] | [Database]
in following way
WebServices: Restful ...
Spicebush asked 29/10, 2015 at 13:26
3
Solved
I need to maintain a simple counter that is unique within the application, for all users and all nodes in a clustered environment.
I thought about using the singleton session bean annotation javax....
Deth asked 7/4, 2015 at 16:25
1
i wrote a TimerHelper class which can receive Callables from other classes and tries to execute them. If an exception occurs, it waits some time and tries again. So other classes can export tasks t...
Sidle asked 5/8, 2015 at 13:17
7
Solved
EJB achieved many improvements in 3.x versions, Spring is also commonly used and version 3 is a good alternative.
There are many articles on web, but no exact comparison about ejb3x versus spring3...
Supine asked 16/8, 2011 at 9:30
1
Solved
I was reading
EJB Transaction boundary and Transaction boundary
Lets concentrate on RequiresNew Attribute.
Here is the modified diagram from the link
So let say method-B is annotated with Req...
Chitin asked 4/6, 2015 at 6:15
4
Solved
Is there a way where we can use batch inserts using JPA EntityManager. I know there is no direct way to achieve this but there must be some way to achieve this mechanism.
Actually, for every inser...
Maniple asked 14/5, 2012 at 13:21
1
Solved
I am learning about EJB's, so far I have read that multi-threading is not allowed in EJB'S, because it is the container who should care about thread-safety and let the developer only focus in the b...
Ishmaelite asked 3/5, 2015 at 11:51
4
Solved
I am having a problem getting a JDBC connection in an EJB SessionBean. The error is:
org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested ...
2
i am trying to create a basic hibernate entity POJO using latest hibernate and i have added the necesary jar files i downloaded from hibernate website.
the problem is when i add the line @Table(nam...
3
Solved
I get a strange error when Im trying to unit test a Java class dealing with JSF components (javax.faces.model.SelectItem). The error I get is this:
java.lang.ClassFormatError: Absent Code attribut...
Genip asked 30/9, 2010 at 11:59
2
Solved
I got my work rejected at uni because of using @Local and @Stateless on one EJB. It is a helper bean to validate/fix passed objects.
I think it is completely legal to annotate my ejb's with both lo...
Monopode asked 26/1, 2015 at 13:45
1
Solved
With JBoss/Wildfly one is able to use the @TransactionTimeout proprietary annotation and define a transaction timeout for a specific Session Bean.
What is the equivalent way of doing it using IBM ...
Solemn asked 22/1, 2015 at 17:21
1
Solved
I am using EcllipseLink 2.5 in my project.
Default value for @TransactionAttribute, is required.
If we define SessionBean as TransactionManagementType CONTAINER, do we still need to add @Transactio...
Mycah asked 19/12, 2014 at 19:50
4
Solved
I have gone through various books on stateful and stateless session bean and how they work. I want to know the real usage of these ejbs and advantages over using plain java classes. Basically when ...
Mutilate asked 27/8, 2010 at 18:58
1
Solved
Can @Stateless class have different modifiers than public? In documentation I have only found constraints of constructor/methods visibility, but nothing interesting about class level access.
Anchylose asked 16/9, 2014 at 11:30
6
The scenario
You have developed a webapp using EJBs version 3.
The system is deployed, delivered and is used by the customer.
If you would have to rewrite the system from scratch, would you use...
Rakehell asked 19/9, 2008 at 20:54
1
I have an EJB3 project (EAR packaging of JARs, no WARs) that I'm trying to integrate Flyway (database migrations) into.
I've tried a couple of options to create a hook where I can run code before ...
3
Solved
does anybody know if it is possible to iteratively replace EJB2.1 beans with EJB3 beans in Java EE application?
That is: at one time remove one 2.1 bean from the code and add corresponding EJB3 b...
Idolla asked 18/5, 2011 at 21:36
5
What is EJB, and why we should use it? Please explain in simple language. Thank you.
2
Solved
I want to try EJB and I am studying the theory behind EJB 3.0. I know that in EJB 3.0 you don't have to use deployment descriptor but you can use annotations, and also you don't have to write Home ...
3
Solved
I am reading the EJB 3 in Action book and I have the following question :
Is the POJO's you write and annotate with @Entity and so on also a EJB entity type?
I don't understand what JPA has...
Sempach asked 21/1, 2012 at 11:48
2
Solved
I've made a mavenized web application with spring, spring security... Now, I want to add ejb module for database access, I was looking on the internet but I didn't find something clear because it's...
Brominate asked 11/4, 2014 at 9:34
4
Solved
Since Spring is able to use transactions just like EJB. For me, Spring is able to replace the requirement of using EJB. Can anyone tell me what are the extra advantages of using EJB?
1
Solved
This a real simple issue I guess but I am not able to figure why it happens so though.
I have an implementation of an EJB timer which uses @Singleton annotation i.e. a singleton timer.
I have set ...
Shipboard asked 20/2, 2014 at 1:16
2
Solved
Currently i am calling EJB 3 Session Beans from JSF 2. However, i am not sure if i should be passing JSF managed beans into EJB?
Assuming that whatever on the form (and thus the backing bean) was ...
© 2022 - 2024 — McMap. All rights reserved.