Re: Feedback on TomEE 1.7.1

2014-11-17 Thread Andy Gumbrecht
Many thanks for the feedback, I'll try and fix tomorrow. Just to note, if you see an edit pencil on the page then you can also submit an edit. Help is always very much appreciated. Andy. http://www.tomitribe.com - @AndyGeeDe - On a mobile device, and I have fat fingers. Sorry for typos. On 17 Nov

Re: using local ejb reference in the embedded container

2014-11-17 Thread borislav.iorda...@emerson.com
Here it is: https://github.com/bolerio/embeddedejb Thank you! Boris -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/using-local-ejb-reference-in-the-embedded-container-tp4672896p4672908.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: using local ejb reference in the embedded container

2014-11-17 Thread Jean-Louis Monteiro
Could you share this simple example on github for example so that we can have a look quickly? It's easier usually. Thanks Jean-Louis -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Mon, Nov 17, 2014 at 10:44 PM, borislav.iorda...@emerson.com < borislav.iorda.

Re: EJBContainer and tests

2014-11-17 Thread Romain Manni-Bucau
Hi Enhance jpa classes at build time Le 17 nov. 2014 23:06, "slawek" a écrit : > Hello, > Unfortunatelly the problem is still open. In details test works well on one > of my two computers. I checked everything (eclipse configuration, paths, > lib > versions etc) but on the second pc first test a

Re: using local ejb reference in the embedded container

2014-11-17 Thread borislav.iorda...@emerson.com
Oops, apologies! The last statement of my last post is false: in fact put the wrong EJB name in ejb-jar.xml DOES lead to an excpetion: Caused by: java.lang.NullPointerException: name cannot be null at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:106) at o

Re: EJBContainer and tests

2014-11-17 Thread slawek
Hello, Unfortunatelly the problem is still open. In details test works well on one of my two computers. I checked everything (eclipse configuration, paths, lib versions etc) but on the second pc first test always generate error (log bellow). Second, third and next tests are fine. I'm sure the probl

Re: using local ejb reference in the embedded container

2014-11-17 Thread borislav.iorda...@emerson.com
Hi, That seems like a promising approach, but I wasn't able to get it to work. Here is the actual code: MainEJB mainEJB = (MainEJB)context.lookup("java:global/embeddedejb/MainEJB"); mainEJB.go(new Runnable() { public void run() {

Re: using local ejb reference in the embedded container

2014-11-17 Thread Jean-Louis Monteiro
No problem. If you are in a learning stage, we have some pretty simple but very good and focused examples. For example the simplest possible example you can find with a stateless is http://tomee.apache.org/examples-trunk/simple-stateless/README.html We have plenty more of those depending on what y

Re: using local ejb reference in the embedded container

2014-11-17 Thread borislav.iorda...@emerson.com
Thanks Jean-Louis, those are good to know! I think I picked that code up from somewhere where they thought it more didactic to show what's available. I did notice the JNDI names output of OpenEJB. However, for some reason I didn't think it gave the complete picture and that there were some availa

Re: using local ejb reference in the embedded container

2014-11-17 Thread Romain Manni-Bucau
Hi a workaround can be to have an EJB: @Singleton @Lock(READ) public class NamingEjb { public void run(fnal Runnable run) { run.run(); } } and execute your code as a runnable with it. Then it will be executed in the EJB JNDI context and it should work Romain Manni-Bucau @rmannibucau

Re: using local ejb reference in the embedded container

2014-11-17 Thread borislav.iorda...@emerson.com
Hi Romain, Thanks for the lightening quick answer! I hadn't realized that. Is there an alternative if I want to run a simple main program with local references available for lookup? I actually also tried bootstrapping with 'new InitialContext' instead of EJBContainer.createEJBContainer, but with s

Re: using local ejb reference in the embedded container

2014-11-17 Thread Jean-Louis Monteiro
Hey Borislav, a couple of additional notes if you want. As Romain mentioned, the spec only authorize global JNDI names from the EJBContainer global context. Check out the logs. OpenEJB/TomEE outputs the JNDI names so that you don't have to guess. Regarding your code, you are defining default anno

Re: using local ejb reference in the embedded container

2014-11-17 Thread Romain Manni-Bucau
Hi EJBContainer.createEJBContainer(p).getContext(); only provides global naming by spec Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-11-17 21:43 GMT+01:00 borislav.iorda...@emerson.com : > Hi all, > > I'm new to O

using local ejb reference in the embedded container

2014-11-17 Thread borislav.iorda...@emerson.com
Hi all, I'm new to OpenEJB and I'm trying to learn with a small made up example. Specifically, I have 1 stateless bean that I want to give a local ejb reference and be able to perform a JNDI lookup on that reference. So I have a Java interface, its implementation, an META-INF/ejb-jar.xml and a mai

Re: Ear Classloading issue

2014-11-17 Thread benerridge
Yeah that seems to fix the issue. Strange that it works in other containers though. No matter, simple enough fix. Thanks! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Ear-Classloading-issue-tp4672836p4672894.html Sent from the TomEE Users mailing list archive at Na

Re: Ear Classloading issue

2014-11-17 Thread Romain Manni-Bucau
think it comes from the fact persistence.xml is shared, can you try moving it in webapps? Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-11-17 19:26 GMT+01:00 benerridge : > I made another GitHub project that demonst

Re: Ear Classloading issue

2014-11-17 Thread benerridge
I made another GitHub project that demonstrates this behaviour. https://github.com/cyberoblivion/ear-sso-test.git Install: Tomee Plume should be used as the base app server. Hibernate libs will need to be copied into the plume/lib folder. All necessary hibernate libs are included in the /lib fold

Feedback on TomEE 1.7.1

2014-11-17 Thread David.Ozouf
To whom it may concern: This is actually in regards to the website rather than TomEE. On your downloads page (http://tomee.apache.org/downloads.html): * The link to the KEYS page does not appear to work (http://www.apache.org/dist/openejb/KEYS). I get a 404 at that location. *