Questions tagged [ejb-2.x]

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

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

242 questions
8
votes
3 answers

Can EJB2 and EJB3 coexists in one application?

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 bean that implements the same behavior without…
stalker
  • 1,250
  • 1
  • 12
  • 13
8
votes
2 answers

Jboss 7.1 ejb 2.1 custom transaction timeout configuration

I'm currently trying to upgrade my web application from jboss 5.1 to jboss 7.1.1.Final In my jboss.xml I have configured some custom ejb timeouts like the following: MSServiceEJB
mobile
  • 135
  • 1
  • 10
6
votes
2 answers

Mixing EJB 2.x BMP entity beans with Hibernate 3.x

I have a large application that uses EJB 2.x entity beans (BMP). This is well-known to be a horrible persistence strategy (I can elaborate if necessary). I'd like to start migrating this application to use a much more expressive, transparent, and…
Andrew Swan
  • 12,737
  • 19
  • 64
  • 97
6
votes
3 answers

RAD not adding an EAR project to a WAS instance

In my RAD workspace, I have an EAR project. Now I have a WAS 6.1 instance which i created from inside RAD. When I right click the WAS 6.1 instance and do 'Add Remove projects' and select the EAR, I get error: Cannot add an EAR project to the…
Victor
  • 15,091
  • 64
  • 201
  • 364
5
votes
3 answers

Are there any EJB migration tools available for migrating EJB 2.1 toEJB 3.x

May be the best way is doing it manually. But in a large project you need some tool to assist you. It was the idea that led me to search a tool. Are there any EJB migration tools available for migrating EJB 2.0 to 3.x.
Kayser
  • 6,116
  • 17
  • 49
  • 86
4
votes
2 answers

How do I migrate ejb2 stateless session beans to ejb3 piecemeal?

The EJB3 spec indicates that EJB2 and EJB3 can co-exist in a single application. I wish to migrate my EJB2 stateless session beans to EJB3 stateless session beans. This question does not relate to JPA at all (that is a separate piece of work to be…
Travis Dixon
  • 915
  • 2
  • 8
  • 10
4
votes
3 answers

What is the EJB 3.0 version of method ejbCreate

I would like to migrate some old EJB 2.1 code to EJB 3.0, but there is some handling of configuration errors in the ejbCreate method. Is there an EJB 3 version of that method? Edit: In EJB 2.x ejbCreate could throw a CreateException. Based on the…
Stefan
  • 817
  • 3
  • 13
  • 28
4
votes
2 answers

EJB specifications and Java versions - backwards compatibility

This is my understanding of relationship between the EJB spec and Java versions EJB 2.0 was part of J2EE 1.3 platform, which was on top J2SE 1.3 or JDK 1.3.x EJB 2.1 was part of J2EE 1.4 platform, which was on top of J2SE 1.4 or JDK 1.4.x The…
AJM
  • 30,452
  • 47
  • 147
  • 238
4
votes
1 answer

Testing EJB2.1 to EJB3 migration

We would like to migrate an application written using EJB2.1 beans (both Entity and Sessions beans) to EJB3 to improve on maintanance and use new features in the EJB3 spec. How would we do the migration and give the users the guarantee (if any) that…
n002213f
  • 7,408
  • 13
  • 64
  • 100
4
votes
3 answers

Concept of stub and Skeleton in EJB 2.X

As per my knowledge, in the EJB 2.x, the client uses the home interface to ask for a reference to the component interface and calls Enterprise java bean’s business method using that reference. But the concept of stub and skeleton are not clear to…
Bacteria
  • 7,810
  • 10
  • 47
  • 61
3
votes
2 answers

How to configure EJB lookup in clusterd websphere environment

I'm developing a EJB client. The EJB (2.1) server in deployed as Websphere 6.0 cluster. I'm doing the jndi lookup after acquirement of the InitialContent object for specific ip address using the following code: Hashtable env = new…
Alon Aizenberg
  • 1,486
  • 2
  • 18
  • 20
3
votes
1 answer

Where is the JNDI name in my code?

I have created a EJB2.0 using Eclipse 3.7 IDE, and deployed it in JBoss 5 application server (my bean name is product). I am doing normal context lookup (and other stuff to call ejb), and I am able to call EJB successfully. Now my question is what…
Rohit Elayathu
  • 611
  • 6
  • 12
  • 26
3
votes
1 answer

EJB 2.0 VS EJB 3.0

In EJB 2.0 we have Home interface, and Component interface. But in EJB 3.0 we don't have those interfaces(instead we have annotations). My doubt is, if we don't have those interface, then who is doing their job in EJB 3.0, and how the implementation…
Nageswaran
  • 6,463
  • 12
  • 48
  • 66
3
votes
2 answers

Parent and child classes implementing a common interface, repeatedly

Today i found in my codes what appears to be a child class implementing an interface that the parent class is already inheriting. May i know if this has any adverse side effects or intentions, as i am working on to remove it from the child class as…
Oh Chin Boon
  • 21,393
  • 45
  • 133
  • 208
3
votes
3 answers

What does "Lock released while waiting:" mean in a Java thread dump?

In this thread dump: INFO | jvm 3 | 2011/06/08 13:36:12 | "ExecuteThread: '38' for queue: 'default'" id=55 idx=0x78 tid=5316 prio=5 alive, in native, waiting, daemon INFO | jvm 3 | 2011/06/08 13:36:12 | -- Waiting for notification on:…
Joe Casadonte
  • 13,273
  • 9
  • 41
  • 47
1
2 3
16 17