Re: TomEE plans for Java EE 7

2013-06-05 Thread Jean-Louis MONTEIRO
Hi Jesse, Maybe you could contribute that to the project? You just need to create a root JIRA for Java EE 7 and add some subtask to it. Would be great. I can also create a page so that you can contribute a page on the website. Up to you. 2013/6/3 jieryn jie...@gmail.com Greetings, On

Re: stand alone Application looks up remote EJB by global jndi name

2013-06-05 Thread ZhongGuan
Thank you for the answer. I learned some concept about JNDI. Here is what I'v got, please help me to confirm. for example, I config a datasource in TomEE Resource id=jdbc/test1 type=DataSource JdbcDriver oracle.jdbc.xa.client.OracleXADataSource JdbcUrl

Re: @EJB within JAR

2013-06-05 Thread Jean-Louis MONTEIRO
Hi, no worries. If you have an EAR file, it must be also deployed on apps/ directory not on webapps. Otherwise, it should work the same way more or less than JBoss AS. If you have a war file with all jar module in WEB-INF/lib dir, you only have a single module so that it's easier to reference

Re: stand alone Application looks up remote EJB by global jndi name

2013-06-05 Thread Romain Manni-Bucau
resource id is an alias for openejb:Resource/id which is a global internal (but stable) name you should be able to use java:global as global name too *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: stand alone Application looks up remote EJB by global jndi name

2013-06-05 Thread ZhongGuan
@Resource(lookup=openejb:Resource/jdbc/test1) is OK Thank you very much. -- View this message in context: http://openejb.979440.n4.nabble.com/stand-alone-Application-looks-up-remote-EJB-by-global-jndi-name-tp4663033p4663484.html Sent from the OpenEJB User mailing list archive at Nabble.com.

TomEE+ 1.6.0 - when?

2013-06-05 Thread Leonardo K. Shikida
Hi What's the expected date to release 1.6.0? TIA Leo

Re: Intellij / TomEE tutorial? documentation? anything?

2013-06-05 Thread Jason Zwolak
Yeah, it does seem to be IDE related... I'm posting here because the TomEE documentation recommends IntelliJ and I spent about 30 hours working with IntelliJ and TomEE before I could get things working. I would like the TomEE team to revise the documentation at

Tutorial on creating a RESTful service with TomEE and IntelliJ IDEA

2013-06-05 Thread Jason Zwolak
Hi guys, I wrote this after a lot of frustration using TomEE and IntelliJ IDEA. I hope it's useful to someone out there and saves them the frustrations I experienced. http://jason.zwolak.org/technoblog/2013/06/restful-service-with-tomee-and-intellij-idea/ -- Jason Zwolak

Re: Tutorial on creating a RESTful service with TomEE and IntelliJ IDEA

2013-06-05 Thread Howard W. Smith, Jr.
+1 good job, and your blog/steps make it look really really simple (and I cannot imagine 'frustration' at all after briefly reviewing your blog). FYI, i'm not an IntelliJ IDEA user. I'm 'happily' a NetBeans 7.x user. :) On Wed, Jun 5, 2013 at 2:53 PM, Jason Zwolak jzwo...@gmail.com wrote: Hi

Re: Intellij / TomEE tutorial? documentation? anything?

2013-06-05 Thread Leonardo K. Shikida
speaking about books and tutorials, I'd love to buy a tomEE+ book if there was any :-( it's a great project, but it's still starting and it needs our help to get traction. so let's write lots of blog posts and tutorials and share ;-) [] Leo On Wed, Jun 5, 2013 at 3:51 PM, Jason Zwolak

Re: Intellij / TomEE tutorial? documentation? anything?

2013-06-05 Thread Romain Manni-Bucau
think there is a misreading of the page, tomee doesn't recommand intellij, it is said it is one of the most appreciated IDE for dev. that said the integration is probably the most advanced since ear and jar are supported out of the box. that said mvn plugin is still the more efficient way to dev

Re: TomEE+ 1.6.0 - when?

