On Mar 14, 2007, at 8:33 AM, Prasad Kashyap wrote:
Thanks Mohammad.
I did apply your patch and had my test extend from
*AnnotatedFieldInjectionStatelessLocalTestClient*. See
http://rifers.org/paste/show/3923
I get a NameNotFoundException: Name
"BasicStatelessInterceptorLocal" not found.
The name would be BasicStatelessInterceptorBusinessLocal if you're
using a business local interface.
On a different note, definitely use a remote or business remote
interface where possible. Tests that use only local interfaces
pretty much only run in OpenEJB embedded.
-David
But that bean seems to have been created and deployed.
INFO - Created Ejb(deployment-id=BasicStatelessInterceptor,
ejb-name=BasicStatelessInterceptor, container=Default Stateless
Container)
10:56:07,592 INFO [startup] Created
Ejb(deployment-id=BasicStatelessInterceptor,
ejb-name=BasicStatelessInterceptor, container=Default Stateless
Container)
Cheers
Prasad
On 3/13/07, Mohammad Nour El-Din <[EMAIL PROTECTED]> wrote:
Hi Prasad...
I came home late so I took a speed look on your code. First, if
this is a
local test client you should extend from
BasicStatelessLocalTestClient.
Second, in your case you are using a field annotated local test
client so
you have to extend from
*AnnotatedFieldInjectionStatelessLocalTestClient*
class. To have a better idea look at
http://issues.apache.org/jira/browse/OPENEJB-519, and take a look
at this
mail on how to use and create annotated test clients
http://mail-archives.apache.org/mod_mbox/incubator-openejb-dev/
200703.mbox/%
[EMAIL PROTECTED]
.
But this code is not applied on the src code repository yet, it
was supposed
to be reviewed and then applied if it is OK. But I think I can
apply it
myself, as - as I think - I've been given the Karma to do so. But
I will
this tomorrow as I so tired and its too late here. You can take
the patch
and apply it locally, following the guidelines in the mail link
provided
above. If you still face problems please let me know, this is the
second annotated test written and I need to know to how far
annotated tests
code is well implemented.
On 3/13/07, Prasad Kashyap <[EMAIL PROTECTED]> wrote:
> Mine seems to be the only testcase which has a dependency
injection on
> the client side of itests. http://rifers.org/paste/show/3902
>
> However, when executing this test (container/openejb-core), it
fails
> while doing an assertNotNull of the injected bean (line 38 in
the code
> above).
>
> Bug ? User-error ?
>
> Please advise.
>
> Cheers
> Prasad
>
--
Thanks
- Mohammad Nour