unused persistence units

2009-01-08 Thread Martin Vysny
Hi guys, we have several persistence.xml files in our application just for testing purposes. They are placed in src/test/resources/... and thus not packaged to the final product. However Eclipse places them on the classpath which cause OpenEJB to see them. Can OpenEJB be configured to somehow ign

Re: Lookup of EntityManager from JNDI

2008-12-04 Thread Martin Vysny
On Wed, 2008-12-03 at 11:32 -0800, Dain Sundstrom wrote: > On Dec 2, 2008, at 7:35 AM, Martin Vysny wrote: > > > Hi guys, > > is it possible to lookup EntityManager from JNDI? > > Not right now. It is David and I have been talking about doing (for > non-related i

Lookup of EntityManager from JNDI

2008-12-02 Thread Martin Vysny
Hi guys, is it possible to lookup EntityManager from JNDI? I cannot use the @PersistentContext injection because we are using run-time-generated (not compile-time) unitName. This is because the JNDI location of the DataSource (the element in persistence.xml) is different for each J2EE server; ou

Re: Get current SessionContext

2008-11-21 Thread Martin Vysny
On Thu, 2008-11-20 at 18:17 +0100, Martin Vysny wrote: > Hi guys, > perhaps a strange question: is there an OpenEJB-specific way to detect > if my code is currently being executed in a stateless session bean > context (and get its SessionContext)? In pure J2EE this is not possible &

Get current SessionContext

2008-11-20 Thread Martin Vysny
Hi guys, perhaps a strange question: is there an OpenEJB-specific way to detect if my code is currently being executed in a stateless session bean context (and get its SessionContext)? In pure J2EE this is not possible (unless you remember the SessionContext and store it into let's say ThreadLoca

Re: Custom JAAS LoginModule: Principal with empty name provided

2008-09-05 Thread Martin Vysny
he login module to > > initialize early. The security service performs this in a try catch > > that ignores any exceptions. > > > > -dain > > > > On Sep 3, 2008, at 6:46 AM, Martin Vysny wrote: > > > >> Hello guys, > >> we tried to supply

Custom JAAS LoginModule: Principal with empty name provided

2008-09-03 Thread Martin Vysny
Hello guys, we tried to supply our custom JAAS LoginModule to OpenEJB. It works beautifully, I have just one question. When the OpenEJB is created (using the new InitialContext(properties) construct), it invokes this LoginModule and the handler supplies an empty string as an username in NameCallb

Re: Docs: EJB 3.1 Singleton documentation

2008-08-27 Thread Martin Vysny
On Tue, 2008-08-26 at 11:12 -0700, David Blevins wrote: > On Aug 26, 2008, at 5:23 AM, Martin Vysny wrote: > > > Many thanks for clarifying on how the locks works! One more question, > > just to be 100% sure :) . Recently I studied the java memory model a > > bit >

Re: Docs: EJB 3.1 Singleton documentation

2008-08-26 Thread Martin Vysny
On Mon, 2008-08-25 at 20:23 -0700, David Blevins wrote: > Hi Martin, > > On Aug 25, 2008, at 4:33 AM, Martin Vysny wrote: > > > Hi David, > > impressive work indeed, thank you very much! I am especially grateful > > for the Singleton and Startup functionality whic

Re: Docs: EJB 3.1 Singleton documentation

2008-08-25 Thread Martin Vysny
On Sat, 2008-08-23 at 02:04 -0700, David Blevins wrote: > All, > > We've implemented the new EJB 3.1 javax.ejb.Singleton bean type. > Singletons are a new type of Session bean being added to the EJB 3.1 > specification. They provide some much needed functionality to the > world of EJB and

OpenEJB 3.0.1 release date

2008-08-11 Thread Martin Vysny
Hi guys, can you please tell me when the 3.0.1 is planned to be released? (preferable with fixed bug: https://issues.apache.org/jira/browse/OPENEJB-806 :-) Thanks, Martin signature.asc Description: This is a digitally signed message part

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-05 Thread Martin Vysny
On Mon, 2008-08-04 at 15:44 -0700, David Blevins wrote: > On Aug 4, 2008, at 5:41 AM, Martin Vysny wrote: > > > On Sat, 2008-08-02 at 15:23 -0700, David Blevins wrote: > >> On Jul 30, 2008, at 12:34 AM, Martin Vysny wrote: > >> > >>> Hello, > >>

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-04 Thread Martin Vysny
On Sat, 2008-08-02 at 15:23 -0700, David Blevins wrote: > On Jul 30, 2008, at 12:34 AM, Martin Vysny wrote: > > > Hello, > > currently we are starting OpenEJB as an embedded service (by > > performing a lookup of > > org.apache.openejb.client.LocalInitialContextFact

Shutdown an embedded instance of OpenEJB programatically

2008-07-30 Thread Martin Vysny
shutdown OpenEJB cleanly, for example to stop uncanceled timers. Thanks! Sincerely, Martin Vysny signature.asc Description: This is a digitally signed message part

Re: PersistenceContext and Hibernate session

2008-07-11 Thread Martin Vysny
On Fri, 2008-07-11 at 06:50 -0700, chawax wrote: > Hi, > > In my application, I have two persistence contexts for the same persistence > unit, one for JPA, the other for Hibernate : > > /** > * Inject persistence context t4Seam > */ > @javax.persistence.PersistenceContext(u

Re: IllegalStateException: Cannot log transactions

2008-06-24 Thread Martin Vysny
On Fri, 2008-06-20 at 20:11 -0700, David Blevins wrote: > On May 23, 2008, at 7:11 AM, Martin Vysny wrote: > > > On Thu, 2008-05-22 at 22:31 -0700, David Blevins wrote: > >> On May 21, 2008, at 6:04 AM, Martin Vysny wrote: > >> > >>> On Wed, 20

Re: OpenEJB local interfaces JNDI security

2008-06-18 Thread Martin Vysny
On Tue, 2008-06-17 at 14:03 -0700, David Blevins wrote: > On Jun 17, 2008, at 12:37 AM, Martin Vysny wrote: > > > Probably the client identity should be removed from ThreadLocal on > > Context.close(), or J2SE security (doPrivileged) could be used to hold > > the princi

OpenEJB local interfaces JNDI security

2008-06-17 Thread Martin Vysny
Hi guys, another issue ;) I tried to use JNDI security with OpenEJB - that is, constructing InitialContext with properties Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS set. It works beautifully, however when another InitialContext is constructed (first one is closed using Context.c

Re: IllegalStateException: Cannot log transactions

2008-05-23 Thread Martin Vysny
On Thu, 2008-05-22 at 22:31 -0700, David Blevins wrote: > On May 21, 2008, at 6:04 AM, Martin Vysny wrote: > > > On Wed, 2008-05-21 at 14:18 +0530, Manu George wrote: > >> This looks like the XAResource that is being passed to the geronimo > >> transaction manager

Re: IllegalStateException: Cannot log transactions

2008-05-21 Thread Martin Vysny
gt; Regards > Manu > Thanks, reported as https://issues.apache.org/jira/browse/OPENEJB-806 > On Mon, May 19, 2008 at 4:59 PM, Martin Vysny <[EMAIL PROTECTED]> wrote: > > Hi, > > the following error message occurs when OpenEJB tries to commit a > > transacti

IllegalStateException: Cannot log transactions

2008-05-19 Thread Martin Vysny
Hi, the following error message occurs when OpenEJB tries to commit a transaction (attached at the end of the mail). There are two transactions active as one method with Required invokes another with RequiresNew. The thing is, everything works fine - OpenEJB does not crash, transactions are com

Re: AbstractMethodError

2008-05-15 Thread Martin Vysny
On Thu, 2008-05-15 at 06:33 -0700, xph wrote: > > Martin Vysny-2 wrote: > > > > > > Hi, > > we had issues with this bug as well, when we used hibernate 3.2.4ga in > > our project as a dependency in Maven2. Hibernate pulled asm-1.5.3 (I > > think) whi

Re: Failed to set default transaction isolation

2008-05-15 Thread Martin Vysny
On Thu, 2008-05-15 at 00:52 -0700, David Blevins wrote: > On May 15, 2008, at 12:14 AM, Martin Vysny wrote: > > > On Wed, 2008-05-14 at 21:49 -0700, David Blevins wrote: > >> Hi Martin, > >> > >> We changed this code in 3.0 so

Re: AbstractMethodError

2008-05-15 Thread Martin Vysny
On Thu, 2008-05-15 at 05:28 -0700, xph wrote: > I am trying to run openEJB 3.0 embedded and remoteable. > > I get the following java.lang.AbstractMethodError when starting up: > > It seems to be failing due to a mismatch between compiled and runtime > code, > I guess with the asm jar. I am using

Re: Failed to set default transaction isolation

2008-05-15 Thread Martin Vysny
ors/maven2/org/apache/openejb/openejb-core/3.0/ Solved! Damn Eclipse, trying invisible switch to IBM Java 5 on me again :). When I run OpenEJB on Sun's JDK6, the problem went away. Thanks again, Martin > On May 14, 2008, at 5:55 AM, Martin Vysny wrote: > > > Hi, > >

Failed to set default transaction isolation

2008-05-14 Thread Martin Vysny
ot;" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:63) at java.lang.Integer.parseInt(Integer.java:502) at java.lang.Integer.valueOf(Integer.java:587) at org.apache.xbean.propertyeditor.IntegerEditor.toObjectImpl(IntegerEditor.java:29) ... 46 more -- Mgr. M

Re: OpenEJB maven problem

2008-02-07 Thread Martin Vysny
JEE > >> application during a maven build. The application is compiled using > >> JDK 1.6 with target 1.5 due to EJB3 deps, OpenEJB is compiled from > >> trunk on JDK1.5. I'm running OS X. > >> > >> Hope somebody can help. > >> >

Re: ClassNotFoundException: JaccProvider$Factory

2008-01-21 Thread Martin Vysny
On Wed, 2008-01-16 at 12:30 -0800, David Blevins wrote: > On Jan 16, 2008, at 1:34 AM, Martin Vysny wrote: > > > Hi guys, > > can you please help me with this one? Rarely, the OpenEJB startup > > fails with the exception ClassNotFoundException: JaccProvider$Factory >

Re: ClassNotFoundException: JaccProvider$Factory

2008-01-21 Thread Martin Vysny
he classpath), on computer B it failed. Perhaps some classloader caused it - I don't know for sure. However, to fix this issue just remove javaee (or other non-OpenEJB/Geronimo JACC implementation) from classpath. > > On Jan 16, 2008, at 1:34 AM, Martin Vysny wrote: > > > >

ClassNotFoundException: JaccProvider$Factory

2008-01-16 Thread Martin Vysny
Hi guys, can you please help me with this one? Rarely, the OpenEJB startup fails with the exception ClassNotFoundException: JaccProvider$Factory (full stacktrace is below). The interesting point is, that you can just rerun the OpenEJB and the server would start normally. We are using OpenEJB 3.0-

Re: OpenEJB and Hibernate

2007-10-18 Thread Martin Vysny
On Thu, 2007-10-18 at 16:09 +0200, Jacek Laskowski wrote: > On 10/18/07, Martin Vysny <[EMAIL PROTECTED]> wrote: > > > The project's not that unusual - simply we can't use JPA nor EJB3.0, > > because our product will finally be deployed on WebSphere6.1 (without

Re: OpenEJB and Hibernate

2007-10-18 Thread Martin Vysny
On Wed, 2007-10-17 at 10:02 +0200, Jacek Laskowski wrote: > On 10/17/07, Martin Vysny <[EMAIL PROTECTED]> wrote: > > > Sure, I'll try to prepare a sample project based on OpenEJB example > > projects. It will take time though - please be patient ;) > > Just wr

Re: Specifying source queue for message driven bean (MDB)

2007-10-18 Thread Martin Vysny
On Wed, 2007-10-17 at 21:51 +0200, Jacek Laskowski wrote: > On 10/17/07, Martin Vysny <[EMAIL PROTECTED]> wrote: > > > to the stateless bean definition, and > > > > > > destination > > queue/FE_QUEUE > > > > > > to the message

Re: Specifying source queue for message driven bean (MDB)

2007-10-17 Thread Martin Vysny
tions are correct, I'm surprised you didn't get a > null pointer exception when the container attempted to construct an > ActimeMQ Queue without a destination name. Patched that already :-) https://issues.apache.org/jira/browse/OPENEJB-706 > > On Oct 16, 2007, at

Re: OpenEJB and Hibernate

2007-10-17 Thread Martin Vysny
On Tue, 2007-10-16 at 21:57 +0200, Jacek Laskowski wrote: > On 10/16/07, Martin Vysny <[EMAIL PROTECTED]> wrote: > > > Okay, it's java:comp/TransactionManager from within a bean, or > > java:openejb/TransactionManager from outside a bean ;) We are using > >

Specifying source queue for message driven bean (MDB)

2007-10-16 Thread Martin Vysny
e CallAgentMDB expects messages in "queue/FE_QUEUE" queue. How can I set the CallAgentMDB to listen on "Default Queue"? Can you please provide me with some MDB examples on OpenEJB? Thanks! Martin -- Mgr. Martin Vysny | [EMAIL PROTECTED] Software Engineer Whitestein Technol

Re: OpenEJB and Hibernate

2007-10-16 Thread Martin Vysny
On Mon, 2007-10-15 at 11:06 +0200, Martin Vysny wrote: > On Fri, 2007-10-12 at 13:54 -0700, Dain Sundstrom wrote: > > On Oct 12, 2007, at 2:41 AM, Martin Vysny wrote: > > > > > Hi guys, > > > I tried to use Hibernate in OpenEJB (our application unfortunately

Re: OpenEJB and Hibernate

2007-10-15 Thread Martin Vysny
On Fri, 2007-10-12 at 13:54 -0700, Dain Sundstrom wrote: > On Oct 12, 2007, at 2:41 AM, Martin Vysny wrote: > > > Hi guys, > > I tried to use Hibernate in OpenEJB (our application unfortunately > > still does not use JPA - it uses Hibernate directly instead). However,

Re: OpenEJB and Hibernate

2007-10-12 Thread Martin Vysny
On Fri, 2007-10-12 at 12:09 +0200, Jacek Laskowski wrote: > On 10/12/07, Martin Vysny <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I tried to use Hibernate in OpenEJB (our application unfortunately > > still does not use JPA - it uses Hibernate directly instead). >

OpenEJB and Hibernate

2007-10-12 Thread Martin Vysny
org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) at ... Have you guys tried to use OpenEJB with Hibernate? Can you please provide me with some hints? Which one is harder: modify Hibernate to use 2.2.3 or OpenEJB to use 1.5.3? :-) Many thanks! Martin -- Mgr. Martin Vysny | [EMAIL PROTECTED

Re: Exception: NullPointerException

2007-10-11 Thread Martin Vysny
s, you guys better be proud of yourselves :) We intend to use OpenEJB for developing/debugging JEE apps quickly in Eclipse, so you'll probably have to bear with me for a while :) keep up the good work! Martin > On 10/10/07, Martin Vysny <[EMAIL PROTECTED]> wrote: > > > >

Re: Exception: NullPointerException

2007-10-10 Thread Martin Vysny
On Wed, 2007-10-10 at 10:04 +0200, Martin Vysny wrote: > On Wed, 2007-10-10 at 09:05 +0200, Martin Vysny wrote: > > Hi guys, > > I tried to deploy an EJB2.1 project in OpenEJB, (btw EJB2.0 descriptor > > is rejected by OpenEJB: validation error - the > > element in

Re: Exception: NullPointerException

2007-10-10 Thread Martin Vysny
On Wed, 2007-10-10 at 09:05 +0200, Martin Vysny wrote: > Hi guys, > I tried to deploy an EJB2.1 project in OpenEJB, (btw EJB2.0 descriptor > is rejected by OpenEJB: validation error - the > element in is rejected), > but I get this error: > > ERROR - FATAL ERROR: Unkno

Exception: NullPointerException

2007-10-10 Thread Martin Vysny
(ConfigurationFactory.java:268) at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:206) ... 28 more I'm using OpenEJB 3.0-beta-1, it seems that the moduleID is not set correctly at DeploymentLoader:372. I'll try to fix it somehow - I'll post later.