• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Websphere to tomcat  RSS feed

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are migrating the Enterprise application which includes  EJB3
Session and entity bean and web module struts 1.2.
We are migrating this application into tomcat. So are planning to use spring .So I want to what will be it's equivalent in spring

Session
Stateless
Stastefull
Entity beam
 
Saloon Keeper
Posts: 2504
321
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Spring is not a requirement, it might be easier to migrate to TomEE.  The TomEE+ version includes support for EJB, CDI, JPA, JMS, JTA, JSF, JAX-RS, etc.
 
sat kadam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Organisation has decided to use tomcat only because it is freeware.
legacy application is developed using EJB3 and Struts 2 and its deployed in Websphere. Now we are migrating this application into tomcat 8.

Q1) What will be the equivalent stateless and state full beans in spring?
Q2) What will be equivalent of entity beans in spring?

 
Ron McLeod
Saloon Keeper
Posts: 2504
321
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

sat kadam wrote:Organisation has decided to use tomcat only because it is freeware.
legacy application is developed using EJB3 and Struts 2 and its deployed in Websphere. Now we are migrating this application into tomcat 8.


I'm assuming you didn't look the links that I provided.

TomEE is Apache Tomcat 8 teamed with other Apache projects including OpenEJB, OpenJPA, ActiveMQ, CXF, etc. to provide a complete Java EE 7 platform.

I would imagine that migrating from Websphere to TomEE (both Java EE platforms) would be less work than moving to Spring -- especially if you are not already familiar with Spring.
 
Saloon Keeper
Posts: 20635
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd need more than just Spring. The EJB code would only change slightly for Entity EJBs - providing you used JPA, since JPA is a subset of the EJB3 spec. but you'd have to include a JPA infrastructure such as Apache OpenJPA or Hibernate, since Tomcat doesn't have one built in.

Also note that Tomcat doesn't support EARs, only WARs. There's no direct equivalent for Session EJBs in Tomcat and so forth. And definitely no support for remote EJBs.

TomEE attempts to supply the parts of the JEE spec that basic Tomcat lacks, but I've never used it so you have to ask Ron about how well it does that. I do design webapps that are functionally equivalent to what you're describing that run under basic Tomcat, but then I'm experienced in using the alternatives thanks to living in a town where everyone's too cheap to pay for proper application server support.

Speaking of cheap management, if price is the primary consideration, you might also look at JBoss/Wildfly from Red Hat. They do supply a Community Edition for free - Red Hat's success comes from people who pay for support, not for the software. Unlike TomEE, it's not Tomcat with the missing JEE components bolted on, it's designed from the ground up as a full-stack JEE server and has been around for about as long as Tomcat so it's well-documented and has a large support community. In fact, for many years, it had a copy of Tomcat embedded in it to handle the JSP and servlet parts of J2EE.
 
sat kadam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
We can't use TOMEE or any other application server. They want only TOMCAT.

1) Existing code using S

  Struts1.2->EJB2.1->Hibernate
  Struts1.2->Spring Beans->Hibernate

1) I need a steps to convert ejb2.1 into Spring beans
2) How to convert ejb-jar.xml into Equivalent in spring


 
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you get any solution to migrate your EJB2 to Spring Boot? I am looking to do the same and do not have much knowledge on Spring. Please help
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!