Hi
Trying to sort out the pros and cons of using a @Stateless EJB vs a
@Stateful @RequestScoped EJB, can someone help me with the following claims
and see if I missed out on something??
Possible pros of @Stateless EJB
- Any expensive @PostConstruct methods will be run once when the EJB is
Hi
interesting analyzis and way of doing it :). Personally I think the
other way around actually:
1) what do I need?
[potential answer] storing my state during JSF request - I add @RequestScoped
2) oops, I need transactions
- add @Stateful (or use a service to delegate depending the case and
hmm for webservices which are most of the time staeless I'd use
@Singleton @Lock(READ), do you need any state?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04
Yes PostConstruct is called once. If you need request/client specific state
I would use Stateful or CDI, I was only giving you some extra information
about Stateless :). Anyway I am not pretty sure that it will be a good
practice mix Stateless behaviour with Stateless EJB with stateful behaviour
@Romain
Or should I even do @Singleton @ConcurrencyManagement(BEAN) if I need no
state? I know you said that the performance implications would be about the
same?
On Thu, Sep 4, 2014 at 10:39 AM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:
hmm for webservices which are most of the time
I also uploaded the both war files ;)
ejb-remote.war
http://tomee-openejb.979440.n4.nabble.com/file/n4671592/ejb-remote.war
and ejb-client.war
http://tomee-openejb.979440.n4.nabble.com/file/n4671592/ejb-client.war
--
View this message in context:
ejb-security.zip
http://tomee-openejb.979440.n4.nabble.com/file/n4671591/ejb-security.zip
server.xml:
Realm className=org.apache.catalina.realm.JAASRealm
appName=PropertiesLogin
userClassNames=org.apache.openejb.core.security.AbstractSecurityService$User
would be the same, @Lock don't forbid you to use @Lock(WRITE) later
but tha's up to you if you don't need it
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 10:55
Good point. Thanks for your input.
On 4 Sep 2014 11:14, Romain Manni-Bucau rmannibu...@gmail.com wrote:
would be the same, @Lock don't forbid you to use @Lock(WRITE) later
but tha's up to you if you don't need it
Romain Manni-Bucau
Twitter: @rmannibucau
Blog:
Hi,
I've startet to see if I can get arquillian/persistence and tomee embedded
up and running for my tests,
Iv'e got it runnig, but datasets are not being loaded.
I've seen a couple of remarks on the list earlier, but I have'nt gotten any
wiser
Hi
IIRC arquillian persistence is broken in embedded mode
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 11:31 GMT+02:00 hwaastad he...@waastad.org:
Hi,
I've
Hi
your sample works in 1.7.0
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 11:08 GMT+02:00 Olivier Paquet olivier.paq...@atos.net:
I also uploaded the both
Hi,
I am creating a very simple example using OpenJPA and TomEE and I receive
this exception.
INFO: Creating subclass and redefining methods for [class
org.superbiz.Book]. This means that your application will be less
efficient than it would if you ran the OpenJPA enhancer.
Sep 04, 2014 1:09:31
Hi
you need to enhance your classes at build time or ensure you have
openejb-javaagent set on the JVM
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 13:14
Ok strange, I tested it with the new TomEE 1.7.0 plus but I still got guest,
and you just configured it as I described in my Email or is there something
I forgot?
--
View this message in context:
Hi everyone!
I use Omnifaces in a project. All well and good.
The issue I have is that I can't test the project, because I can't get TomEE
to start, regardless of what method I use (EJBContainer, ApplicationComposer
or Arquillian embedded).
It seems that Omnifaces has a beans issue or something.
tested on linux with setenv.sh but otherwise no changes
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 13:06 GMT+02:00 Olivier Paquet olivier.paq...@atos.net:
Ok
So...it will work using tomee-remote?
br hw
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671604.html
Sent from the TomEE Users mailing list archive at Nabble.com.
O thanks but it worked in other examples where no javaagent was added. :)
2014-09-04 13:18 GMT+02:00 Romain Manni-Bucau rmannibu...@gmail.com:
Hi
you need to enhance your classes at build time or ensure you have
openejb-javaagent set on the JVM
Romain Manni-Bucau
Twitter: @rmannibucau
Subclassing works sometimes (deprecated mode), but it's definitely what
OpenJPA recommends.
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com
On Thu, Sep 4, 2014 at 1:53 PM, Alex Soto asot...@gmail.com wrote:
O thanks but it worked in other examples where no
Maybe classes are being enhances in build time? (using ant or maven)
On 4 September 2014 19:01, Alex Soto asot...@gmail.com wrote:
:( but examples provided in github about EntityManager does not use
javaagent. This is because java 8?
2014-09-04 13:58 GMT+02:00 Jean-Louis Monteiro
Not seen on pom
2014-09-04 14:02 GMT+02:00 Maxim Solodovnik solomax...@gmail.com:
Maybe classes are being enhances in build time? (using ant or maven)
On 4 September 2014 19:01, Alex Soto asot...@gmail.com wrote:
:( but examples provided in github about EntityManager does not use
And in catalina.out it logs -sayHello invoked by [admin] ? I also tried is
now on a linux, but still the same result.
I uploaded my TomEE : perhaps you can check it also?
http://we.tl/oVg9302BKP it's a exact copy , just add the setenv.sh and
start it ;)
Can you provide me the content of your
@Aurélien: no need to spam multiple threads, you already got the
answer in multiple places
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 10:35 GMT+02:00 herau
I'd love too. But that's OSS. To make these things better, that's why we're
here ;-)
[]
Leo
On Thu, Sep 4, 2014 at 9:20 AM, Alex Soto asot...@gmail.com wrote:
Yes of course but I would prefer to run it transparently without doing more
work.
2014-09-04 14:16 GMT+02:00 Romain Manni-Bucau
Hi,
can you help me to achieve this ?
I have ear folder able to deploy by TomEE server. Actually we have ant file
that copies any changes made in eclipse workspace to this ear folder. when
web module has new changes in place, auto reloading not happening and I am
restarting server everytime. :(, I
Hi!
We use TomEE 1.6.0.2.
We have a couple of scheduled beans and provide an own
application.properties (with scheduler MyScheduler) to get the according
quartz jobs persisted.
As we can see (asking the org.quartz.impl.StdSchedulerFactory) that both
MyScheduler and the TomEE default scheduler
Hi
once you configure quartz then all beans use a dedicated quartz config.
You can have by bean configuration adding it in openejb-jar.xml in
ejb-deployment properties.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn:
Does http://web.archiveorange.com/archive/v/mnKpLt1HzSwmt9GM83xL help?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 15:32 GMT+02:00 anemdhana
Is it possible to encrypt the password of a javamail session in the same way as
a datasource?
Resource id=SuperbizMail type=javax.mail.Session
mail.smtp.host=mail.superbiz.org
mail.smtp.port=25
mail.transport.protocol=smtp
mail.smtp.auth=true
mail.smtp.user=someuser
Hi Romain!
Can you provide a simple example how to add the quartz properties as properties
for the ejb-deployment?
Best regards,
Thomas
Von: Romain Manni-Bucau [via TomEE OpenEJB]
[mailto:ml-node+s979440n4671626...@n4.nabble.com]
Gesendet: Donnerstag, 4. September 2014 16:02
Hi
not yet, feel free to open a ticket for it issues.apache.org/jira/browse/TOMEE
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 16:06 GMT+02:00 Trevor Stevens
in META-INF/openejb-jar.xml:
openejb-jar xmlns=http://www.openejb.org/openejb-jar/1.1;
ejb-deployment ejb-name=...
properties
# quartz properties
/properties
/ejb-deployment
/openejb-jar
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
@Romain any suggestions?
2014-09-03 23:59 GMT-05:00 Romain Manni-Bucau rmannibu...@gmail.com:
Surely right if mf is in the ear and not the war but not a bug neither
Le 3 sept. 2014 22:16, José Luis Cetina maxtorz...@gmail.com a écrit :
This was the Last response from Leonardo:
Hi
Here is what i use for build enhancement
!--OPENJPA ENHANCMENT--
plugin
groupIdorg.apache.openjpa/groupId
artifactIdopenjpa-maven-plugin/artifactId
version${plugins.openjpa.maven.plugin}/version
configuration
sorry it is integrated on trunk and spending time to change the
container lib is very very low priority for me ATM.
For javaee 6 container I'd use deltaspike for it BTW. Hacking too much
the container you'll just have something you can't rely on anymore
(you don't know which features you can use
Tomee 1.7 comes bundled with MyFaces 2.1.5 in tomee/lib. I usually replace
those jars with MyFaces 2.2 jars. Are you doing the same? Do you have
MyFaces in ear and tomee/lib?
On Sep 4, 2014 10:31 AM, José Luis Cetina maxtorz...@gmail.com wrote:
@Romain any suggestions?
2014-09-03 23:59
Hi Romain!
Great.
But the problem I face know:
The properties - if exist by default, are overwritten.
But if a property exists by default that must not exist for the bean specific
configuration ...
Is there a way to remove a property?
Best regards,
Thomas
Von: Romain
Thank you, hwaastad!
It works with Omnifaces 1.7. Pfew! :)
I saw Romain's article with @Jars, but I can't use dev TomEE in production.
--
View this message in context:
CATALINA_OPTS is also not working(Linux / Windows), I mean if I provide a bad
password it fails, but principal is not handed over to the EJB.
Any other hints?
Bad Java version (using jdk1.7.0_51)...
--
View this message in context:
you can always override it for the bean
all properties are merged, we could add a ignore-parent-properties
property but not sure that would be a so good idea
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github:
well you can get some surprises with myfaces/cdi integration, it was
done manually at this time.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 16:54 GMT+02:00
just curious: did you try 2 tomee instances?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 14:55 GMT+02:00 Olivier Paquet olivier.paq...@atos.net:
CATALINA_OPTS
Ok
issue is you are in tomee and new InitialContext is not resolved to
remote context but to local one cause the name starts with java:.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github:
PS: last sentence meant instead of java:global/ use global/
and it should work
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-09-04 17:09 GMT+02:00 Romain
Oh my God that's it! Thanks for the time you dedicated to this issue...
Thank you Romain! You can close this thread now ;)
Greetings, Olivier
--
View this message in context:
Hi,
I'm trying to run an existing application in TomEE plus 1.7.0. It uses
atmosphere runtime native 2.1.8.
Unless I copy atmosphere JARs to TomEE lib folder, I get
a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.
The same application run fine in a regular Tomcat 7.0.55
Felipe, can you please share why you are using tomee + atmosphere runtime
native + (tomcat7 native) comet?
does your app require comet, because some of your enduser browsers require
comet and do not support websocket?
tomee/tomcat7 + atmosphere runtime + websocket works great
On Thu, Sep 4,
48 matches
Mail list logo