Results 1 to 2 of 2

Thread: Any thought about enabling existing EJB deployment in Spring

  1. #1
    Join Date
    May 2005
    Posts
    1

    Default Any thought about enabling existing EJB deployment in Spring

    Anybody thought about enable Spring to deploy an existing EJB-JAR? I didn't mean to access EJB component in the EJB way, it will become a common Spring component.
    Let's make things simple, say we just want to cohost SLSB. Many biz logics are wrapped through SLSB these days. So the quickest way to adopt Spring is to reuse the biz logic in the EJB component, say the EJBContext impl class can be reimpled on Spring. EJBHome is trivial and not needed, if EJB is no longer access as EJB.

    The main task will be to parse the EJB DD and convert to Spring DD, and generate necessary interceptors based on Aspect? And provide a EJBContext impl class....

    Any other thoughts? I think this makes sense. The idea is to enable deploying EJBs purely in a Spring Container, while if some customers demand proprietary Container, it can still be reused in other AppServers.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    To do your proposed solution, Spring has to become an application server by itself. The EJB specs contain a lot of subtilities - think of all the xml files associated, the EAR structure and the restriction you have inside them.
    It's a lot easier to externalize the logic from the SLSB in separate POJOs and then simply reuse these ("expert one-on-one" recommends the same thing).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. JBoss 3.2.6 & Spring Deployment issues
    By difranr in forum Container
    Replies: 2
    Last Post: Sep 18th, 2005, 10:08 PM
  3. Replies: 5
    Last Post: Apr 16th, 2005, 03:43 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 16
    Last Post: Nov 19th, 2004, 09:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •