If you're working on application code, is there a reason you're trying to use a TransactionManager instead of getting a UserTransaction from JNDI? If you're writing a GBean you should have the TransactionManager injected (configured as a reference) instead of looking it up. In any case, it would generally help if you post the stack trace and double-check to be absolutely sure that it's definitely the getSingleKernel method that's returning null and not some surrounding code. In this particular case I'm not sure how much a stack trace will help since I'm not sure what SVN revision of Geronimo the WASCE code is based on and what IBM might have changed, but it's certainly the case that you don't have much of a chance of a better diagnosis *without* the stack trace. :) Thanks, Aaron On 3/20/06, Siraj Mohamed wrote: > > > > Hi All, > > > > I am using WASCE 1.0.0.1 version and I am trying to get a reference to the > TransactionManger from a Java class. This is the segment of my java class. > > > > TransactionManager tm = null; > > try > > { > > ObjectName TM_NAME = new > > > ObjectName("geronimo.server:J2EEApplication=null,J2EEModule=geronimo/j2ee-server/1.0/car,J2EEServer=geronimo,j2eeType=TransactionManager,name=TransactionManager"); > > > > > > Kernel kernel = KernelRegistry.getSingleKernel(); > > tm = > (TransactionManager)kernel.getProxyManager().createProxy(TM_NAME, > > TransactionManager.class); > > > > }catch (Exception e) > > { > > throw new > TransactionManagerFactoryException(e.getMessage()); > > } > > > > This code does not work for me and I get a null return value when trying to > get the Kernel (KernelRegistry.getSingleKernel()). > > > > Am I missing some thing else? My WASCE application server is running up and > down. > > > > Please help me if any one knows the solution. > > > > Thanks and Regards, > > Siraj