| Author |
Message |
   
Bumper
Side Hero Username: Bumper
Post Number: 3206 Registered: 07-2014 Posted From: 204.80.58.133
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 06, 2015 - 04:11 pm: |
     |
bump if my explantion is bad ,this link explains my problem clearly. http://stackoverflow.com/questions/25670449/log4j-custom-jdb c-appender-datasource Snakes in Your backyard won't bite only your neighbours. #Hillary Clinton |
   
Humpty_dumpty
Moderator Username: Humpty_dumpty
Post Number: 29365 Registered: 02-2009
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 06, 2015 - 09:35 am: |
     |
Cf Anna Copy paste Google lo sudatledhu yeti ( bob accent) |
   
Bumper
Side Hero Username: Bumper
Post Number: 3196 Registered: 07-2014 Posted From: 204.80.58.133
Rating: N/A Votes: 0 (Vote!) | | Posted on Tuesday, January 06, 2015 - 08:50 am: |
     |
thanx all for your reply.. i can get "platformTransactionManager" but i need b{"DataSourceTransactionManager"}. i need it beccause i ve to get the dataSource from DataSourceTransactionManager.i can use that jdbc datasource to store my log data in to the database. Snakes in Your backyard won't bite only your neighbours. #Hillary Clinton |
   
Chiru_fan
Megastar Username: Chiru_fan
Post Number: 21588 Registered: 04-2008 Posted From: 72.81.129.167
Rating: N/A Votes: 0 (Vote!) | | Posted on Monday, January 05, 2015 - 07:57 pm: |
     |
Humpty_dumpty:
HD....question adigithee code raasee rangee aa needi....tussi great ho!
 CHIRU - SACHIN - FEDERER |
   
Humpty_dumpty
Moderator Username: Humpty_dumpty
Post Number: 29363 Registered: 02-2009
Rating: N/A Votes: 0 (Vote!) | | Posted on Monday, January 05, 2015 - 04:08 pm: |
     |
private static final String beanId = "txManager"; private PlatformTransactionManager txManager = null; txManager = (PlatformTransactionManager) ServiceLocator.getReference().getService(beanId); In servicelocator helper class, load the context file in classpath ApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] { "ApplicationContext.xml" }, appContext); public Object getService(String beanIdFromApplicationContextXml) throws Exception { Object obj = null; final String methodName = "getService()"; try { obj = appContext.getBean(beanIdFromApplicationContextXml); } catch (BeansException be) { throw be; } return obj; } |
   
Dreamcatcher
Side Hero Username: Dreamcatcher
Post Number: 6660 Registered: 11-2009 Posted From: 208.86.145.68
Rating: N/A Votes: 0 (Vote!) | | Posted on Monday, January 05, 2015 - 04:06 pm: |
     |
Bumper:Spring context nundi Hiberanate "TransactionManager" bean ki object ela create chesukovaliii ??
may be this will help... http://stackoverflow.com/questions/3155591/how-to-programmat ically-get-transaction-manager-in-a-thread |
   
Machomegastar
Side Hero Username: Machomegastar
Post Number: 9668 Registered: 02-2008 Posted From: 170.74.55.71
Rating: N/A Votes: 0 (Vote!) | | Posted on Monday, January 05, 2015 - 04:05 pm: |
     |
@Autowire ante automatica ga insert chestadi kada in java thats waht you wanted or something else "illemo dhooram(ye illu!! ) dharantha gathukulu asale cheekati chetilo deepam ledu kaani naa dhairyam ee kavacham." Na dhairyame na ayudam" |
   
Bumper
Side Hero Username: Bumper
Post Number: 3195 Registered: 07-2014 Posted From: 204.80.58.133
Rating: N/A Votes: 0 (Vote!) | | Posted on Monday, January 05, 2015 - 03:55 pm: |
     |
Spring context nundi Hiberanate "TransactionManager" bean ki object ela create chesukovaliii ?? programmatic ga in java???... Snakes in Your backyard won't bite only your neighbours. #Hillary Clinton |