users@glassfish.java.net

Injecting a UserTransaction via deployment-descriptor

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 Nov 2008 04:40:26 PST

Dear all,

can anyone provide me a deployment-descriptor extract that injects a javax.transaction.UserTransaction into an instance variable. I tried the following:

<session>
  <ejb-name>TestBean</ejb-name>
  <resource-env-ref>
    <resource-env-ref-name>UserTransaction</resource-env-ref-name>
    <injection-target>
      <injection-target-class>test.server.compile.TestBean</injection-target-class>
      <injection-target-name>userTransaction</injection-target-name>
    </injection-target>
  </resource-env-ref>
</session>

But this results in an "Exception creating stateless session bean".

Thanks for your help.

Ralph
[Message sent by forum member 'ralph_jaus' (ralph_jaus)]

http://forums.java.net/jive/thread.jspa?messageID=314983