14 Replies Latest reply on Mar 10, 2011 4:09 AM by jaikiran

    how to run a web profile on JBoss AS 6?

    infinity2heaven

      I'm working with the default maven archetype for JEE 6 sample app (member registration). How do I deploy this as a web profile?

       

      I see that the server section has a new deploy folder, "jbossweb-standalone." Any pointers on this?

        • 1. how to run a web profile on JBoss AS 6?
          jaikiran

          The "jbossweb-standalone" is just for JSP/servlets. You can use the "default" profile which has the necessary services for Java EE6 web profile.

          • 2. how to run a web profile on JBoss AS 6?
            infinity2heaven

            I installed on default profile earlier to this post but it starts up ALL services like:

            1) 3 initialized three jsf configs (mojara 1.2, 2.0, myfaces 2)

            2) jboss stax cxf

            3) hornetmq

            4) journalStoreManager

            5) RMI Server

             

            The point of using Web Profile is to eliminate these services entirely. I heard glassfish 3 can start/stop services like osgi bundles. How do you do that in JBoss 6?

            • 3. how to run a web profile on JBoss AS 6?
              nickarls

              I think AS 7 will be better for those services-on-demand situation. If you'd like to slim down the default profile it can be done but you would have to disable the services manually.

              • 4. how to run a web profile on JBoss AS 6?
                infinity2heaven

                If you can't run a web profile or disable services, I don't think I would like to continue with JBoss AS 6. First, it's been delayed by a year, and second, it sounds like JBoss 3 & 4 with bloated, unwanted services, which we have avoided in the past and stuck to tomcat.

                 

                We run tomcat in production and I'm working on a JEE 6 project while evaluating compliant servers. So far, the experience has not been good on JBoss and after what you've mentioned, I'm going to start looking into Glassfish more seriously. Thanks.

                • 5. how to run a web profile on JBoss AS 6?
                  dimitris

                  How JBoss AS 6 was delayed by a year? Do you know of many other EE6 containers, except the reference implementation?

                   

                  If you run tomcat in production and you are fine with that, then the jbossweb-standalone profile is closer to your needs.

                  • 6. how to run a web profile on JBoss AS 6?
                    nickarls

                    If you are that serious about performance, you would have to configure, slim down and tune *any* application server.

                    • 7. how to run a web profile on JBoss AS 6?
                      infinity2heaven

                      I understand performance tuning and configuring for clustering etc., (both of which we don't need) but by marketing a product as "modular" and "leaner" is deceptive when it's the same old. There's a reason people use Tomcat, still (for enterprise applications too). I still can't believe that Web Profile is nothing but a marketing gimmick. Take a look at the JBoss AS reference guide, there's no mention of it.

                      • 8. how to run a web profile on JBoss AS 6?
                        jaikiran

                        Pritam M wrote:

                         

                        I still can't believe that Web Profile is nothing but a marketing gimmick.

                        Just to be clear - what's your definition of web-profile?

                        • 9. Re: how to run a web profile on JBoss AS 6?
                          infinity2heaven

                          I deployed the same war on glassfish web-profile-edition without issues and without any unwanted services that come with the full JEE stack. Further, I could stop some services that I didn't need even on the web profile with the updatetool. All these findings were in the last 1 day of reading the glassfish docs. I'm not an app server expert but this is what I expect from a modular JEE 6 server. My last experience with JBoss has been with 4.2, so looking at 6 -- and I could be totally wrong -- it doesn't seem like it's modular and I can't stop unwanted services without going through a reference manual, which is missing in the first place (web manual isn't sufficient).

                           

                          If you have suggestions if I'm missing something here, I'd greatly appreciate.

                          • 10. Re: how to run a web profile on JBoss AS 6?
                            jaikiran

                            Pritam M wrote:

                             

                            I deployed the same war on glassfish web-profile-edition without issues and without any unwanted services ...

                             

                            If you have suggestions if I'm missing something here, I'd greatly appreciate.

                            You still haven't told us what services you want. Is it just jsp and servlets? We can provide help if you tell us what exactly you are looking for.

                             

                            As for disabling services, each server has its own way to disable the services. I haven't used GlassFish, but from what you say it looks like the updatetool does that job. In JBoss AS, that process is manual - you can still disable the services. There's a thread here to get you started http://community.jboss.org/thread/159648?tstart=0.

                             

                            Feel free to ask any specific questions.

                            • 11. Re: how to run a web profile on JBoss AS 6?
                              infinity2heaven

                              As discussed in this thread, I'd like to use the web profile + Jax RS webservices + Scheduling and  I want to remove all JSF view handlers and add primefaces as default. Thanks for the pointer to the thread and wiki; seems like it'll take much longer to tune the server. Unsure why JBoss doesn't give some of these configurations out of the box. Also, tuning is a bad word choice because I'm not trying to improve the performance here, I just don't want a bunch of services and there should be a cleaner way to solve this. Osgi (glassfish) is one.

                              • 12. Re: how to run a web profile on JBoss AS 6?
                                nickarls

                                Yes

                                • 13. how to run a web profile on JBoss AS 6?
                                  herb

                                  I'm wondering about all those answeres and the ignorance of "web profile"?!

                                   

                                  All JEE 6 application servers MUST implement a "web profile" otherwise they are NOT a JEE 6 compliant app server.

                                  • 14. how to run a web profile on JBoss AS 6?
                                    jaikiran

                                    herb wrote:

                                     

                                    I'm wondering about all those answeres and the ignorance of "web profile"?!

                                     

                                    All JEE 6 application servers MUST implement a "web profile" otherwise they are NOT a JEE 6 compliant app server.

                                    And JBoss AS 6.0.0.Final does implement the web profile. Not sure if you meant something else.