On Tue, 16 Sep 2014 06:06:55 -0300, Chris Mylonas <ch...@opencsta.org>
wrote:
Hi Tapestry Users,
Hi!
Is there a limitation to how/where to use @EJB?
It depends on how your project handles it.
All my tapestry services
and their implementation are in the services package - is this one of
those special packages I should move my services out of?
No. The services package doesn't have any special meaning for Tapestry
except for the default location of AppModule.
AppModule.java has
@Primary
public static void contributeComponentClassTransformWorker(
OrderedConfiguration<ComponentClassTransformWorker2>
configuration) {
configuration.addInstance("EJB", EJBAnnotationWorker.class,
"before:Property");
}
ComponentClassTransformWorker, as its name says, changes component (and
pages and mixins) classes, not service ones (or any other class).
If you want an annotation to work on services, which are actually a
Tapestry-IoC concept, not a Tapestry(-core) one (Tapestry-Core uses
Tapestry-IoC services), you should do it in Tapestry-IoC.
Have you tried https://github.com/got5/tapestry-cdi?
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org