Re: How to access a bean private field during injection?

2012-11-23 Thread zeddius
For those who interested there is a dirty workaround: In the bean you have: /@Inject @Config("someValue") private Integer someValue = 4;/ and producer like this: /public @Produces @Config Integer getIntProperty(InjectionPoint p) { ... if (p.getMember() instanceof Field) { Field inject

Re: How to access a bean private field during injection?

2012-11-21 Thread zeddius
Hi Romain, /someValue /is set to 4 in declaration and has /@Config("someValue")/ which tells to take this value from the property named 'someValue'. If there is such a property the /someValue /will be set to the property value, but if there is no such property then null is returned by producer and

How to access a bean private field during injection?

2012-11-20 Thread zeddius
Hi guys, This question is more generic than TomEE related however I decided to ask here because you TomEE devs might have a better internal look on this. What I'm trying to do is to inject a primitive value into a bean field from some configuration file but leaving it's default value if config is

Re: TomEE 1.5.1 Release Date

2012-11-13 Thread zeddius
I've just checked the source code and /java.lang.ArithmeticException: / by zero / seems to be fixed in later snapshots. -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-5-1-Release-Date-tp4658516p4658539.html Sent from the OpenEJB User mailing list archive at Nabb

Re: TomEE 1.5.1 Release Date

2012-11-12 Thread zeddius
Hi Romain, We've recently migrated from TomEE 1.0 to TomEE 1.5 but our application didn't happen to start from the beginning (probably due to https://issues.apache.org/jira/browse/TOMEE-462). I say unstable because we always encounter different issues from version to version: For instance this on

TomEE 1.5.1 Release Date

2012-11-11 Thread zeddius
Hi guys, When TomEE 1.5.1 is going to be released? We are waiting for a number of bug fixes from TomEE 1.5.1 however the snapshots are not very stable. -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-5-1-Release-Date-tp4658516.html Sent from the OpenEJB User maili

Re: How to configure default transaction timeout in TomEE?

2012-09-12 Thread zeddius
Great, thank you guys! -- View this message in context: http://openejb.979440.n4.nabble.com/How-to-configure-default-transaction-timeout-in-TomEE-tp4657383p4657386.html Sent from the OpenEJB User mailing list archive at Nabble.com.

How to configure default transaction timeout in TomEE?

2012-09-12 Thread zeddius
Hi all, Please advise how to configure default transaction timeout in TomEE? The only answer I found on this forum was: /By default its value is 600s In your openejb.xml file, redefine the "Default Transaction Manager" and add the parameter defaultTransactionTimeoutSeconds / But is ther

Re: InvocationTargetException upon bean initialization

2012-08-27 Thread zeddius
I confirm it doesn't occur on a snapshot. -- View this message in context: http://openejb.979440.n4.nabble.com/InvocationTargetException-upon-bean-initialization-tp4657081p4657129.html Sent from the OpenEJB User mailing list archive at Nabble.com.

InvocationTargetException upon bean initialization

2012-08-24 Thread zeddius
Hi guys, In Tomee 1.0 It seems that InvocationTargetException is thrown if you have a bean which constructor invokes some methods of it's base class. @Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class StartupBean { @EJB private HelloBean hello

Re: java.lang.NoClassDefFoundError for SynchronizedDescriptiveStatistics

2012-08-03 Thread zeddius
I haven't tested on trunk. Decided to drop the jar into tomee/lib so far. -- View this message in context: http://openejb.979440.n4.nabble.com/java-lang-NoClassDefFoundError-for-SynchronizedDescriptiveStatistics-tp4656648p4656657.html Sent from the OpenEJB User mailing list archive at Nabble.co

Re: java.lang.NoClassDefFoundError for SynchronizedDescriptiveStatistics

2012-08-03 Thread zeddius
Setting the property openejb.classloader.forced-load=org.apache.commons.math3 causes other NoClassDefFoundError errors on other classes in different packages. -- View this message in context: http://openejb.979440.n4.nabble.com/java-lang-NoClassDefFoundError-for-SynchronizedDescriptiveStatisti

Re: java.lang.NoClassDefFoundError for SynchronizedDescriptiveStatistics

2012-08-03 Thread zeddius
OK got it. Thanks! -- View this message in context: http://openejb.979440.n4.nabble.com/java-lang-NoClassDefFoundError-for-SynchronizedDescriptiveStatistics-tp4656648p4656654.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: java.lang.NoClassDefFoundError for SynchronizedDescriptiveStatistics

2012-08-03 Thread zeddius
Thanks, Romain What do you mean by 'works on the snapshot' ? -- View this message in context: http://openejb.979440.n4.nabble.com/java-lang-NoClassDefFoundError-for-SynchronizedDescriptiveStatistics-tp4656648p4656652.html Sent from the OpenEJB User mailing list archive at Nabble.com.

java.lang.NoClassDefFoundError for SynchronizedDescriptiveStatistics

2012-08-03 Thread zeddius
Hi all, I've got a bean: @Singleton @ConcurrencyManagement(ConcurrencyManagementType.BEAN) pulic class TestBean { ... private final SynchronizedDescriptiveStatistics stats = new SynchronizedDescriptiveStatistics(250); ... } Upon a deployment I get: java.lang.NoClassDefFoundError: Could not

Remote Client with TomEE

2012-05-14 Thread zeddius
I hope this may save some time for someone. The below is taken from the clients documentation page: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory"); // The below is incorrect // p.put("java.naming.provider.url", "http:/