Seam app with minimal JBoss configuration?

I would like to improve the performance of my Seam and JBoss appserver applications, in particular by removing things that are not needed in the standard configuration. Ideally, I would like to run it using a "minimal" profile. Can someone give me any guidance on what is needed to run the Seam application using the โ€œminimumโ€? Here are the things that my application requires:

  • JPA using Hibernate with PostgreSQL backend
  • Ejb3
  • JSF (RichFaces / Facelets)
  • Email, after all, although not required at this particular moment

I will be developing my application using JBoss Tools on Eclipse, so I will also need everything that the development and deployment tools require. I found that the default configuration has too many additional components and functions installed by default, and this greatly affects performance when I try to develop. Any help you can give would be great! Thanks!

+4
source share
2 answers

If you want to improve Seam performance, then you should use the functionality in Seam for this. If you create a minimal JBoss setup, this basically improves startup time.

If you want to lose weight JBoss for a seam, you can look here
This should cover JBoss 4.x and 5.x.

If you want to speed up Seam applications, you must learn to use @ByPassinterceptors and use @Factory and @Unwrap more. Dan Allen has an excellent 2-part post that talks about how you can speed up your Seam applications if you use JSF. You can find the articles here.

For development
If you really want to increase development speed, you should definitely use JRebel . This prevents so many restarts and intercepts in the JVM directly for the hot deployment of even your EJBs (!). @Arbi has a great post that shows how you can install JRebel here

This should be a good start ....

+3
source

If you can't justify the cost of JRebel, try FakeReplace

http://code.google.com/p/fakereplace/

It is not as reliable as JRebel, but it works for most code changes.

+1
source

Source: https://habr.com/ru/post/1310025/


All Articles