users@glassfish.java.net

how to get a userTransaction from application client?

From: Legolas wood <legolas.w_at_gmail.com>
Date: Mon, 04 Jun 2007 12:25:57 +0330

Hi
I am trying to get a userTransaction in application client.
I managed to acquire it when i use web application but it looks like
that the same methods does not works in application client.

here is my code to get it in web application :



        @Resource
        private javax.transaction.UserTransaction utx;


now can you tell me how to get it in application client?
the above code return error.