Would be possible to change the default behaviour to select a service marked
@Primary when there are multiple occurrences of the same interface? I'm finding
that it's complicated to add a service with the same interface, I need to find
all occurrences of the interface and mark them @Primary and
I'm trying to use tapestry.execution-mode in a module and I get this if it's
not defined:
SEVERE: Symbol 'tapestry.execution-mode' is not defined.
SEVERE: Operations trace:
SEVERE: [ 1] Realizing service ExcludeVisitor
SEVERE: [ 2] Instantiating service ExcludeVisitor implementation via
com.trsvax
tapestry.execution-mode is not a symbol but a system property which
defaults to production. Please the the line 101 here:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/TapestryFilter.java?view=markup
It is only used to load execution mode s
The @Primary annotation is supposed to be placed on a single
implementation, not all of them. The most frequent use case is a service
which is implemented as a chain or a strategy.
On Thu, Mar 22, 2012 at 1:55 PM, Denis Stepanov wrote:
> Would be possible to change the default behaviour to select
You didn't understand me, I have only one implementation with the @Primary, the
problem is when you are accesing the service without it.
Example:
MyService.class, new Clustered();
MyService.class, new Local(); @Primary
@Inject
MyService service <-- this will fail because there are two implemen
Just a guess, haven't tried it, but couldn't you check for
request.getHeader("Accept-Encoding") containing "gzip" ? Or maybe I'm
misunderstanding the problem.
On Thu, Mar 22, 2012 at 1:46 PM, Steve Eynon (Commented) (JIRA)
wrote:
>
> [
> https://issues.apache.org/jira/browse/TAP5-1880?page=co
Hey Kalle, thanks for the quick response.
I think I found the reason why it's not working for me (and I am surprised what
you're describing could have worked for you at all). By way of a unit test I
tried your approach (adding the for Hibernate 4.1.1), and for me
it fails with a
Cau
On Thu, Mar 22, 2012 at 11:23 AM, Jochen Frey wrote:
> Hey Kalle, thanks for the quick response.
> I think I found the reason why it's not working for me (and I am surprised
> what you're describing could have worked for you at all). By way of a unit
> test I tried your approach (adding the fo
Thanks for the confirmation, I was worried about my sanity for a little while ;)
It'd be great if T5.4 came with Hibernate 4 out of the box. In the meanwhile
the approach you're suggesting (building our own and putting it into our local
repo) works fine.
Cheers!
J
On Mar 22, 2012, at 6:53 PM,
On Thu, Mar 22, 2012 at 10:37 PM, Jochen Frey wrote:
> Thanks for the confirmation, I was worried about my sanity for a little while
> ;)
> It'd be great if T5.4 came with Hibernate 4 out of the box. In the meanwhile
> the approach you're suggesting (building our own and putting it into our
>
10 matches
Mail list logo