Re: OutOfMemory doing a JUnit using OpenEJB Embedded

2009-11-17 Thread Jean-Louis MONTEIRO
Hi Patrick, javax.validation.* = Bean Validation API (JSR 303). If you decide to go to JPA 2.0 (if it works without any changes), you must update APIs (JPA with Criteria in, Bean Validation). Jean-Louis PatLaPatate wrote: Hi Quintin, I ran into this problem once I changed my

Re: Retrieving Group Principals

2009-11-17 Thread Jean-Louis MONTEIRO
Hi, i would prefer that proposition to locate proprietary code. Jean-Louis Q Beukes wrote: Or maybe a better way would be to use a custom SecurityService (which could extend the GeronimoSecurityService) in some way? Though this would still require accessing the ThreadContext. Quintin

Re: Retrieving Group Principals

2009-11-17 Thread Quintin Beukes
I'm not sure I understand what you mean? Quintin Beukes On Tue, Nov 17, 2009 at 11:21 AM, Jean-Louis MONTEIRO jean-louis.monte...@atosorigin.com wrote: Hi, i would prefer that proposition to locate proprietary code. Jean-Louis Q Beukes wrote: Or maybe a better way would be to use a

Re: Retrieving Group Principals

2009-11-17 Thread Jean-Louis MONTEIRO
Quintin Beukes-2 wrote: I'm not sure I understand what you mean? Sorry for that :p I was just saying that if you wanna use ThreadContext to get principals list, it's probably better to push that code in a custom SecurityService. Jean-Louis -- View this message in context:

Session Bean pooling

2009-11-17 Thread Mansour Al Akeel
Hello All: I am new to EJB in general. We need to simulate an emergency system, to study the resources interaction. The main actors are police agents, ambulance, Fire department. The idea is to create a session bean for each of these actors, and specify how many one available at any time and ready

Re: Session Bean pooling

2009-11-17 Thread Jean-Louis MONTEIRO
Hello, you can set the max pool size to 1. Another way should be to use Singleton beans (new feature in EJB 3.1 and already available in OpenEJB). Regards, Jean-Louis Mansour Al Akeel wrote: Hello All: I am new to EJB in general. We need to simulate an emergency system, to study the

Re: REQUIRES_NEW within a NEVER transaction throwing an exception, bug or misuse?

2009-11-17 Thread John Ament
Based on how JTA's supposed to work, if a NEVER is calling a REQUIRES_NEW EJB, then the REQUIRES_NEW runs in its own transaction context. No exception should be thrown. In my opinion, from a design stand point, assuming that you mean method A calls methods B and C, then A should be anything

Java Web Start

2009-11-17 Thread chrishumphrey
Hi all, I'm working on a project where I'm trying to deploy an evaluation version of my app. The app is built on top of openejb/openjpa. I found a couple of posts related to this, one that was a JIRA created (in 2005) to get openejb working from a JWS installation (no activity at all). One

Re: Java Web Start

2009-11-17 Thread Jacek Laskowski
On Wed, Nov 18, 2009 at 1:24 AM, chrishumphrey ch...@parallelsw.com wrote:  I'm getting an npe from 'org.apache.openejb.config.DeploymentLoader.getWebDescriptors(DeploymentLoader:1057)' Would you mind sending the entire stack trace? It'd greatly improve our searching for a viable solution. If