[GitHub] tomee pull request #200: Creates unmarshal that does not filter to JavaEE na...

2018-11-16 Thread otaviojava
GitHub user otaviojava opened a pull request: https://github.com/apache/tomee/pull/200 Creates unmarshal that does not filter to JavaEE namespace You can merge this pull request into a Git repository by running: $ git pull https://github.com/otaviojava/tomee creates_unmarshal

Re: Override bean from library on TomEE

2018-11-16 Thread Bruno Baptista
Hi Romain, Yeah... @Resource would be the right thing to use in order to inject the managed resource. Something like this: @Resource(name = "DefaultManagedScheduledExecutorService") private ManagedScheduledExecutorService executor; Creating the test now. Thanks for the help Romain. Bruno Bap

Re: Override bean from library on TomEE

2018-11-16 Thread Romain Manni-Bucau
FYI this works: @ApplicationScoped public class CustomProvider extends FailsafeExecutionManagerProvider { @Override @Produces @Specializes @ApplicationScoped public ExecutionManager createExecutionManager() { return new FailsafeExecutionManager() { @Overrid

[GitHub] tomee pull request #199: Hacking around with loading CMP modules

2018-11-16 Thread jgallimore
GitHub user jgallimore opened a pull request: https://github.com/apache/tomee/pull/199 Hacking around with loading CMP modules This is not intended for merge but collaboration and discussion. This PR adds a simple test to `LegacyInterfaceTest` to ensure that user-provided mappings

Re: Override bean from library on TomEE

2018-11-16 Thread Romain Manni-Bucau
Hi Bruno, I assume the alternative is activated in the beans.xml? (if not try adding a @Priority maybe or just drop the annotation which should be useless) If it is i'd start by writing a small test (with application composer) to check if it is a bug in tomee cause this is how it must work Romai

Re: Override bean from library on TomEE

2018-11-16 Thread Bruno Baptista
Hi Roman, This is what I did and it doesn't work. The original bean is always picked up: @Specializes @Alternative @ApplicationScoped public class FailsafeContainerExecutionManagerProvider extends FailsafeExecutionManagerProvider { @Inject private ManagedScheduledExecutorService executor; @

Re: Override bean from library on TomEE

2018-11-16 Thread Romain Manni-Bucau
Hi Bruno, it is a palin bean so @Specializes works, did you put it on the method? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn

Override bean from library on TomEE

2018-11-16 Thread Bruno Baptista
Hi all, We have a problem with the integration of the Safeguard Fault Tolerance library on TomEE 8 and I need help to solve it. This is a follow up to the original email thread, from Oct 3, in the Geronimo mailing list, where we decided to do perform the override in the container side. I nee