facebook

EJB3 for Tomcat not so simple?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #261743 Reply

    mmca
    Member

    Hi guys

    I have developed many small EJB 3 applications using MyEclipse + JBoss combination (thanks laliluna and example on this site). In my entity beans I use the line


    @jboss
    .persistence table-name = “…”

    And I add the standard in the project for xdoclet with JBoss. This obviously allows setting the JBoss version, where the datasource and mapping is etc, as well as where to put the xml files, i.e. usually META-INF.

    However I now have to develop for Tomcat and there doesn’t appear to be anywhere near as many tutorials online. Also there’s no tomcat.persistence option in the javadoc for xdoclet, nor is tomcat an option when adding the details for xdoclet, though there are options for jboss and weblogic.

    Can anyone let me know where there’s a good tutorial online for tomcat, myeclipse and xdoclet and whether it can be done in a similar way to JBoss development?

    Thanks for any help
    Michael.

    #261774 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Michael,
    Tomcat isn’t a full JEE container, it doesn’t support the full EJB3 specification. That being said, if all you are really using is JPA (the persistence stuff) then you can deploy Toplink or Hibernate to Tomcat and utilize JPA in your POJOs on Tomcat. But again if you want full EJB support, you’ll need to be using Sun App Server, Glassfish or JBoss 5 (I think 5 is their JEE 5.0 compliant app server).

    #261782 Reply

    mmca
    Member

    Thanks for the explanation and quick reply.

    Cheers
    Michael.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: EJB3 for Tomcat not so simple?

You must be logged in to post in the forum log in