/ebr-orchestration-engine/target/classes -
OpenEJB.startup.config
2011-01-15 03:06:18,799:INFOFound EjbModule in classpath:
/stf_fast/prj/EBR/work/ebr-orchestration-engine/target/classes -
OpenEJB.startup.config
Just some initial ideas. Will look at it a bit more in a moment.
Quintin Be
Moved over to dev list.
Quintin Beukes
On Thu, Jan 14, 2010 at 1:39 AM, David Blevins wrote:
>
> On Jan 13, 2010, at 11:18 AM, Andy Gumbrecht wrote:
>
>> Is there a reason why such an 'old' activemq version is being used? - 4.x
>> is really only for jdk1.4.
to my POM, but
it didn't seem to override openejb's dependency. I also tried adding
activemq-core-4.1.2 as a dependency to my POM, but this didn't work
either. So it seems that unless you already have this jar, you can't
build OpenEJB 3.1.2
Quintin Beukes
Hey,
Is this an error, or was it intended.
On http://openejb.apache.org/download.html, the standalone server's
title reads "OpenEJB Standlone Server". "Standlone" is missing an 'a'.
Quintin Beukes
On the same machine as you're running the JMS example, can you run:
mysql -h localhost -u jms -p jms jms
And it works?
If so, try enabling debug logging for the whole ActiveMQ and OpenEJB
and send that.
Q
>> 2. I'm planning to use JMS in the near future.
>> My plan is to use ActiveMQ in embedde
I guess another option is making an installer. Zip the distribution
and make a JWS installer which setups it up as a standard app on the
target PC. It all depends on the reason for using JWS, though.
Quintin Beukes
On Sun, Nov 22, 2009 at 8:24 PM, chrishumphrey wrote:
>
> I was not sur
now. You pretty much made me fear for my
life :>
Quintin Beukes
On Sun, Nov 22, 2009 at 9:26 AM, chrishumphrey wrote:
>
> Hi Quintin,
>
> I'm new to Java-Web-Start, but I think the problem is, the app comes down as
> pure URL's, and when openejb loads it only re
WS is that it's not allowed
to access something.
Quintin Beukes
On Fri, Nov 20, 2009 at 7:58 AM, chrishumphrey wrote:
>
> Sounds good, I will spend some time on it and post when I get something.
>
>
> Jacek Laskowski wrote:
>>
>> On Thu, Nov 19, 2009 at 4:18 A
I'm not sure I understand what you mean?
Quintin Beukes
On Tue, Nov 17, 2009 at 11:21 AM, Jean-Louis MONTEIRO
wrote:
>
> Hi,
>
> i would prefer that proposition to locate proprietary code.
>
> Jean-Louis
>
>
> Q Beukes wrote:
>>
>> Or
I see. JPA2 is becoming quite the popular topic.
Quintin Beukes
On Mon, Nov 16, 2009 at 3:24 PM, PatLaPatate
wrote:
>
> Hi Quintin,
>
> I ran into this problem once I changed my configuration to run openEJB over
> JPA2.
>
> David had warned me about this. Seems like
stop the server on the local machine all works well as intended.
Quintin Beukes
> Creating session keys requires to involve more complexity and I think I use
> Statefuls instead
>
>
Definitely. I would do the same. I only did the session keys because
the server came under too much load. If I used OpenEJB back then I
think it would have been different though.
Q
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 Beukes
On Sat, Nov 14, 2009 at 2:02 PM, Quintin Beukes wrote:
> To achieve this I had a look at
figure
it should work, though I'd just like to be sure and I don't have any
way to test until tomorrow.
Thanks,
Quintin Beukes
On Sat, Nov 14, 2009 at 1:17 PM, Quintin Beukes wrote:
> Hey,
>
> I've got a bunch of @RolesAllowed annotations, which basically
> reference t
" modularity.
How can I retrieve a list of all roles? Even if it means I have to go
against the standard for this one thing, in which case I'll put it in
a utility class which validates it's environment and raise an error +
description when run in another server. This way when moving it I'll
remember to find another way of achieving the same. I don't think this
will happen anyway.
Quintin Beukes
a 100% local application. You don't even NOTICE the overhead of
EJB calls. I don't think I'll have problems deciding on an application
server/container in the near future.
Quintin Beukes
On Thu, Nov 12, 2009 at 8:13 PM, David Blevins wrote:
>
> On Nov 12, 2009, at 5:09 A
Yes. Same ear. I'll do some more tests when I get my life back and
post a JIRA for it. ;>
Quintin Beukes
On Wed, Nov 11, 2009 at 12:30 AM, David Blevins wrote:
>
> On Nov 6, 2009, at 2:23 AM, Quintin Beukes wrote:
>
>> I don't think this is a big problem. I just wa
/entitymanager and openejb libs to your
classpath.
org.hibernate.ejb.HibernatePersistence
I've never seen the error you mentioned, and I'm getting all these
deps from official maven repositories for each, so I know I'm not
throwing anything non-standard in there.
he servlet. Delegating this to a dedicated
Initialize class/object would centralize the code.
Quintin Beukes
On Wed, Nov 11, 2009 at 12:21 PM, brownie wrote:
>
> I need to write JUnit tests for an existing project. There are some servlets
> that should be loaded to initialize some stuff.
mote context keep an open connection at
all times, or does it get a session key and have a detached session context?
b) If in either of these cases a connection fails, will it transparently
attempt to recover from this?
Quintin Beukes
They don't work the same because you're using patterns/regular expressions
to do the matching. Do something like:
openejb.deployments.classpath.include=file:/{1,3}G:/data/eclipse/workspace_0/my-serveur/build/classes/
This wil allow a file:/ with 1, 2 OR 3 slashes.
Quintin Beukes
On
he pattern. If you did not intend
your patterns might not work correctly."
Quintin Beukes
On Mon, Nov 2, 2009 at 10:36 AM, Quintin Beukes wrote:
> Can you please paste the settings with which you are setting up these
> excludes? Are you using the quotes in the settings, for ex it says:
>
de=".*"
Try setting it as:
openejb.deployments.classpath.exclude=.*
Quintin Beukes
On Sat, Oct 24, 2009 at 7:40 PM, hypnosat7 wrote:
>
> I've copy/paste what you've proposed but my ejbs still being discovered. In
> fact I have 2 different projects, one for the te
Hey,
Can you please paste the exact heap error stack traces.
Have you tried increasing your heap size?
Quintin Beukes
On Fri, Oct 30, 2009 at 1:57 PM, adam.granger wrote:
>
> Hi guys,
>
> We are relatively new to using openejb and are experiencing the following
> problem(
Are you using clustering?
Quintin Beukes
On Thu, Oct 29, 2009 at 1:05 AM, bitz wrote:
>
> I'm using Geronimo 2.2 which uses OpenEJB 3.1.2. I have a client application
> which retrieves a remote EJB reference and makes a remote EJB method call.
> I'm seeing the followin
These have to work.
It looks like all 3 the necessary properties are being detected, so
you're specifying them in the correct place (system property or IC
environment). The only explanation could be that the values aren't
just right yet.
So, set the following and see if it works:
openejb.deployme
ted
options. So it's not required to use the jar-file element when you
have multiple jars/PUs.
Quintin Beukes
On Sat, Oct 24, 2009 at 10:29 AM, Jean-Louis MONTEIRO
wrote:
>
> Hi Quintin,
>
> AFAIK, the class element in the persistence unit can be used to reference a
> c
these things are unnecessary.
Quintin Beukes
On Sat, Oct 24, 2009 at 8:12 AM, hypnosat7 wrote:
>
> Is it necessary to have a Singleton ?
>
> Christian Bourque wrote:
>>
>> Hi,
>>
>> Here's my solution to do a clean shutdown of HSQL when using the file
&g
Thanks. I was wondering about that for the openejb-junit project.
Quintin Beukes
On Fri, Oct 23, 2009 at 11:23 PM, Christian Bourque
wrote:
> By calling "close()" on the initial context that bootstrapped the container.
> You have to set this property on the initia
Yes, that clears it up. If you don't mind me asking another question,
how do you shut down the container in @AfterClass?
Quintin Beukes
On Fri, Oct 23, 2009 at 10:31 PM, Christian Bourque
wrote:
> Hey,
>
> Well in my case the container is started before tests are run and stopp
. Or am I wrong with this?
Could you perhaps explain a bit more about how your code works,
because a Singleton's @PreDestroy will only be called when the
Singleton gets destroyed, which only happens when the Container gets
destroyed, which in turn closes with OpenEJB.
Quintin Beukes
On Fri
I think I might have why it works in OpenEJB and not in Geronimo. It
seems Geronimo has OpenJPA do the management, where OpenEJB does it
themselves.
Is there a way I can pass this responsibility over to OpenEJB instead?
Quintin Beukes
On Fri, Oct 23, 2009 at 3:25 PM, Quintin Beukes wrote
kunye
VDS-lamps-ejb
3.0
jar
net.kunye
VDS-ejb
3.0
jar
net.kunye
KMS-Personnel-ejb
1.0
jar
Can someone please advise how to get around this. It's an urgent problem.
Quintin Beukes
production?
Quintin Beukes
On Fri, Oct 23, 2009 at 7:50 AM, hypnosat7 wrote:
>
> Hello,
>
> If I set the provider property in the persistence.xml of my EJB project in
> works. But if I set the provider via system properties (to override the
> persistence.xml) my tests fail and the
eam("/META-INF/context.properties"));
InitialContext ic = new InitialContext(props);
And if the first 2 steps are unnecessary, I've probably wasted a
couple of minutes...
Quintin Beukes
On Thu, Oct 22, 2009 at 7:04 PM, Jean-Louis MONTEIRO
wrote:
>
> Hi,
>
> Your
> if you're using the eclipse persistence provider (EclipseLink) you can't use
> hibernate properties. Either we need to switch to hibernate as your
> persistence provider or you should change your properties to be eclipse link.
Well spotted :>
Have a look at http://is.gd/4votQ for which prope
le ou vue inexistante". I figure it
says something about or the table doesn't exist, but it might point
out more as to what is going wrong.
Quintin Beukes
On Wed, Oct 21, 2009 at 7:40 PM, El Arbi Aboussoror
wrote:
> Hello,
> When I try to store one of my entities that uses the annotat
ot;
directory in the OpenEJB distribution, or give me your OpenEJB version
and I'll give you it's filename.
Quintin Beukes
On Wed, Oct 21, 2009 at 6:16 PM, El Arbi Aboussoror
wrote:
> By "standalone" you mean that I didn't use an app server ?
>
> 2009/10/21 Qui
s far as I know classpath.ear is a "virtual" EAR, which
internally wraps all directory classpaths, where an EJB jar is wrapped
in a "virtual" EAR matching it's application name.
Can you perhaps provide the full output?
Quintin Beukes
On Wed, Oct 21, 2009 at 4:47 PM, Q
Is this the standalone? I assume so from the Java Agent error - at
least, I don't see how the Java Agent could work in embedded unless
you explicitly tell it to?
Quintin Beukes
On Wed, Oct 21, 2009 at 4:08 PM, El Arbi Aboussoror
wrote:
> Hello,
>
>
> I've a problem w
Inside the bean you're trying to inject, does the following code
return an object:
new InitialContext().lookup("FooImpl/Local") ?
Is the "Foo" EJB mapped to FooImpl/Local and how? If not, are you
using a JNDI format to define the above bean-class/interface format?
Quin
> It's not overt in the Tomcat integration code as essentially Tomcat ignores
> .ear files and we come back and pick them up via our regular ear processing
> code. We unpack the ear and hand the wars back to Tomcat and deploy the
> rest.
This morning when I woke up it hit me that this had to be t
For interest sake, what would be the module type of an EAR?
Quintin Beukes
On Tue, Oct 20, 2009 at 9:49 PM, David Blevins wrote:
>
> On Oct 20, 2009, at 10:23 AM, Quintin Beukes wrote:
>
>> As far as I know, OpenEJB for Tomcat doesn't support EARs.
>
> It support EARs
As far as I know, OpenEJB for Tomcat doesn't support EARs.
I had a quick check in the source, and it seems to only support these:
EjbModule
ClientModule
ConnectorModule
WebModule
Quintin Beukes
On Tue, Oct 20, 2009 at 6:46 PM, adam.granger wrote:
>
> Hi,
>
> Tomcat : 5.5.20
Is this the standalone or embedded distribution?
Quintin Beukes
On Tue, Oct 20, 2009 at 12:49 PM, Andy Gumbrecht
wrote:
> Using 3.1.2-SNAPSHOT
>
> The 'mx4j-tools.jar' (http://mx4j.sourceforge.net/) seems to be a
> requirement for ActiveMQ 4.x in OpenEJB irrespecti
Is this documented on the web site - just want to determine if I can
delete this mail or archive it?
Quintin Beukes
On Thu, Oct 15, 2009 at 3:58 AM, David Blevins wrote:
>
> On Oct 10, 2009, at 3:27 AM, Quintin Beukes wrote:
>
>> Hey,
>>
>> I read a thread on
> It may sound like too much of a quick fix, but are you using the embeddable
> distribution and all libs with it?
It does feel like a quick fix, but for unit testing I don't think it's
too much of a problem. And in another way, for an unmanaged project
format it actually makes things easier beca
e, and the rest is automatic.
Take the OpenEJB distribution, and add ALL the jars in the lib/
directory. There are many dependencies you will end up going through
if we try and do it like this.
Quintin Beukes
On Sat, Oct 17, 2009 at 6:00 PM, faizbash wrote:
>
> I included openejb-core-
Sorry, I made a mistake with the JAR version. I'm so used to typing
3.1.2 that I did it without realizing. Since you're using 3.1.1, you
need to use openejb-core-3.1.1.jar
Quintin Beukes
On Sat, Oct 17, 2009 at 4:50 PM, Quintin Beukes wrote:
> You have to include openejb-core
it's
only included in the core jar.
One more question, are you using the openejb-api jar for one/more of
the LocalClient/RemoteClient/EjbDeployment annotations?
This should solve your problem.
Quintin Beukes
On Sat, Oct 17, 2009 at 3:31 PM, faizbash wrote:
>
> Quintin,
>
> The trick with the code below is essentially, beans are not available for
> business method invocations until after they are constructed (i.e.
> PostConstruct is finished).
>
> So basically your construction code is waiting for your construction code to
> finish.
This is exactly what I was think
Two questions:
1. Which jars are you including in your classpath. Can you do a
System.out.println(System.getProperty("java.class.path"));
2. If you are using maven, can you please paste your
element of the POM.
Quintin Beukes
On Sat, Oct 17, 2009 at 10:23 AM, faizbash wrote:
deploytime differences (like descriptors).
Quintin Beukes
On Fri, Oct 16, 2009 at 9:36 PM, Jean-Louis MONTEIRO
wrote:
>
> Hi David,
>
> Sorry for that. It's an overall need that's why i pointed your post.
>
> It seems to me the correct link is
> http://ope
ss method in it's @PostConstruct method...
This creates a deadlock, because I assume the invocation thread waits
on the construction to complete, which again waits for the invocation
to return.
Quintin Beukes
being a singleton and all). But then I invoke a business method.
Currently this creates a deadlock in OpenEJB.
Like I mentioned I couldn't find an answer, but if the spec does in
fact not cover it, maybe it would be a good idea to do so, to ensure
consistent behavior among app servers.
Quin
ation) - unless I
misunderstood the code.
Though... 10 seconds ago I also thought of an option of doing a JNDI
lookup of the Singleton itself and then invoke on this reference -
this should wrap it in a transaction, which I can then use to pass in
an injected EntityManager reference?
Quintin Beukes
how it decides which persistence
unit to use. Could you perhaps tell me where to find this?
Quintin Beukes
On Thu, Oct 15, 2009 at 5:33 PM, Jean-Louis MONTEIRO
wrote:
>
> Hi Quintin,
>
> you can use JNDI to get a reference.
> Have a look here
> http://www.nabble.com/Lookup-
PI of some sort?
Quintin Beukes
Understood. I'll, for the mean time until it's implemented make a
dedicated @Startup bean, which would then call the rest, so they are
invoked as business methods.
Quintin Beukes
On Thu, Oct 15, 2009 at 3:33 AM, David Blevins wrote:
> Not a bug, but just a reflection of the spec
d have done the trick, even though @Schedule
is closer to cron.
Thanks.
Quintin Beukes
On Thu, Oct 15, 2009 at 4:01 AM, David Blevins wrote:
> Right, we have complete support for EJB 3.0 and prior. Timers were added in
> EJB 2.x. The new @Schedule annotation of EJB 3.1 is still unim
apache-m2-snapshot
Apache M2 Snapshot Repository
http://repository.apache.org/snapshots/
false
true
Quintin Beukes
On Tue, Oct 13, 2009 at 5:36 PM, Totsline, Greg wrote:
> Hi Dave -
>
> We cannot seem to f
.InterceptorStack.invoke(InterceptorStack.java:122)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:204)
... 49 more
INFO - Logging in
INFO - Logging in
Quintin Beukes
Hey,
Does OpenEJB 3.1 perhaps support the container manager timers yet?
Quintin Beukes
By the way. Thanks for the research and message. I noticed I slight
decrease in our loading times today as well (as the number of EJBs
increased). Please let us know if you have any success with this.
Quintin Beukes
On Thu, Oct 8, 2009 at 12:47 PM, Quintin Beukes wrote:
> This is available
nd I need the performance
increase when my clients increase to close to/over a hundred, I should
change the java.naming.provider.url property to
"http://localhost:4204/ejb";, from the alternative
"ejbd://localhost:4201" ? This will then be what is mentioned in the
thread, ie. the http over jetty code setup?
Quintin Beukes
want to use in the Libraries node and rebuild the
project - which is done by selecting it from a list of available
versions. You're set. Everything else will be done for you.
Quintin Beukes
On Thu, Oct 8, 2009 at 7:10 PM, Quintin Beukes wrote:
> With netbeans it's not an easy task.
&g
Though what I was wondering about is, since you can change which
login.config file should be loaded by the system property, could a new
one be loaded, or does this code get executed ONLY once?
Quintin Beukes
On Fri, Oct 9, 2009 at 7:58 AM, David Blevins wrote:
>
> On Oct 8, 2009, at 10
Can a new login module be deliberately loaded after the first
InitialContext was started, ie. login configuration has been parsed.
Is there any way a login configuration/module can be loaded
automatically AT ALL?
Quintin Beukes
print the message - it can help with
the debugging.
Quintin Beukes
On Thu, Oct 8, 2009 at 6:18 PM, dede90 wrote:
>
> Thanks for responding to my post.
>
> For some reason yesterday, when i ran this same command
> (/home/oracle/apache-6.0.20/bin/catalina.sh run) it was able t
technique, so if it doesn't work for you
we only missed something.
Quintin Beukes
On Thu, Oct 8, 2009 at 4:25 PM, happy_go_lucky_mate
wrote:
>
> Hi Quintin,
>
> You are right. Looks like the jar from the glassfish libs is the responsible
> culprit. Now that you mention it, I am no
ds that
create the policy configurations, creating your own "open to all"
policies.
Quintin Beukes
On Mon, Oct 5, 2009 at 11:28 AM, Vikrant Yagnick
wrote:
> Hi,
>
> I did some further research on the time that OpenEJB takes to startup when
> the number of EJB's ar
m, but with those
application-client.xml messages, and the Glassfish webservers jars on
the classpath, it might just be the cause.
Quintin Beukes
On Wed, Oct 7, 2009 at 11:25 PM, Sibin Peter wrote:
> Hi there,
>
> I just installed openEJB v3.1.1 in order to unit test the ejbs I am creating
&
Is your case exactly the same as the one on the URL, ie. you're using
the ejblocal JDNI template?
Can you perhaps post a reproducing test case, or at least describe how
to reproduce it.
Quintin Beukes
On Wed, Oct 7, 2009 at 7:51 PM, Totsline, Greg wrote:
> Hi -
>
> I am using
What are you trying to achieve?
Quintin Beukes
On Wed, Oct 7, 2009 at 4:45 PM, Andy Gumbrecht
wrote:
> Hi all,
>
> Is it possible to run multiple instances of OpenEJB in the same jvm?
>
> Something like this...
>
> JVM{
>
> Session1{
> OpenEJB1{Persist
Check 2 things, that your "localhost" entry in /etc/hosts does in fact
map to 127.0.0.1.
Secondly, check that you don't have apache Activemq or another OpenEJB running.
Quintin Beukes
On Wed, Oct 7, 2009 at 2:02 AM, dede90 wrote:
>
> I am trying to run openejb3.1.1 wi
case again.
Quintin Beukes
On Sun, Oct 4, 2009 at 9:48 PM, Jean-Louis MONTEIRO
wrote:
>
> Hi Quintin,
>
> Right.
> It seems that we are all a little busy at the moment.
> No doubt we will get back ASAP.
>
> Some releases are planed. More over, some of us (specially Davi
That's perfect. thanks.
Quintin Beukes
On Sun, Oct 4, 2009 at 9:57 PM, Jean-Louis MONTEIRO
wrote:
>
> Hi Quintin,
>
> Yes, you can use InitialContext properties in unit tests to override
> properties.
> Just one tip, you must use the persistence unit name and no
Hey,
I haven't noticed any activity except from Laird Nelson on the list.
I just want to confirm that this is correct, and not some other
problem? If so, I assume you guys are very busy with the release?
Quintin Beukes
I see what you mean with the transaction. If I inject the
EntityManager into a LocalClient without the EJB, it throws a
TransactionRequiredException. Hmm.
Let me see what can be done for this.
Quintin Beukes
On Sat, Oct 3, 2009 at 7:31 PM, Laird Nelson wrote:
> S
Basically, all I want to know is your PersistenceProvider class, your
data resource InitialContext configuration for the test, and how you
create the database in H2.
I got the H2 server running, but went to go shower, so haven't done
anything beyond that.
Quintin Beukes
On Sat, Oct 3, 20
it means to make a simple junit runner just for this purpose.
It would be great to have tests run on a clean db everytime.
Quintin Beukes
On Sat, Oct 3, 2009 at 6:42 PM, Laird Nelson wrote:
> On Sat, Oct 3, 2009 at 12:07 PM, Quintin Beukes wrote:
>
>> Yes,it is managed by the conta
happens with
the InitialContext.
Best thing is to try it and see if it works, then if it doesn't - come
back and we'll see if there is some way to do it. OpenEJB is very
flexible, which is one of the things that makes it brilliant.
Quintin Beukes
On Sat, Oct 3, 2009 at 4:55 PM, L
injection or classloader magic, in order to get a class with the same
canonical name but a different one at that. Especially if the
classGood luck guys!
Quintin Beukes
On Fri, Oct 2, 2009 at 4:23 PM, Laird Nelson wrote:
> Happy Friday.
>
> When is OpenEJB going to support interfacele
reate". I tried specifying it in my
datasource creation properties in the InitialContext environment
hashtable, but this doesn't seem to take "priority", and looks like it
is applied last. Or did I make a mistake somewhere?
Thanks,
Quintin Beukes
tion is in the loop (like with multiple persistence
units).
Just thought I'd mention this, before you start digging through weird
hard to explain errors.
Quintin Beukes
On Fri, Oct 2, 2009 at 10:42 PM, Quintin Beukes wrote:
> If you really only want to test the JPA entities,
test case and the EJB. That double injections of the
entity manager and EJB seems ugly.
Quintin Beukes
On Fri, Oct 2, 2009 at 7:20 PM, Laird Nelson wrote:
> This falls under the category of interesting hacks. It also falls under the
> category of "the goggles...they do nothing!&qu
27;ll be
able to use this JUnit runner and OpenEJB 3.1.
The runner is going to be great, because you don't need all the
initialization code, and in the end it will support a whole bunch of
stuff like security and transactions (which you want).
Quintin Beukes
On Fri, Oct 2, 2009 at 7:2
eployed. See
http://openejb.apache.org/3.0/local-client-injection.html
at
org.apache.openejb.client.LocalInitialContext.inject(LocalInitialContext.java:251)
at
org.apache.openejb.client.LocalInitialContext.bind(LocalInitialContext.java:225)
at javax.naming.InitialContext.bind(InitialContext.java:400)
at
org.apache.openejb.junit.context.OpenEjbTestContext.configureTest(OpenEjbTestContext.java:97)
... 20 more
Quintin Beukes
Just for interest sake, were you able to reproduce it again?
And, how did you notify OpenEJB of the LocalClient? Via the
application-client.jar or initialContext bind?
Quintin Beukes
On Tue, Sep 29, 2009 at 2:41 AM, David Blevins wrote:
>
> On Sep 28, 2009, at 5:29 PM, Laird Nelson
Uploaded a new one. It has a few API changes to improve extensibility.
Quintin Beukes
On Mon, Sep 28, 2009 at 2:04 PM, Jonathan Gallimore
wrote:
> Hi Quintin,
>
> Sorry I for the delay in responding to your other mails. I've picked up your
> latest code and it runs perfectly
implementation (though the findSetter
method was changed a bit to suite the junit-runner) in the class:
org.apache.openejb.junit.context.Util
Quintin Beukes
Uploaded another one. Accidentally left the spring dependencies of my
project in the POM (like I mentioned it comes from my project).
Quintin Beukes
On Mon, Sep 28, 2009 at 12:16 PM, Quintin Beukes wrote:
> I'm not sure how to remove files from JIRA, so both are still there.
> Jus
I'm not sure how to remove files from JIRA, so both are still there.
Just check the upload times or the SNAPSHOT version number (which is a
date/time).
Quintin Beukes
On Mon, Sep 28, 2009 at 12:14 PM, Quintin Beukes wrote:
> OK. Stupid little bug. To fix it, change in the class
>
enEJB
started up, due to some minor difference in ordering I suppose? I
assume at the time the first InitialContext was created, the role
wasn't specified yet.
My bad. Curious that JDK6u11 runs it perfectly fine on both my machines.
Though I still don't feel right doing it this way :/
Quint
perhaps running in JDK5? I haven't tested it in JDK5. I
just did so an found I get the same error. I will be updating it for
JDK5 today, which should probably fix the error. Thanks for the input.
Quintin Beukes
On Mon, Sep 28, 2009 at 12:55 AM, Jonathan Gallimore
wrote:
> Just had a
pecified in the "securityRole" option.
If there is a better way of getting the login module through, or
another way of achieving the same, please let me know.
Thanks,
Quintin Beukes
On Mon, Sep 28, 2009 at 11:13 AM, Quintin Beukes wrote:
> Hey,
>
> It looks like it's no
ting the system property
(can't recall it's name) in the OpenEjbTestContext class. It's the
only System.setProperty call there is. So what could happen is that it
doesn't locate the login.conf I'm specifying, it's not running the
call, or OpenEJB is ignoring the property.
Qu
nfig(
securityRole="Admin"
)
public void testAsAdmin()
{
myBean.someMethod();
currentInitialContext.lookup("some/custom/lookup");
}
@Test
@ContextConfig(
propertiesFile="/META-INF/employee-context.properties",
securityRole="Employe"
)
public void testAsEmployee()
{
myBean.someMethod();
}
}
Quintin Beukes
Test
@ContextConfig(
properties={
@Property("override-some-property=with-a-method-level-value")
},
securityRole="And run as a different role"
)
public void testDifferentSecurityAspect()
{
}
}
Quintin Beukes
On Sun, Sep 27, 2009 at 3:44 AM, Quintin Beuk
atic, but that seems like overkill.
Quintin Beukes
On Fri, Sep 25, 2009 at 9:22 AM, Quintin Beukes wrote:
> Hmm. I did try that, but it kept failing. I guess that was because I
> specified a realm and it tried to actually authenticate it. That will
> work much better for my tests.
>
1 - 100 of 145 matches
Mail list logo