On Wed, 04 May 2011 12:51:05 -0300, Magnus Kvalheim <mag...@kvalheim.dk>
wrote:
Hi Adam,
Hi!
In fact at this point the main reason(s) I have for still using it is for
it's transaction management.
And as our apps run in a servlet container(tomcat) I've not really
considered ejb's as an alternative.
EJB 3.1 can be run outside a JavaEE container. (at least OpenEJB can).
How would I make that play with Tapestry?
*=Server=*
* Use a JEE 6 Web Profile compliant server (like Glassfish).
* Does anyone have experience with development? Does Tapestry live reload
work?
Live reload of Tapestry classes (pages, components and mixins) would work.
Live reload of services (beans) wouldn't.
*=Injecting beans from CDI=*
Following this path my beans and ejb's are now managed by CDI(Weld).
How would I get access to these beans in Tapestry?
You can hook other IoC containers (CDI, Spring, EJB, etc) into
Tapestry-IoC, so you can use Tapestry's @Inject or JSR 330 @Inject
normally and get these outside-provided beans as if they were T-IoC ones.
JumpStart code does this for EJB and tapestry-spring for Spring, so you
can take a look at them for insipiration.
http://jumpstart.doublenegative.com.au/jumpstart/examples/state/ejb3
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/maint-5-2/tapestry-spring/src/main/java/org/apache/tapestry5/spring/TapestrySpringFilter.java?view=markup
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/maint-5-2/tapestry-spring/src/main/java/org/apache/tapestry5/internal/spring/SpringModuleDef.java?view=markup
I've seen long discussions on the list about tapestry and jsr 299 and
330.
Believe Igor has committed something for 330. Don't know if there are any
plans for jsr 299 though (as portable extension?).
I don't know of any plans, but I'd love to see it. I just don't try to do
that myself due to lack of time . . . :(
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org