RE: Cannot override security annotations

2009-01-12 Thread Marcin Kwapisz
ng > via InitialContext didn't work. Both approaches should work in the > current release. [Marcin Kwapisz] p.setProperty("log4j.category.OpenEJB.startup.attributes", "DEBUG"); ctx = new InitialContext(p); It does not work. That’s why I have set that value as

RE: unused persistence units

2009-01-08 Thread Marcin Kwapisz
to > somehow ignore particular persistence.xml files? The problem is that > OpenEJB initializes these persistence.xml files and it causes Hibernate > to create-drop the development database, and this is what I'd like to > avoid ;) [Marcin Kwapisz] Hi Martin, If you can use maven, th

RE: Cannot override security annotations

2009-01-08 Thread Marcin Kwapisz
ws pl.zsk.sos.exception.StudentException -- StudentEndpoint : * : * : createStudent(*) SysAdmin Regards -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland

Cannot override security annotations

2009-01-07 Thread Marcin Kwapisz
SysAdmin SysAdmin StudentEndpoint createStudent Thanks in advance -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland

RE: Maven and OpenEJB unit testing

2008-12-08 Thread Marcin Kwapisz
> Did you define this jar file as a dependency in any other module in > its POM.XML file ? [Marcin Kwapisz] PersonAccountModule directly depends on EJBFacades. There are not any transitive dependencies between these two modules. I have made some investigations. EJBFacades-1.0-SNAPSH

Maven and OpenEJB unit testing

2008-12-08 Thread Marcin Kwapisz
jbModule in classpath: D:\JavaProg\MySamples\EJB\Samplev7\JEEMavenProject2\PersonAccountModule\target\classes INFO - Found EjbModule in classpath: D:\JavaProg\MySamples\EJB\Samplev7\JEEMavenProject2\PersonAccountModule\target\test-classes INFO - Found EjbModule in classpath: e:\Profiles\Marcin K

RE: Override annotations in ejb-jar.xml for a test case

2008-10-09 Thread Marcin Kwapisz
Hi, > We don't have any functionality for supplying an alternate ejb-jar.xml > for testing purposes. It's not a bad idea and is something we might > be able to add after we get the 3.1 release out the door. [Marcin Kwapisz] My Maven2 profile is as follows. directs

RE: Rollback transactions in unit testing

2008-10-02 Thread Marcin Kwapisz
(or > empty) and create tables in junit tests. This would heavily impact the > development and testing. > this is the reason why in such cases a rollback after a unit test > instead of > makes sense. [Marcin Kwapisz] I know. That's why we run as many unit tests as it is possibl

RE: Rollback transactions in unit testing

2008-09-30 Thread Marcin Kwapisz
[Marcin Kwapisz] I do not understand why you want to rollback committed transaction, especially in unit test. Even, I do not know how to do it in JEE application. Maybe our way will suit you: 1. set drop and create strategy in persistence.xml (property name depends on JPA provider, we have

Override annotations in ejb-jar.xml for a test case

2008-09-22 Thread Marcin Kwapisz
pl.zsk.sos.interceptor.TestInterceptor automatic configuration does not find my EJBs and I get javax.naming.NameNotFoundException How can I override annotations or change configuration for my test case? Can it be done in a test code? Regards -- Marcin Kwapisz Division of Computer

RE: Unit tests for concurrent transactions

2008-09-09 Thread Marcin Kwapisz
Great, thanks for the example. We will try to prepare unit tests for concurrent transactions definitely (and publish as an solution/example). [Marcin Kwapisz] Best regards -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland

Unit tests for concurrent transactions

2008-09-08 Thread Marcin Kwapisz
-- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland

RE: Configuring hibernate properties in unit tests

2008-09-02 Thread Marcin Kwapisz
> Thanks for the link, this post doesn't look to be able to help me with > runtime configuration of hibernate properties though, looks like its > not > possible so I will settle for seperate persistence.xml files. > [Marcin Kwapisz] Maybe I misunderstood something. You want t

RE: Configuring hibernate properties in unit tests

2008-08-31 Thread Marcin Kwapisz
I think that blog entry can be useful. http://qbeukes.blogspot.com/2008/08/toplink-as-your-openejb-persistence.html Regards -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland > Hi, > > I'm using openejb with hibernate for unit tetsting m

RE: OpenEJB, Maven and Hibernate problem

2008-08-20 Thread Marcin Kwapisz
> Also, we have an OpenEJB, Maven, Hibernate example here that may > help. > http://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples/jpa- > hibernate/ [Marcin Kwapisz] Hi, After a little investigation I am almost sure that the problem is with hibernate, not within OpenEJ

RE: OpenEJB, Maven and Hibernate problem

2008-08-20 Thread Marcin Kwapisz
implements Serializable I found that inheritance JOINED and SecondaryTable does not work with Hibernate. So the problem is not with OpenEJB (I think). I don’t know why I get "null" in original project. Can it be the same problem or a different one? Regards -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland

OpenEJB, Maven and Hibernate problem

2008-08-20 Thread Marcin Kwapisz
true zsk/samples/EjbService/*Remote.class 3.0 J2EE Thanks in advance Regards -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland

RE: Propblem with OpenEJB + Toplink unit tests

2008-08-05 Thread Marcin Kwapisz
> > value="org.eclipse.persistence.platform.database.HSQLPlatform"/> > > value="database"/> > [Marcin Kwapisz] Hi David, Properties in main persistence.xml (for toplink) are almost the same. I have set generation.out

RE: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread Marcin Kwapisz
ere's anything similar in TopLink? > [Marcin Kwapisz] Thanks David for the hint. There is such feature and similar problem (solution also) is described here: http://forums.oracle.com/forums/thread.jspa?threadID=625250&tstart=0&messageID=2390496 and he

Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread Marcin Kwapisz
s is strange. Why transaction does not begin? Any suggestions how to configure Toplink to make it work. Thanks in advance -- Marcin Kwapisz Division of Computer Networks Technical Univeristy of Lodz, Poland