Re: TomEE plans for Java EE 7

2013-06-03 Thread Jean-Louis MONTEIRO
Will be probably hard to get a JMS 2.0 compliant release from ActiveMQ. It
may require additional work to switch to Apollo as it looks to be the
product to rely on.

JLouis


2013/6/3 David Blevins david.blev...@gmail.com


 On Jun 1, 2013, at 3:04 AM, John D. Ament john.d.am...@gmail.com wrote:

  I think realistically you need all of the components to bump up to their
  Java EE 7 compliant versions.

 Exactly.  We need all these projects to complete their portion of JavaEE 7:

 - CDI 1.1 - Apache OpenWebBeans
 - EJB 3.2 - Apache OpenEJB
 - JPA 2.1 - Apache OpenJPA
 - JSF 2.2 - Apache MyFaces
 - Servlet 3.1 - Apache Tomcat
 - Bean Validation 1.1 - Apache BVal
 - JAX-RS 2.0 - Apache CXF
 - JMS 2.0 - Apache ActiveMQ

 Effectively, the what is the timeline question spills over onto them as
 well making it near impossible for us to actually give an answer.

 I suspect the ones that will take the longest are JAX-RS 2.0 and JMS 2.0.


 -David




-- 
Jean-Louis


Re: @EJB within JAR

2013-06-03 Thread Jean-Louis MONTEIRO
Hi,

not sure to understand how you deploy your app.
For instance, you jar module (if alone as I understood) should be in apps/
(see deployment tag in tomee.xml).
If you wanna call components between Java EE modules (separate jar file for
example), you have to use global JNDI names.

As a side note, using beanName is not portable at all.

If you have a small example to share, we can git it a try.

JLouis



2013/5/31 AndrewClarke s...@clarke.ca

 I should explain my subject a bit better.  In addition to what I described
 below, code like this in a bean just populates the variable with null:

 @EJB( beanName = MessageManager )
 private MessageManager messageManager;

 I assumed it's the same basic issue as I wrote below, although maybe that's
 not the case.

 Thanks again,
 - Andrew.


 AndrewClarke wrote
  I have a simple webapp named services.war.  I also have a JAR file named,
  say, example.jar, deployed in TomEE's lib directory.  In example.jar I
  have the following files (amongst others):
 
  /com/example/ws/proxies/TestServiceProxy.class
  /com/example/account/ApplicationManager.class
  /com/example/account/ApplicationManagerBean.class
 
  ApplicationManagerBean.class is set up as follows:
  @Stateless( name = ApplicationManager )
  @Local( ApplicationManager.class )
 
  In /services, my Test web service instantiates
  com.example.ws.proxies.TestServiceProxy and calls a method in there.
  This
  in turn tries to do this:
 
  ApplicationManager applicationManager = (ApplicationManager) (new
  InitialContext()).lookup(example/ApplicationManager/local);
 
  This in turn gives me this error:
 
  2013-05-31 10:28:16,068 WARN  [http-bio-8080-exec-1]
  ws.proxies.TestServiceProxy.testGet(152): Exception getting
  ApplicationManager: Name /example/ApplicationManager/local not found.
  javax.naming.NameNotFoundException: Name
  /example/ApplicationManager/local not found.
 
  How do I use this naming system to refer to an object within its own JAR
  file?  I'm using this format in system.properties:
 
  java.naming.factory.initial =
  org.apache.openejb.client.LocalInitialContextFactory
  openejb.deploymentId.format = {ejbJarId}/{ejbName}
  openejb.jndiname.format = {deploymentId}/{interfaceType.annotationNameLC}
 
  I've tried using the global JNDI name too and I haven't been able to get
  that to work either.
 
  Thanks,
  - Andrew.





 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/EJB-within-JAR-tp4663375p4663376.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.




-- 
Jean-Louis


Tomee Plus and EAR debugging in Eclipse

2013-06-03 Thread pierrepinon
Hello,

I added Tomcat 7 Server Runtime Environment for debug my EAR and webapps but
it seems impossible to deploy EAR directly from Eclipse.

I read http://tomee.apache.org/tomee-and-eclipse.html; but it's only for
WAR.

Is there a solution to deploy my EAR and debug my application in Eclipse.

I haven't found any documentation for that.

Thanks.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Tomee Plus and EAR debugging in Eclipse

2013-06-03 Thread Jean-Louis MONTEIRO
Using TomEE maven plugin is pretty simple.
Just use tomee:debug target instead of tomee:run and attach the debugger to
5005 port.

JLouis


2013/6/3 pierrepinon ppi...@smaeur.eu

 Hello,

 I added Tomcat 7 Server Runtime Environment for debug my EAR and webapps
 but
 it seems impossible to deploy EAR directly from Eclipse.

 I read http://tomee.apache.org/tomee-and-eclipse.html; but it's only for
 WAR.

 Is there a solution to deploy my EAR and debug my application in Eclipse.

 I haven't found any documentation for that.

 Thanks.



 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.




-- 
Jean-Louis


Re: Tomee Plus and EAR debugging in Eclipse

2013-06-03 Thread Romain Manni-Bucau
Hi,

you copy your ear in tomee/apps then set environment variables
JPDA_ADDRESS=5005 and JPDA_SUSPEND=y. Finally in eclipse add to the JVM
args: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005.

Start tomee, create a remote debug configuration in eclipse on port 5005
and you are done.

PS: tomee mvn plugin is easier since it got the goal tomee:debug but it
only works if you use mvn.

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 pierrepinon ppi...@smaeur.eu

 Hello,

 I added Tomcat 7 Server Runtime Environment for debug my EAR and webapps
 but
 it seems impossible to deploy EAR directly from Eclipse.

 I read http://tomee.apache.org/tomee-and-eclipse.html; but it's only for
 WAR.

 Is there a solution to deploy my EAR and debug my application in Eclipse.

 I haven't found any documentation for that.

 Thanks.



 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: @EJB within JAR

2013-06-03 Thread AndrewClarke
Hi Jean-Louis.  Thanks for your response.  I'm not sure how I'm deploying my 
app either!  The app is currently running in JBoss, and many of the EJBs are 
packaged in a separate JAR file in JBoss, and in the end all deployed in an 
EAR.  I'm trying to port it to TomEE and I'm not sure what I'm doing.  I did 
get a simplified version of all this working on Friday, with the EJBs deployed 
locally in the same webapp.  So, JNDI naming is working in that context; I just 
need to start adding things in until something else breaks.

Thanks for letting me know that I can't package my EJBs in a separate JAR 
without using global JNDI names.  I didn't know that.

- Andrew.

On 2013-06-03, at 02:57, Jean-Louis MONTEIRO [via OpenEJB] 
ml-node+s979440n4663414...@n4.nabble.com wrote:

 Hi, 
 
 not sure to understand how you deploy your app. 
 For instance, you jar module (if alone as I understood) should be in apps/ 
 (see deployment tag in tomee.xml). 
 If you wanna call components between Java EE modules (separate jar file for 
 example), you have to use global JNDI names. 
 
 As a side note, using beanName is not portable at all. 
 
 If you have a small example to share, we can git it a try. 
 
 JLouis 
 
 
 
 2013/5/31 AndrewClarke [hidden email] 
 
  I should explain my subject a bit better.  In addition to what I described 
  below, code like this in a bean just populates the variable with null: 
  
  @EJB( beanName = MessageManager ) 
  private MessageManager messageManager; 
  
  I assumed it's the same basic issue as I wrote below, although maybe that's 
  not the case. 
  
  Thanks again, 
  - Andrew. 
  
  
  AndrewClarke wrote 
   I have a simple webapp named services.war.  I also have a JAR file named, 
   say, example.jar, deployed in TomEE's lib directory.  In example.jar I 
   have the following files (amongst others): 
   
   /com/example/ws/proxies/TestServiceProxy.class 
   /com/example/account/ApplicationManager.class 
   /com/example/account/ApplicationManagerBean.class 
   
   ApplicationManagerBean.class is set up as follows: 
   @Stateless( name = ApplicationManager ) 
   @Local( ApplicationManager.class ) 
   
   In /services, my Test web service instantiates 
   com.example.ws.proxies.TestServiceProxy and calls a method in there. 
   This 
   in turn tries to do this: 
   
   ApplicationManager applicationManager = (ApplicationManager) (new 
   InitialContext()).lookup(example/ApplicationManager/local); 
   
   This in turn gives me this error: 
   
   2013-05-31 10:28:16,068 WARN  [http-bio-8080-exec-1] 
   ws.proxies.TestServiceProxy.testGet(152): Exception getting 
   ApplicationManager: Name /example/ApplicationManager/local not found. 
   javax.naming.NameNotFoundException: Name 
   /example/ApplicationManager/local not found. 
   
   How do I use this naming system to refer to an object within its own JAR 
   file?  I'm using this format in system.properties: 
   
   java.naming.factory.initial = 
   org.apache.openejb.client.LocalInitialContextFactory 
   openejb.deploymentId.format = {ejbJarId}/{ejbName} 
   openejb.jndiname.format = {deploymentId}/{interfaceType.annotationNameLC} 
   
   I've tried using the global JNDI name too and I haven't been able to get 
   that to work either. 
   
   Thanks, 
   - Andrew. 
  
  
  
  
  
  -- 
  View this message in context: 
  http://openejb.979440.n4.nabble.com/EJB-within-JAR-tp4663375p4663376.html
  Sent from the OpenEJB User mailing list archive at Nabble.com. 
 
 
 
 
 -- 
 Jean-Louis 
 
 
 If you reply to this email, your message will be added to the discussion 
 below:
 http://openejb.979440.n4.nabble.com/EJB-within-JAR-tp4663375p4663414.html
 To unsubscribe from @EJB within JAR, click here.
 NAML





--
View this message in context: 
http://openejb.979440.n4.nabble.com/EJB-within-JAR-tp4663375p4663424.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE plans for Java EE 7

2013-06-03 Thread Howard W. Smith, Jr.
Wow, nice response David. A nice list that show impact and new/target
versions and even mention of the time line.
 On Jun 3, 2013 12:36 AM, David Blevins david.blev...@gmail.com wrote:


 On Jun 1, 2013, at 3:04 AM, John D. Ament john.d.am...@gmail.com wrote:

  I think realistically you need all of the components to bump up to their
  Java EE 7 compliant versions.

 Exactly.  We need all these projects to complete their portion of JavaEE 7:

 - CDI 1.1 - Apache OpenWebBeans
 - EJB 3.2 - Apache OpenEJB
 - JPA 2.1 - Apache OpenJPA
 - JSF 2.2 - Apache MyFaces
 - Servlet 3.1 - Apache Tomcat
 - Bean Validation 1.1 - Apache BVal
 - JAX-RS 2.0 - Apache CXF
 - JMS 2.0 - Apache ActiveMQ

 Effectively, the what is the timeline question spills over onto them as
 well making it near impossible for us to actually give an answer.

 I suspect the ones that will take the longest are JAX-RS 2.0 and JMS 2.0.


 -David




Re: TomEE plans for Java EE 7

2013-06-03 Thread jieryn
Greetings,

On Mon, Jun 3, 2013 at 12:36 AM, David Blevins david.blev...@gmail.com wrote:

 Exactly.  We need all these projects to complete their portion of JavaEE 7:
 - CDI 1.1 - Apache OpenWebBeans
 - EJB 3.2 - Apache OpenEJB
 - JPA 2.1 - Apache OpenJPA
 - JSF 2.2 - Apache MyFaces
 - Servlet 3.1 - Apache Tomcat
 - Bean Validation 1.1 - Apache BVal
 - JAX-RS 2.0 - Apache CXF
 - JMS 2.0 - Apache ActiveMQ

Is there a wiki that captures this? It would probably get a lot of
use. Or perhaps a top level tracking issue for Java EE 7 enablement,
with links to the dependent projects top level tracking issues for
Java EE 7?

It's kind of a lot of bookkeeping, but I would expect as Java EE 7 is
officially launched, etc, this issue will come up quite a bit.

-Jesse


moviefun on mysql

2013-06-03 Thread Leonardo K. Shikida
Hi

I've downloaded moviefun and altered it to use mysql just adding the
dictionary reference in persistence.xml

?xml version=1.0 encoding=UTF-8?
persistence version=2.0 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
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd;
  persistence-unit name=movie-unit
jta-data-sourcemovieDatabase/jta-data-source
non-jta-data-sourcemovieDatabaseUnmanaged/non-jta-data-source
classorg.superbiz.moviefun.Movie/class

properties
*  property name=openjpa.jdbc.DBDictionary
value=org.apache.openjpa.jdbc.sql.MySQLDictionary/*
  property name=openjpa.jdbc.SynchronizeMappings
value=buildSchema(ForeignKeys=true)/
/properties
  /persistence-unit
/persistence

then I've got, while running setup

SEVERE: Servlet.service() for servlet [jsp] in context with path
[/POC_TomEE] threw exception [javax.ejb.EJBException: The bean encountered
a non-application exception; nested exception is:
openjpa-2.2.0-r422266:1244990 nonfatal general error
org.apache.openjpa.persistence.PersistenceException: unexpected token:
ENGINE {stmnt -784895282 *CREATE TABLE Movie (id BIGINT NOT NULL, director
VARCHAR(255), genre VARCHAR(255), rating INTEGER, title VARCHAR(255), year
INTEGER, PRIMARY KEY (id)) ENGINE = innodb*} [code=-5581, state=42581]]
with root cause
org.apache.openjpa.lib.jdbc.ReportingSQLException: unexpected token: ENGINE
{stmnt -784895282 CREATE TABLE Movie (id BIGINT NOT NULL, director
VARCHAR(255), genre VARCHAR(255), rating INTEGER, title VARCHAR(255), year
INTEGER, PRIMARY KEY (id)) ENGINE = innodb} [code=-5581, state=42581]

although, the query above seems to work perfectly in mysql

mysql *CREATE TABLE Movie (id BIGINT NOT NULL, director VARCHAR(255),
genre VARCHAR(255), rating INTEGER, title VARCHAR(255), year INTEGER,
PRIMARY KEY (id)) ENGINE = innodb;*
Query OK, 0 rows affected (0.41 sec)

am I missing something?

TIA

Leo


Configuring OpenEJB logging

2013-06-03 Thread Chris.Christo
Isn't there any way to configure the slf4j implementation slf4j-jdk14 that 
comes with TomEE/OpenEJB?

All the documentation points to dropping in the log4j implementation jar into 
lib and then adding various log4j.xxx to your properties.



Chris

Re: moviefun on mysql

2013-06-03 Thread Romain Manni-Bucau
Hi

did you configure movieDatabaseUnmanaged and movieDatabase to point to the
mysql database?

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 Leonardo K. Shikida shik...@gmail.com

 Hi

 I've downloaded moviefun and altered it to use mysql just adding the
 dictionary reference in persistence.xml

 ?xml version=1.0 encoding=UTF-8?
 persistence version=2.0 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
 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd;
   persistence-unit name=movie-unit
 jta-data-sourcemovieDatabase/jta-data-source
 non-jta-data-sourcemovieDatabaseUnmanaged/non-jta-data-source
 classorg.superbiz.moviefun.Movie/class

 properties
 *  property name=openjpa.jdbc.DBDictionary
 value=org.apache.openjpa.jdbc.sql.MySQLDictionary/*
   property name=openjpa.jdbc.SynchronizeMappings
 value=buildSchema(ForeignKeys=true)/
 /properties
   /persistence-unit
 /persistence

 then I've got, while running setup

 SEVERE: Servlet.service() for servlet [jsp] in context with path
 [/POC_TomEE] threw exception [javax.ejb.EJBException: The bean encountered
 a non-application exception; nested exception is:
 openjpa-2.2.0-r422266:1244990 nonfatal general error
 org.apache.openjpa.persistence.PersistenceException: unexpected token:
 ENGINE {stmnt -784895282 *CREATE TABLE Movie (id BIGINT NOT NULL, director
 VARCHAR(255), genre VARCHAR(255), rating INTEGER, title VARCHAR(255), year
 INTEGER, PRIMARY KEY (id)) ENGINE = innodb*} [code=-5581, state=42581]]
 with root cause
 org.apache.openjpa.lib.jdbc.ReportingSQLException: unexpected token: ENGINE
 {stmnt -784895282 CREATE TABLE Movie (id BIGINT NOT NULL, director
 VARCHAR(255), genre VARCHAR(255), rating INTEGER, title VARCHAR(255), year
 INTEGER, PRIMARY KEY (id)) ENGINE = innodb} [code=-5581, state=42581]

 although, the query above seems to work perfectly in mysql

 mysql *CREATE TABLE Movie (id BIGINT NOT NULL, director VARCHAR(255),
 genre VARCHAR(255), rating INTEGER, title VARCHAR(255), year INTEGER,
 PRIMARY KEY (id)) ENGINE = innodb;*
 Query OK, 0 rows affected (0.41 sec)

 am I missing something?

 TIA

 Leo



Re: Remote exceptions logging

2013-06-03 Thread vhubuo
For the 1.6.0 builds everything work fine.
For 1.5.2 and 1.5.3 .useParentHandlers = true workaround does not work.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Remote-exceptions-logging-tp4663282p4663433.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Configuring OpenEJB logging

2013-06-03 Thread Chris.Christo
Hi Romain,

So how would I apply these logging properties using JUL?

log4j.rootLogger   = fatal,C
log4j.category.OpenEJB = debug
log4j.category.OpenEJB.options = debug
log4j.category.OpenEJB.server  = debug
log4j.category.OpenEJB.startup = debug
log4j.category.OpenEJB.startup.service = debug
log4j.category.OpenEJB.startup.config = debug
log4j.category.OpenEJB.hsql= debug
log4j.category.CORBA-Adapter   = debug
log4j.category.Transaction = debug
log4j.category.org.apache.activemq = debug
log4j.category.org.apache.geronimo = debug
log4j.category.openjpa = debug
log4j.appender.C   = org.apache.log4j.ConsoleAppender
log4j.appender.C.layout= org.apache.log4j.SimpleLayout



Chris

On 3 Jun 2013, at 16:18, Romain Manni-Bucau rmannibu...@gmail.com wrote:

 Hi,
 
 just use JUL configuration
 
 *Romain Manni-Bucau*
 *Twitter: @rmannibucau https://twitter.com/rmannibucau*
 *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
 *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
 *Github: https://github.com/rmannibucau*
 
 
 
 2013/6/3 Chris.Christo chris.chri...@mail.com
 
 Isn't there any way to configure the slf4j implementation slf4j-jdk14 that
 comes with TomEE/OpenEJB?
 
 All the documentation points to dropping in the log4j implementation jar
 into lib and then adding various log4j.xxx to your properties.
 
 
 
 Chris



Re: Configuring OpenEJB logging

2013-06-03 Thread Romain Manni-Bucau
here a sample for tomee
https://gist.github.com/rmannibucau/d0f669c710ff174160b6

for openejb and using openejb properties use logging.level.FOO instead of
FOO.level.

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 Chris.Christo chris.chri...@mail.com

 Hi Romain,

 So how would I apply these logging properties using JUL?

 log4j.rootLogger   = fatal,C
 log4j.category.OpenEJB = debug
 log4j.category.OpenEJB.options = debug
 log4j.category.OpenEJB.server  = debug
 log4j.category.OpenEJB.startup = debug
 log4j.category.OpenEJB.startup.service = debug
 log4j.category.OpenEJB.startup.config = debug
 log4j.category.OpenEJB.hsql= debug
 log4j.category.CORBA-Adapter   = debug
 log4j.category.Transaction = debug
 log4j.category.org.apache.activemq = debug
 log4j.category.org.apache.geronimo = debug
 log4j.category.openjpa = debug
 log4j.appender.C   = org.apache.log4j.ConsoleAppender
 log4j.appender.C.layout= org.apache.log4j.SimpleLayout



 Chris

 On 3 Jun 2013, at 16:18, Romain Manni-Bucau rmannibu...@gmail.com wrote:

  Hi,
 
  just use JUL configuration
 
  *Romain Manni-Bucau*
  *Twitter: @rmannibucau https://twitter.com/rmannibucau*
  *Blog: **http://rmannibucau.wordpress.com/*
 http://rmannibucau.wordpress.com/
  *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
  *Github: https://github.com/rmannibucau*
 
 
 
  2013/6/3 Chris.Christo chris.chri...@mail.com
 
  Isn't there any way to configure the slf4j implementation slf4j-jdk14
 that
  comes with TomEE/OpenEJB?
 
  All the documentation points to dropping in the log4j implementation jar
  into lib and then adding various log4j.xxx to your properties.
 
 
 
  Chris




Re: Tomee Plus and EAR debugging in Eclipse

2013-06-03 Thread Romain Manni-Bucau
hmm,

you find eclipse easier but tomee mvn plugin is far better to work in a
team because you share in your project your tomee.xml in a standard place
and calling mvn tomee:run it is automatically used where in eclipse you
need to put it manually in the right server project. Then that's just
habits i think.

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 pierrepinon ppi...@smaeur.eu

 Hi,

 Thank you for your message,

 But it's annoying to not have integrated solution (Eclipse Server Adapter)
 to deploy on TomEE like we have with Tomcat, Glassfish, ...

 Because I have TomEE server with a custom ActiveMQ Broker (activemq.xml),
 queues, connection pool, SSL connector, custom JVM options and it's easier
 to work with adapter linked to a local TomEE server.

 But it is not clear to work with several people with this solution.

 Maybe in the future...



 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/Tomee-Plus-and-EAR-debugging-in-Eclipse-tp4663415p4663429.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: Remote exceptions logging

2013-06-03 Thread Romain Manni-Bucau
wonder if -Dopenejb.log.factory=slf4j could be a workaround for older
versions

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 vhubuo dmitrij...@balticom.eu

 For the 1.6.0 builds everything work fine.
 For 1.5.2 and 1.5.3 .useParentHandlers = true workaround does not work.



 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/Remote-exceptions-logging-tp4663282p4663433.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: Intellij / TomEE tutorial? documentation? anything?

2013-06-03 Thread Jason Zwolak
Hi Everyone, I'm still looking for good tutorials or documentation on using
Intellij with TomEE.  I have a long story below of my experiences and
frustrations... but you can stop reading after this paragraph if you aren't
interested in that and just know that I'm looking for documentation,
tutorials, and a community of users for support.  If you know of any of
those, please send them my way. At the end of this message, I volunteer my
time to help with documentation.

I'm feeling sad that I haven't found any tutorials or documentation on
creating a web service or RESTful application in IntelliJ and haven't been
able to get past a simple jury rigged web service.  I want to use the tools
that everyone else is using and recommending (that seems to be IntelliJ).
 I am looking for support in learning about TomEE and getting in touch with
a community of folks that answer each others questions.  In the past I
found this with Rails through IRC, StackOverflow, meet ups, and friends.
 I'm feeling really isolated with TomEE and IntelliJ, but I just know there
must be lots of people out there using these tools.

Will you help me get in touch with the community of developers that uses
TomEE and IntelliJ?  Is this mailing list the place to go for questions and
support?  Is there an IRC?  I didn't see much on StackOverflow, so I'm
guessing not many people go there.

Is there documentation?  Tutorials?

I'm working on a project that has an existing tool to model biological
systems and the tool is slow.  I'm confident that the use of TomEE... or
Rails (if it comes down to it) will greatly improve the performance of the
application.  See http://integrativebioinformatics.com/processdb.html for
more about the tool I'm working on, in case you're curious.  I'm excited to
be part of several projects in computational biology and bringing cutting
edge technology and performance to theoretical biologists.  And I just have
this gut feeling that TomEE is a great tool to bring to this problem domain.

I just need more documentation and support to be successful.

I have created a web service and RESTful application running in TomEE in
several different development environments... I used Maven on the command
line with Vim and other command line tools.  I used NetBeans.  I manually
downloaded the examples and (compiled only) with maven and installed
(deployed) manually.  I've spent the last 3-4 months working with TomEE and
various tools.  I've even integrated our database with a custom EJB running
in the TomEE container and benchmarked the results to tell my client that
Yes, this will speed things up... a lot!

As for IntelliJ... not so productive or lucky.  I managed... after days of
work... to get a the simple Calculator web service example to work... it
took hand editing of lots of files within IntelliJ which essentially turned
IntelliJ (I'm talking about IDEA here, of course) into a text editor with
the ability to start and stop the application server.  I cannot believe
that how I'm using IntelliJ is how expert TomEE/IntelliJ developers use
it... and would like to see a tutorial that walks through how I should be
using these tools to maximize the power of the tools.

I can actually write a tutorial on what I did to get a web service running
in TomEE using IntelliJ IDEA... I'm embarrassed to do so :-) and expose my
ignorance, lol.

However... I will do so if you request it, so that you can see what I'm
doing and give me feedback on the proper way to do things... and in fact...
I would actually modify the tutorial per your advice until it's a valuable
asset to the community... and then I will publish it on my blog (or you
could use it on the tomee.apache.org website, if you feel the quality and
usefulness of the tutorial would benefit the larger community that much).

Thanks!
Jason

--
Jason Zwolak


On Mon, Mar 25, 2013 at 12:27 PM, Jason Zwolak jzwo...@gmail.com wrote:

 I'm looking for a good tutorial or documentation on creating a web
 application using Intellij that will run on top of TomEE.

 It seems that this would be easy given the TomEE website (
 http://tomee.apache.org/tomee-and-intellij.html ) saying

 Intellij is the preferred editor of most of the developers on Apache
 TomEE.

 The evolving TomEE/Intellij integration sets the pace for all other IDE
 integrations.

 TomEE is to Intellij what GlassFish is to NetBeans and your feedback is
 a critcal part of that.

 Well, my feedback is: create some documentation on how to use Intellij and
 TomEE together! :-)

 Does anyone know of good tutorials or documentation?
 --
 Jason Zwolak



jpa extra-lazy initialization

2013-06-03 Thread kumm0307
Hello!

i've realized initialization of jpa provider is not a part of the deploy
process in tomEE (unlike glassfish, or jobss). 
Openjpa creates database schema at the first entitymanager call.
I can reproduce this in a simple web-application too, but my main issue is
integration testing.

I try to populate the database with test data before the test method. 
For example in arquillian i can do it at @before, but at this point the
schema does not exist. 
Tried arquillian-persistence, and failed too.

Is a switch somewhere to turn off this extra-lazy behaviour?



--
View this message in context: 
http://openejb.979440.n4.nabble.com/jpa-extra-lazy-initialization-tp4663443.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Intellij / TomEE tutorial? documentation? anything?

2013-06-03 Thread Romain Manni-Bucau
Hi

writing your experience is always important, for us and for Intellij to see
how to improve it (feel free to open an issue on their bugtracker to ask
for a better integration if you don't like it).

About what users do: webapp dev uses often eclipse + wtp, personally i love
tomee mvn plugin (ok ok i'm for a big part of this tool :p) which makes the
container config and the deployment very easy to handle and close to what
you have in prod (opposed to WTP which is just wrong even if it works).

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 Jason Zwolak jzwo...@gmail.com

 Hi Everyone, I'm still looking for good tutorials or documentation on using
 Intellij with TomEE.  I have a long story below of my experiences and
 frustrations... but you can stop reading after this paragraph if you aren't
 interested in that and just know that I'm looking for documentation,
 tutorials, and a community of users for support.  If you know of any of
 those, please send them my way. At the end of this message, I volunteer my
 time to help with documentation.

 I'm feeling sad that I haven't found any tutorials or documentation on
 creating a web service or RESTful application in IntelliJ and haven't been
 able to get past a simple jury rigged web service.  I want to use the tools
 that everyone else is using and recommending (that seems to be IntelliJ).
  I am looking for support in learning about TomEE and getting in touch with
 a community of folks that answer each others questions.  In the past I
 found this with Rails through IRC, StackOverflow, meet ups, and friends.
  I'm feeling really isolated with TomEE and IntelliJ, but I just know there
 must be lots of people out there using these tools.

 Will you help me get in touch with the community of developers that uses
 TomEE and IntelliJ?  Is this mailing list the place to go for questions and
 support?  Is there an IRC?  I didn't see much on StackOverflow, so I'm
 guessing not many people go there.

 Is there documentation?  Tutorials?

 I'm working on a project that has an existing tool to model biological
 systems and the tool is slow.  I'm confident that the use of TomEE... or
 Rails (if it comes down to it) will greatly improve the performance of the
 application.  See http://integrativebioinformatics.com/processdb.html for
 more about the tool I'm working on, in case you're curious.  I'm excited to
 be part of several projects in computational biology and bringing cutting
 edge technology and performance to theoretical biologists.  And I just have
 this gut feeling that TomEE is a great tool to bring to this problem
 domain.

 I just need more documentation and support to be successful.

 I have created a web service and RESTful application running in TomEE in
 several different development environments... I used Maven on the command
 line with Vim and other command line tools.  I used NetBeans.  I manually
 downloaded the examples and (compiled only) with maven and installed
 (deployed) manually.  I've spent the last 3-4 months working with TomEE and
 various tools.  I've even integrated our database with a custom EJB running
 in the TomEE container and benchmarked the results to tell my client that
 Yes, this will speed things up... a lot!

 As for IntelliJ... not so productive or lucky.  I managed... after days of
 work... to get a the simple Calculator web service example to work... it
 took hand editing of lots of files within IntelliJ which essentially turned
 IntelliJ (I'm talking about IDEA here, of course) into a text editor with
 the ability to start and stop the application server.  I cannot believe
 that how I'm using IntelliJ is how expert TomEE/IntelliJ developers use
 it... and would like to see a tutorial that walks through how I should be
 using these tools to maximize the power of the tools.

 I can actually write a tutorial on what I did to get a web service running
 in TomEE using IntelliJ IDEA... I'm embarrassed to do so :-) and expose my
 ignorance, lol.

 However... I will do so if you request it, so that you can see what I'm
 doing and give me feedback on the proper way to do things... and in fact...
 I would actually modify the tutorial per your advice until it's a valuable
 asset to the community... and then I will publish it on my blog (or you
 could use it on the tomee.apache.org website, if you feel the quality and
 usefulness of the tutorial would benefit the larger community that much).

 Thanks!
 Jason

 --
 Jason Zwolak


 On Mon, Mar 25, 2013 at 12:27 PM, Jason Zwolak jzwo...@gmail.com wrote:

  I'm looking for a good tutorial or documentation on creating a web
  application using Intellij that will run on top of TomEE.
 
  It seems that this would be easy given the TomEE website (
  

Re: jpa extra-lazy initialization

2013-06-03 Thread Romain Manni-Bucau
Hi,

this is an openjpa feature.

In OpenEJB we have https://issues.apache.org/jira/browse/OPENEJB-1878

+ to init a database (mem) from sql script you can simply create a script
(sql) at classpath called import-name of datasource or persistence
unit.sql with a sql command by line and it will be executed at startup.

*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/3 kumm0307 kumm0...@gmail.com

 Hello!

 i've realized initialization of jpa provider is not a part of the deploy
 process in tomEE (unlike glassfish, or jobss).
 Openjpa creates database schema at the first entitymanager call.
 I can reproduce this in a simple web-application too, but my main issue is
 integration testing.

 I try to populate the database with test data before the test method.
 For example in arquillian i can do it at @before, but at this point the
 schema does not exist.
 Tried arquillian-persistence, and failed too.

 Is a switch somewhere to turn off this extra-lazy behaviour?



 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/jpa-extra-lazy-initialization-tp4663443.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: Eclipse timeout

2013-06-03 Thread Caterpillar
Il 28/05/2013 18:37, John D. Ament ha scritto:
 Right, so you're referring to a persistence context that doesn't exist
 (because you have no persistence.xml)


 On Tue, May 28, 2013 at 12:27 PM, Caterpillar caterpilla...@gmail.comwrote:

 2013/5/28 John D. Ament john.d.am...@gmail.com

 Do you have an injection point that is using @PersistenceContext ?



 Yes I do.

 It is in DataAccessService.java @

 http://www.simtay.com/simple-crud-web-application-with-jsf-2-1-primefaces-3-5-maven-and-jpa/

it worked, thank you very much