[jboss-as7-dev] jndi lookup from a @RunAsClient test case

Carlo de Wolf cdewolf at redhat.com
Fri Sep 2 11:13:05 EDT 2011


https://issues.jboss.org/browse/AS7-1709

Carlo

On 09/02/2011 04:59 PM, Kabir Khan wrote:
> You can't currently do jndi lookups 'properly' from outside the JVM. We currently get around this with a 'fake jndi' mbean deployment which is used in for example JmsClientTestCase in testsuite/smoke
> On 2 Sep 2011, at 15:43, Stefano Maestri wrote:
>
>> Hi all,
>>
>> I've written a test case that need to invoke an operation (to add a resource-adapter definition) and then have to make a jndi lookup.
>> I would define the test as @RunAsClient (arquillian of course) to avoid to include all Model* classes in deployed rar, but are there any best practice to make a jndi lookup from this kind of test cases?
>> What initial context env have I to use?
>>
>> To get an idea of what I'm trying take a look there
>>
>> https://github.com/maeste/jboss-as/blob/d7800c96a11c8ba218414be10ed66cdb30c80ff3/testsuite/smoke/src/test/java/org/jboss/as/test/embedded/deployment/rar/AS7_1452/AS7_1452TestCase.java
>>
>> thanks in advance
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list