Hide Clipart | Topics | Search
Log Out | Register | Edit Profile
Last 30 mins | 1 | 2

Spring-Java question:

Chalanachithram.com DB » New TF Industry Related » Archive through January 06, 2015 » Spring-Java question: « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this 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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Cf Anna
Copy paste
Google lo sudatledhu yeti ( bob accent)
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Humpty_dumpty:



HD....question adigithee code raasee rangee aa needi....tussi great ho!

CHIRU - SACHIN - FEDERER
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

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;
}
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

@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"
Top of pagePrevious messageNext messageBottom of page Link to this message

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:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

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

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x99c03dc){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: