Re: JDK version certified with the latest release of tomee-1.0.0
On Jun 1, 2012, at 10:52 PM, David Blevins wrote: On May 31, 2012, at 12:11 PM, Fernando Lozano wrote: Hi, TomEE won't work with JDK7 means wan't suficiently tested, use at your own risk That one. OpenJPA is known not to build with Java 7, but I'm not sure how it runs. There are some OpenJPA features we don't use such as its ability to create and managed DataSource -- TomEE does that part. JDK6 has EOL at November this year, and Fedora Linux 17 already ships without JDK6, only with JDK7. Maybe you plan a TomEE 1.x relase soon that works fine with JDK7? I spent a good chunk of the day updating our TCK setup in EC2 to be able to test with either Java 6 or 7 and now have a healthy looking run going. We'll see how it turns out! Looking good so far. Good news! This build got a 100% pass on jdk1.7.0_04 linux 32bit. https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/1.1.0-SNAPSHOT/apache-tomee-1.1.0-20120602.040901-9-webprofile.tar.gz I haven't yet tested the released 1.0, but I'd say things are very good :) I'll hookup the 1.0.1-SNAPSHOT codebase tomorrow. -David
MyFaces and ViewScope, Mojarra + TomEE ?
I have an issue with @ViewScope. My @ViewScope bean has a viewParam named id. The page example.xhtml is opened with GET parameter id, i.e example.xhtml?id=343 When I open this in browser, and fire actions on the page (both AJAX and normal HTTP) everything works fine, as it is excepted with ViewScoped bean. But when I open concurrently the same page with different id in the second tab the first one throws ViewExpiredException when I fire some action. I googled a lot a deduced that this shouldn't happen, so I'd like to run my application with Mojarra implementation instead of MyFaces. Is it possible to replace MyFaces with Mojarra on TomEE, and if yes, then how to do this? Thanks for all help. -- View this message in context: http://openejb.979440.n4.nabble.com/MyFaces-and-ViewScope-Mojarra-TomEE-tp4655312.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: MyFaces and ViewScope, Mojarra + TomEE ?
Well, I think that I've managed to solve the problem with expiring view. The problem was that I had 3 h:forms in the page. When I put all content of the page into one form, I didn't expirienced expired view exception anymore. But nevertheless I'd like to ask how I can install Mojarra on TomEE as it is possible that I would like to do that in the future. -- View this message in context: http://openejb.979440.n4.nabble.com/MyFaces-and-ViewScope-Mojarra-TomEE-tp4655312p4655313.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: CMP failed with 3 layered Object structure
On Jun 2, 2012, at 2:53 AM, georgenis wrote: I thought the container manage all database connections?! It depends. There are two types of JPA, RESOURCE_LOCAL were the application does the management and TRANSACTION where the container does the management. A basic overview: http://openejb.apache.org/jpa-concepts.html This looks like a lazy-loading/detach problem. The relationship is marked as lazy and therefore not loaded when the Entity is pulled from the database via the EntityManager. To cause the lazily loaded references to be loaded, the collection has to be referenced while the transaction (either EntityTransaction or JTA Transaction) is still in progress. If you can post the web service class I can give some better pointers on the best place to do that. -David
Re: CMP failed with 3 layered Object structure
Hi, here is a short preview of my method: @Override public RoleInformation getRole(String roleId, String sessionId) throws OpenflowException { Session session = sessionBean.isSessionValid(sessionId); if(session!=null) { RoleInformation roleInformation = (RoleInformation) entityManager.find(RoleInformation.class, roleId); if(roleInformation==null) throw new OpenflowException(Role does not exists +roleId); return roleInformation; } return null; } The entityManager will be injected by @PersistenceContext(unitName=myUnit). -- View this message in context: http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655315.html Sent from the OpenEJB User mailing list archive at Nabble.com.