r u talking abt SunOneTransactionManagerLookup.java the ocde is as follow 


/*
 * Created on Nov 21, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.gepower.geps.common.cache;

import java.lang.reflect.InvocationTargetException;

import javax.transaction.TransactionManager;

/**
 * @author vaidyar3 TODO To change the template for this generated type comment 
go to Window - Preferences - Java - Code
 *         Style - Code Templates
 */
public class SunOneTransactionManagerLookup implements 
org.jboss.cache.TransactionManagerLookup {

        /*
         * (non-Javadoc)
         * 
         * @see org.jboss.cache.TransactionManagerLookup#getTransactionManager()
         */
        public TransactionManager getTransactionManager() throws Exception{
                // TODO Auto-generated method stub
                TransactionManager transactionManager = null;
                        
                        try {
                                System.out.println("starting of the code");
                                Class clazz = 
Class.forName("com.sun.jts.jta.TransactionManagerImpl");
                        System.out.println("**********Got the Txn Manager 
Class**********");
                        Object obj = 
clazz.getMethod("getTransactionManagerImpl", null).invoke(null, null);
                        System.out.println("************Got the 
Object*************8" + obj.getClass());
                        transactionManager = (TransactionManager) obj;
                        System.out.println("************Got the Txn 
Manager*************8" + transactionManager);
                        } catch (ClassNotFoundException classNotFoundException) 
{
                        } catch (SecurityException securityException) {
                        } catch (IllegalAccessException illegalAccessException) 
{
                        } catch (InvocationTargetException 
invocationTargetException) {
                        } catch (NoSuchMethodException noSuchMethodException) {
                        }
                return transactionManager;
        }

}



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866800#3866800

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866800


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to