10 Replies Latest reply on Oct 5, 2007 12:14 PM by Pete Muir

    Deploying EJB3 EAR File to WebLogic 9.2

    neilac333 Novice

      I would like to deploy an EJB3 application to WebLogic 9.2. All the sample applications I have seen entail deploying Seam POJOs to WL. I would like full EJB3 capability in my application, so I have two questions:

      1) Is this possible, or must I only rely on POJOs?

      2) If it is possible, do I package all the JBoss Micrcontainer jars at the EAR level (rather than WEB-INF/lib in the web level like in all the WAR examples I have seen)? Any special configuration necessary besides application.xml?

      If I have missed a sample that approaches what I need (an EJB3 app on WL 9.2), please let me know where I can find it.

      Thanks.

        • 1. Re: Deploying EJB3 EAR File to WebLogic 9.2
          neilac333 Novice

          I saw in Gavin's answer to another post that Microcontainer configuration is unnecessary in Seam 2.0. Why is that? How will that be accomplished in the new version?

          • 2. Re: Deploying EJB3 EAR File to WebLogic 9.2
            Gavin King Master

            It is automatically bootstrapped by SeamTest.

            • 3. Re: Deploying EJB3 EAR File to WebLogic 9.2
              Pete Muir Master

              WLS 10 is JEE5 compatible however we have yet to get the jee5 example running on (lack of time). For 9.2 we have the JPA example, but not an EJB3 example.

              • 4. Re: Deploying EJB3 EAR File to WebLogic 9.2
                neilac333 Novice

                I understand the time constraints. But just briefly then, can an EJB3 deployment work on WL 9.2? If so and if I use Seam 2.0 when it's ready, where does the microcontainer fit in the deployment?

                • 5. Re: Deploying EJB3 EAR File to WebLogic 9.2
                  Michael Yuan Newbie

                  I do not think anyone has tried JBoss EJB3 (or JBoss Embedded) on WL 9.2 the same way as we did in Tomcat. But you can try ... Thanks.

                  • 6. Re: Deploying EJB3 EAR File to WebLogic 9.2
                    neilac333 Novice

                    Well, then I guess I can try to replicate the Tomcat examples as much as possible and see what happens. Which are the Tomcat samples again? Also, since Tomcat deployments are WAR files, should I deploy a WAR file to WL 9.2 as well? If I deploy an EAR, do I simply model the Tomcat/EJB3 setup in the WAR component of the EAR?

                    • 7. Re: Deploying EJB3 EAR File to WebLogic 9.2
                      neilac333 Novice

                      Perhaps a better way to phrase the question is this:

                      If you were going to give an embedded EJB3 deployment of Seam on WL 9.2 a shot, how would you go about it in terms of deployment type (WAR or EAR) and packaging structure (where the libraries are).

                      • 8. Re: Deploying EJB3 EAR File to WebLogic 9.2
                        Pete Muir Master

                        I would follow the tomcat deployment as close as possible so a war.

                        However before that I would make absolutely sure I wasn't happy with a JPA based deployment. You get everything the same as with EJB3 - just no MDB, less good clustering support. And it's a easier path to a full EJB3 app from there when we get Seam running on the JEE5 Weblogic.

                        • 9. Re: Deploying EJB3 EAR File to WebLogic 9.2
                          neilac333 Novice

                          I was thinking the same thing. Just follow the Tomcat sample and pray it works!

                          Now this may be a semantic thing, but I always planned on a JPA based deployment--whether I went with EJB3 or POJOs. The plan was to use a persistence archive with Hibernate JPA hitting a datasource created on WL 9.2 and making that archive part of the larger deployment package (EAR or WAR).

                          I was hoping to leverage EJB3 (or the reasonable facsimile provided by the embedded container) for management of session beans, transactions, managed persistence contexts, and all the other wondrous joys provided by the EJB3 spec. Not to mention that when and if my deployment environment (controlled by powers far outside my control) gets upgraded to WL 10 and certain EJB3 capability, then refactoring would be trivial.

                          Does that clarify things? What did you mean by "JPA based deployment"? I have found the JPA vs. EJB3 entity beans discussion is always tricky. Also, just to be clear, are you saying I should pursue a POJO-based deployment as the existing WL 9.2 samples have rather than attempt the Tomcat-like EJB3 deployment?

                          • 10. Re: Deploying EJB3 EAR File to WebLogic 9.2
                            Pete Muir Master

                             

                            "neilac333" wrote:
                            I was hoping to leverage EJB3 (or the reasonable facsimile provided by the embedded container) for management of session beans, transactions, managed persistence contexts, and all the other wondrous joys provided by the EJB3 spec.


                            You get most of this with a setup like the JPA example (except session beans, you use JavaBean Seam components instead).

                            Does that clarify things? What did you mean by "JPA based deployment"? I have found the JPA vs. EJB3 entity beans discussion is always tricky. Also, just to be clear, are you saying I should pursue a POJO-based deployment as the existing WL 9.2 samples have rather than attempt the Tomcat-like EJB3 deployment?


                            Yes, that would be my advice.