2013-06-05 Thread Romain Manni-Bucau
Hi We are pretty stable ATM but waiting for openjpa and openwebbeans to release Le 5 juin 2013 20:33, Leonardo K. Shikida shik...@gmail.com a écrit : Hi What's the expected date to release 1.6.0? TIA Leo

Re: TomEE+ 1.6.0 - when?

2013-06-05 Thread Howard W. Smith, Jr.
Interesting. I thought it was said that tomee 1.6.0 will go with OpenWebBeans 1.2.0. Is the goal to go with 1.2.1 which will bring some new enhancements? On Jun 5, 2013 6:53 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi We are pretty stable ATM but waiting for openjpa and

Re: TomEE+ 1.6.0 - when?

2013-06-05 Thread Howard W. Smith, Jr.
Haha agreed, I think you're right. :-) On Jun 5, 2013 7:20 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: We need 1.2.1 because pf some users but not sure you'll see any difference in your own app ;) Le 6 juin 2013 01:13, Howard W. Smith, Jr. smithh032...@gmail.com a écrit :

Examples missing code on website

2013-06-05 Thread Jason Zwolak
It seems the examples are missing code on the website. Here's one case: http://tomee.apache.org/examples-trunk/rest-example/README.html The code for User, Post, UserDaoTest, etc. is missing. This seems to be the case for a number of examples. Is it supposed to be this way? -- Jason Zwolak

Re: Examples missing code on website

2013-06-05 Thread John D. Ament
They're in the code, probably excluded for brevity (not sure we care about a POJO w/ getters and setters). On Wed, Jun 5, 2013 at 7:45 PM, Jason Zwolak jzwo...@gmail.com wrote: It seems the examples are missing code on the website. Here's one case:

JPA/Hibernate entity auto discovery

2013-06-05 Thread Andrew Clarke
I've set up my database in TomEE such that it works fine with SQL Query. When I attempted to do a simple entityManager.find() as a JPA test, I got the following error: java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: The bean encountered a non-application exception; nested

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
Andrew, Did you try using the setting exclude-unlisted-classes, with the value of false? John On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke s...@clarke.ca wrote: I've set up my database in TomEE such that it works fine with SQL Query. When I attempted to do a simple entityManager.find() as

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread Andrew Clarke
Yes I did, thanks. I did mention that in the email, but I know there was a lot in there. This was the syntax of my persistence.xml when I tried that: persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
Hmm yeah I missed that part. So wait, is your persistence.xml in your war file somewhere? Where is it? How do you get a reference to your entity manager? On Wed, Jun 5, 2013 at 8:39 PM, Andrew Clarke s...@clarke.ca wrote: Yes I did, thanks. I did mention that in the email, but I know there

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread Andrew Clarke
Thanks again John. I'll include an example TestManagerBean.java below. My persistence.xml is in my WAR file under /META-INF. package com.example; import com.example.account.Application; import com.example.system.SystemPropertiesBean; import org.apache.commons.logging.Log; import

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread Howard W. Smith, Jr.
responses inline below... On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke s...@clarke.ca wrote: persistence.xml: persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/persistence

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
So, the root META-INF? What happens when it goes in WEB-INF/classes/META-INF ? On Wed, Jun 5, 2013 at 9:29 PM, Andrew Clarke s...@clarke.ca wrote: Thanks again John. I'll include an example TestManagerBean.java below. My persistence.xml is in my WAR file under /META-INF. package

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread Howard W. Smith, Jr.
responses inline below... On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke s...@clarke.ca wrote: persistence.xml: persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/persistence

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
Good catch, but AFAIK, Hibernate ignores the version of persistence.xml (typically). Unless TomEE cares... On Wed, Jun 5, 2013 at 9:39 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: responses inline below... On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke s...@clarke.ca wrote:

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread Jean-Louis MONTEIRO
Yes there is no difference afair in that area in jpa 2. Just to be sure, are you delivering hibernate within you webapp? By default, we use openjpa so you need hibernate in your webapp. As per the spec and again afair entities get detected and added automatically if and only if they are fine the