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
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
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
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
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
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
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.
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
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.
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
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
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
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.
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.
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
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:/
16 matches
Mail list logo