Alex Florentino

KISS - Keep It Simple, Stupid
July 20th, 2008

Ainda JBoss Seam

Uma curiosidade é  http://docs.jboss.com/seam/2.0.1.GA/reference/en/html/gettingstarted.html que é esse tal de seam-gen é basicamente uma cópia do generate do Ruby On Rails, até ae tudo bem mas reparem no trecho:

“But if you really want a fast edit/compile/test cycle, Seam supports incremental redeployment of JavaBean components. To make use of this functionality, you must deploy the JavaBean components into the WEB-INF/dev directory, so that they will be loaded by a special Seam classloader, instead of by the WAR or EAR classloader.”

e logo depois :

“ou need to be aware of the following limitations:

  • the components must be JavaBean components, they cannot be EJB3 beans (we are working on fixing this limitation)
  • entities can never be hot-deloyed
  • components deployed via components.xml may not be hot-deployed
  • the hot-deployable components will not be visible to any classes deployed outside of WEB-INF/dev
  • Seam debug mode must be enabled and jboss-seam-debug.jar must be in WEB-INF/lib
  • You must have the Seam filter installed in web.xml”

então em resumo este tal de ” fast edit/compile/test cycle” não existe com essas limitações… O mais engraçado é o “But if you really want” , se eu quero(preciso) ? não, eu não quero não… eu gosto de ficar reiniciando o tomcat…é divertido… perder o maior tempo e depois descobrir que o tomcat não fez o deployment da sua ultima alteração na sua classe, super legal.

Leave a Reply