cubanacan
cubanacan

Reputation: 654

The simplest way to convert EJB 2.0 project to EJB 3.0

What is the simplest way to convert EJB 2.0 (WebLogic 8.1) project to EJB 3.0 (OAS or WebLogic etc)?
I found just this article "Converting an EJB 2.0 Entity Bean to EJB 3.0", which could automate this process, but forced to do too much manual manipulations.

Upvotes: 3

Views: 18462

Answers (2)

Rob Andren
Rob Andren

Reputation: 88

Use Intellij's "Apply EJB 3.0 Style" tool. It automates a lot of the painful steps, especially replacing ejb-jar.xml configurations with annotations. Migration can be applied incrementally (you select the ejb's) or all at once. It does other steps for you as well; details here:

http://www.jetbrains.com/idea/webhelp/migrating-to-ejb-3-0.html

I found this to be immensely helpful and worth the price of an Intellij license all by itself for the number of hours it saved me. I did not find anything comparable in either Eclipse or Netbeans.

An old, but helpful, additional resource: http://www.javaworld.com/javaworld/jw-08-2006/jw-0814-ejb.html?page=1

Upvotes: 3

Pascal Thivent
Pascal Thivent

Reputation: 570295

IMO, you can't really convert an EJB 2.1 project to an EJB 3.x project. You can however migrate and this is a project by itself. Some more resources:

Upvotes: 3

Related Questions