datasource 3 « Database « Spring Q&A





1. Mutiple DataSource the one failed occurs all failed    forum.springsource.org

Set more than DataSource, a failure which will cause all failed, the experts: I found a DataSource failure, catch exceptions and unbind it, but will be included in DAO lost javax.naming.NameNotFoundException, ...

2. Unable to resolve datasource    forum.springsource.org

Oct 23rd, 2007, 12:10 AM #1 muhkah View Profile View Forum Posts Private Message Member Join Date Oct 2007 Posts 37 Unable to resolve datasource Hi all, I found errors when ...

3. Spring Datasource Connection Issue    forum.springsource.org

Spring Datasource Connection Issue Hi guys, From time to time I get the following message from my web-app; Code: org.springframework.dao.DataAccessResourceFailureException: SqlMapClient operation; SQL []; --- The error occurred in ibatisConfig/Customer.xml. --- ...

4. many-to-one mapping with 2 datasources    forum.springsource.org

many-to-one mapping with 2 datasources Hi, I have one table in a datasource that references a table (many to one relationship) in a different datasource. I would like to create a ...

5. Unit Test with JNDI datasource    forum.springsource.org

Hi, we have an application which still contains a jdbc datasource looked up by JNDI. This works when the app is deployed in a web conainer but not when running local ...

6. DataSource on the Fly    forum.springsource.org

DataSource on the Fly Hello All, I have a requirement where the username and the password for the Connection to the Database is retreived when the user logs in. There are ...

7. AbstractTransactionalSpringContextTests and 'dynamic' datasource    forum.springsource.org

Hi, I want to write some Unit tests for my application using AbstractTransactionalSpringContextTests features. As i found out AbstractTransactionalSpringContextTests dependents on transactionManager bean. I don't use in my application, so i ...

8. Help needed in getting Datasource    forum.springsource.org

Dec 25th, 2007, 01:43 AM #1 disha View Profile View Forum Posts Private Message Junior Member Join Date Dec 2007 Posts 10 Help needed in getting Datasource Hi all - Recently ...

9. Multiple Datasource    forum.springsource.org

Multiple Datasource Hi Although this question was asked in the post http://forum.springframework.org/showthread.php?t=47834 I couldn't see a definitive answer for it. My problem is similar in that we have 2 databases which ...





10. Dynamic Datasource routing and Resource Ref    forum.springsource.org

Dynamic Datasource routing and Resource Ref In my application, I need to access database based on customer location in the request. For ex: If request is from NY, need to access ...

11. Programmatic JNDI lookup - how do i cast a JndiObjectFactoryBean to a Datasource?    forum.springsource.org

I have a utility method to retrieve certain properties from Jndi. I am unable to use dependency injection for this particular scenario, so I am forced to make a Jndi call ...

12. How to autowire a DataSource in JdbcDaoSupported class    forum.springsource.org

Can a DataSource defined in applicationContext.xml be autowired in a JdbcDaoSupported class? I'm using the in combination with the I have this JdbcDaoSupported class with a @Service ...

13. Export DataSource to JNDI ?    forum.springsource.org

HI there, I wonder if there is a solution to my problem. I have a sole Spring server app, no JEE no webserver. It has a DataSource which I need to ...

14. Query abt data sources defined in Spring XML file    forum.springsource.org

Query abt data sources defined in Spring XML file Hi, In our application's Spring XML file, we are defining the data source as - Code: com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource ...

15. Create JNDI DataSource    forum.springsource.org

Create JNDI DataSource I currently have a webapp that is loading a datasource for DAOs, such: ...

16. Error with multiple weblogic data sources, transactionProxies    forum.springsource.org

Jan 23rd, 2008, 09:25 AM #1 cjenkins View Profile View Forum Posts Private Message Junior Member Join Date May 2007 Posts 7 Error with multiple weblogic data sources, transactionProxies So we ...





17. Spring config file parsing error for routing datasource    forum.springsource.org

Spring config file parsing error for routing datasource Hi, I am trying to test spring's routingdatasource. In my spring config file i have declared the following entries for routing data source. ...

18. Publishing Datasource programmatically to spring datasource JNDI lookup    forum.springsource.org

Publishing Datasource programmatically to spring datasource JNDI lookup Hi all I have a situation in which a i am using Junit test cases for Spring+strust+hibernate using junit and strutstest case.I am ...

19. how to set connection properties in jndi/datasource    forum.springsource.org

I'm getting datasource thru JNDI(configured in websphere server). I want to set some connection properties(like SetBigStringTryClob=true etc) in the datasource. Please let me know the way to do it. Thanks

20. Exception in setting up data source    forum.springsource.org

Exception in setting up data source bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource"> sun.jdbc.odbc.JdbcOd bcDriver jdbc:odbc:anyoDB sa Following error Caused by: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data ...

21. Setting the datasource at runtime    forum.springsource.org

Setting the datasource at runtime We've got an application that uses Oracle's Virtual Private Database (VPD) feature. This translates for us to setting the specific datasource (1 of 4) at runtime. ...

22. Problem using JNDI Datasource    forum.springsource.org

Problem using JNDI Datasource Hello, I have my code working fine with Hibernate and a "BasicDataSource". However, when I am deploying the app into jboss, I would like to use the ...

23. Accessing data from 3 different datasource    forum.springsource.org

Hi, I have requirement to access data from 3 different data source pointing to different database. I am using org.apache.commons.dbcp.BasicDataSource in my applicationContext.xml file to create datasource. so how can I ...

24.  gives error    forum.springsource.org

gives error Hello, and thanks for providing us with this great tool! I have just ran into a slightly annoying thing. The Spring IDE is flagging an failed ...

25. SchemaUpdate - no datasource found?    forum.springsource.org

Apr 11th, 2008, 01:33 AM #1 halcyon View Profile View Forum Posts Private Message Member Join Date Aug 2004 Posts 39 SchemaUpdate - no datasource found? Having a bizarre problem attempting ...

26. Swap DataSource during installating process    forum.springsource.org

Swap DataSource during installating process Hi, I want to realize this requirement: The first time a user calls my webapplication he is directed to some installation page. Now the user can ...

27. Swap DataSource during installating process    forum.springsource.org

Swap DataSource during installating process Hi, I want to realize this requirement: The first time a user calls my webapplication he is directed to some installation page. Now the user can ...

28. xml file as datasource    forum.springsource.org

Hi, I need to parse a xml file and put the node content in the web using spring framework. Can you give me a example to do this? Most of the ...

29. How to use JBoss Datasource in Spring 2.08    forum.springsource.org

How to use JBoss Datasource in Spring 2.08 Hello, I have trying to use the datasource in my JBoss 4.2.2 server, but I am getting the error below. I have tried ...

30. DataSources causing ABNORMAL EOT IN PROGRESS on z/os    forum.springsource.org

DataSources causing ABNORMAL EOT IN PROGRESS on z/os Hello all, When we use the DBCP BasicDataSource, SingleConnectionDataSource, etc, in a java "batch" enviroment (running as a java application) with the DB2 ...

31. Dynamically set the datasource?    forum.springsource.org

Dynamically set the datasource? hi, So far I have worked under developement database with the following datasource configuration in context file Code: com.microsoft.jdbc.sqlserver.SQLServerDriver ...

32. Junit test for data source failing.    forum.springsource.org

Junit test for data source failing. Hi I am trying to run a Junit test for testing my service. Here are the configuration details. under src/test/resources, I have the applicationContextTest.xml file ...

33. Problem with setting JNDI data source in applicationContext.xml    forum.springsource.org

Problem with setting JNDI data source in applicationContext.xml Hi, I have a JNDI data source which has "." character in its name eg. "abc.efg". But when Spring tries to create org.springframework.jndi.JndiObjectFactoryBean ...

34. DataSource class not found :(    forum.springsource.org

Jul 4th, 2008, 03:23 AM #1 andrea_rev View Profile View Forum Posts Private Message Junior Member Join Date Jul 2008 Posts 9 DataSource class not found :( Hi!! I'm working on ...

35. Hard time setting up app with multiple datasources    forum.springsource.org

Hard time setting up app with multiple datasources I'm having hard time setting up an application with multiple datasource. Here's my dillemma: I have one datasource with 1 dao and 1 ...

36. DataSource Problem : IllegalArgumentException: Property 'dataSource' is required    forum.springsource.org

DataSource Problem : IllegalArgumentException: Property 'dataSource' is required I'm a newbie to Spring. I'm converting a JSP only webapplication to Spring MVC based framework and Spring DAO for dataaccess. I was ...

37. (Data source rejected establishment of connection...    forum.springsource.org

Jul 19th, 2008, 10:35 AM #1 sinoea View Profile View Forum Posts Private Message Member Join Date Mar 2007 Posts 33 (Data source rejected establishment of connection... Dear all, I am ...

38. Switching the datasource    forum.springsource.org

Switching the datasource I have two datasources defined in my spring-config file: Code: com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/prosoc prosoc prosoc- ...

39. dynamically set datasource on request    forum.springsource.org

hi all... i have a web service that is backed by spring / hibernate. each service operation passes the schema information for the dataSource. so it's determined at runtime when the ...

40. acessing multiple datasources using spring JDBC    forum.springsource.org

Hi, I am new to spring framework. In my application we are accessing datasource through jndi lookup configured in xml file. Now i need to get all datasource names from the ...

41. Testing with multiple DataSources    forum.springsource.org

Testing with multiple DataSources Hi, I have a application which communicates with two databases with regular JDBC (no hibernate or JPA). I have written tests with the AbstractTransactionalDataSourceSpringContextTests, with the autowire ...

42. jndi datasource configuration ...    forum.springsource.org

hi all, I'm trying to get geronimo jndi datasorce to use in testing like: Code: ... protected DataSource dataSource; public UserDAOTest() { setPopulateProtectedVariables(true); } ... how should I configure it ? ...

43. help with Jboss datasource lookup using springs    forum.springsource.org

help with Jboss datasource lookup using springs hi all I am trying to use springs JndiObjectFactoryBean to get a datasource connection through Jboss connection pool. When ever i do so i ...

44. @PersistenceContext and multiple datasource    forum.springsource.org

@PersistenceContext and multiple datasource Can anyone tell me whether is it possible to use @PersistenceContext injection with multiple datasource? Spring has been giving me these errors: Code: Context initialization failed org.springframework.beans.factory.BeanCreationException: ...

45. JNDI Datasource v/s Regular Datasource    forum.springsource.org

JNDI Datasource v/s Regular Datasource Dear All, We have an application which are deploying on Oracle Application Server's OC4J Container. The confusion I seem to be in is whether to use ...

46. How can work with multiple data sources    forum.springsource.org

Dear all, I'm writing a database application with using spring and hibernate. It's awesome until I'm now starting to retrieve some data from another database. I'm using local transaction type in ...

47. Using AbstractTransactionalTestNGSpringContextTests with multiple datasources    forum.springsource.org

How do i test for the global transaction using AbstractTransactionalTestNGSpringContextTests? I have created two datasources in the xml file and am using Atomkios. I am thinking that i will implement the ...

48. JRun DataSource Problem    forum.springsource.org

JRun DataSource Problem Hi, We recently had to migrate an application from Tomcat 5.5 to JRun 4.0 In Tomcat, we had the following configurations: conf/Catalina/localhost/.xml: Code: ...

49. DataSource Problem with Spring    forum.springsource.org

DataSource Problem with Spring I am trying to use Spring 2.5+JPA (Hibernate).But one datasource problem occured when I was testing. ERROR Information was focused on: Failed to convert property value of ...

50. Problem with switching data sources    forum.springsource.org

Problem with switching data sources hy, i am trying to switch data sources during runtime (user should be able to choose database from combobox). i wrote a little test program, but ...

51. dataSource with JNDI lookup, but how?    forum.springsource.org

dataSource with JNDI lookup, but how? Hiho! I'm very new to spring, i'm learning it, and I have a problem/question: Currently i'm having this in my persistenceContext.xml Code: ...

52. Idref to datasource error    forum.springsource.org

Idref to datasource error Hi, why does this work perfectly in my springapp but this does not? Above gives deployment time ...

53. Jasper Reports - multiple dataSources problem    forum.springsource.org

Hi All, I'm quite new to Jasper Reports.I've configured it with spring MVC. I've a problem while supplying the data to the Report. Currently i'm passing the data for single object ...

54. Spring datasource connection problem    forum.springsource.org

Spring datasource connection problem Hello! I'm using spring with hsqldb (standalone file mode). There are some classes that extends the JdbcTemplate. If i call there some query/update functions, the connection to ...

55. UnsatisfiedDependencyException for dataSource    forum.springsource.org

HTML Code: Error creating bean with name 'uk.co.formfill.dfcommon.data.dfwv.dtcallocationrules.DtcAllocationRulesDaoHibernateCreateIntegrationTest': Unsatisfied dependency expressed through bean property 'dataSource': Set this property value or disable dependency checking for this bean. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with ...

56. Using two dataSource for the same application    forum.springsource.org

Nov 20th, 2008, 05:45 AM #1 Esil2008 View Profile View Forum Posts Private Message Member Join Date Jun 2007 Location Marseille - France Posts 78 [Resolved] Using two dataSource for the ...

57. Dynamic properties for datasource definition    forum.springsource.org

Dynamic properties for datasource definition Hello, I am writing a little application with the help of the spring framework. Up to now I had a static datasource configuration defined in a ...

58. Error while submitting a trsaction using Datasource    forum.springsource.org

Error while submitting a trsaction using Datasource Iam getting the following error while saving an Object , using Hibernate Trsaction Manager. I have configured a DataSource on my application Server , ...

59. When NOT to use pooling datasources    forum.springsource.org

When NOT to use pooling datasources Hello All, I've developed a simple standalone Spring based application that is scheduled (using Quartz) to execute once daily in the morning. The application connects ...

60. design question: multiple data sources    forum.springsource.org

design question: multiple data sources The tools: Postgresql, Spring, Hibernate. I am looking for some advice/suggestions on dealing with multiple data sources. Because of my security requirements, each customer site/install will ...

61. Mandatory reference '&dataSource'    forum.springsource.org

Hello forum I have a problem in creating datasource, to connect to a database MSSQL Server 2000, using the driver: com.springsource.net.sourceforge.jtds-1.2.2 Already with a MySQL database, it works using the driver: ...

62. JAAS and Basic Datasource    forum.springsource.org

Hi, I have been using a PropertyPlaceHolderConfigurer to externalize the parameters for the BasicDatasource bean on my context file. I authenticate the username, password details using a test JDBC connection and ...

63. Creating datasource in a runtime    forum.springsource.org

Hi, I use spring with hibernate and everything works well when I put data base details (URL, driver name) to the XML file with beans definition. But - how should it ...

64. Txn mgt of OC4JJtaTransactionManager using 2 datasources    forum.springsource.org

Hi , I tried to post my questions serveral times these . However , don't know why can't be display but get the messages : Thank you for posting! Your post ...

65. Datasource problem when initializing SchedulerFactoryBean    forum.springsource.org

Datasource problem when initializing SchedulerFactoryBean In my application I use Spring quartz integration to run scheduled job with in-memory RAMJobStore , initially it worked fine ,but later I used the name ...

66. Help configuring container managed datasource with JBoss    forum.springsource.org

Jan 30th, 2009, 08:24 AM #1 knoxor View Profile View Forum Posts Private Message Member Join Date Jan 2009 Posts 38 Help configuring container managed datasource with JBoss Hi, I'm using ...

67. Using an existing datasource    forum.springsource.org

Dear All, I have an existing connection object in my application. How can I use this connection object to access the database without using datasource?

68. Design - multi data sources - best practices    forum.springsource.org

Hi, I have a set of records across 2 databases (both having exactly same schema) and my requirement is to use my existing code base to read data from both parallely. ...

69. Moving to Spring datasource    forum.springsource.org

Hi, Did I miss something while trying to move to Spring 2.0 configured data source - 1. Added spring-webmvc.jar and spring.jar to the build path 2. Created a resources folder and ...

70. Datasource Advice    forum.springsource.org

Datasource Advice Hello, I am new to Spring and Hibernate. I would greatly appreciate some advice/clarification about the optimal, production level way to configure a Datasource and Connection pool on Tomcat, ...

71. WSSE with Dynamic Datasources?    forum.springsource.org

WSSE with Dynamic Datasources? I need to implement a Webservice Endpoint secured by WSSE using an underlying Dynamic Datasource app for authentication (e.g. one app, many customer databases). How can the ...

72. Multiple Data Sources    forum.springsource.org

Multiple Data Sources I have a stand-alone JVM application that establishes 3 datasources/connections to DB2. All datasources use the SingleConnectionDataSource. The application has 3 threads running concurrently, each thread having its ...

73. Writing to 2 jdbc datasources in one step v's 2 steps each with 1 datasource    forum.springsource.org

Writing to 2 jdbc datasources in one step v's 2 steps each with 1 datasource Guys, I'd like some advice on the scenario below to understand the pro's and con's of ...

74. Multiple datasource TestNG AbstractTransactionalSpringContextTests    forum.springsource.org

Multiple datasource TestNG AbstractTransactionalSpringContextTests Hi, The problem I am trying to solve is: I need a base class that has two simpleJdbcTemplate objects connected to two difference data sources. Since AbstractTransactionalTestNGSpringContextTests ...

75. Autowired with multiple datasources    forum.springsource.org

Hi All, I run into a problem when I tried to autowire a service bean in Spring 2.5 with iBatis 2.3. The error indicates that multiple datasources were present while only ...

76. UnsatisfiedDependencyException on dataSource AbstractTransactionalDataSourceSpringCon    forum.springsource.org

UnsatisfiedDependencyException on dataSource AbstractTransactionalDataSourceSpringCon I have a test class trying to check my hibernate mappings under dao, after I setup everything I get an error (below). error: Code: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating ...

77. How to get add a JNDI datasource dynamically throught code    forum.springsource.org

How to get add a JNDI datasource dynamically throught code Hi all, im new to using spring and we have a requirement in the following way. We have a lookup db ...

78. https with datasource    forum.springsource.org

https with datasource Hi, i want to create a secure connection on login. Before, I try only with HTTP connection and work fine. My code is Code:

79. Dynamic data source selection    forum.springsource.org

Dynamic data source selection Hello, I am wondering what will be the best strategy regarding dynamic data source selection. I saw implementation that assume separate (same structure) databases for different clients ...

80. different Spring Txn/Datasource configuration for out of container and WebLogic    forum.springsource.org

different Spring Txn/Datasource configuration for out of container and WebLogic I want to use Spring 2.5.6 for transactional code and to use it for the following environments: (a.) Java 5 SE ...

81. Setting Properties of Datasource and Reset them    forum.springsource.org

Setting Properties of Datasource and Reset them Hy Forum, until now i've set the Properties for Datasource in applicationContext.xml

82. Working with two data sources with EclipseLink    forum.springsource.org

Mar 24th, 2009, 04:42 PM #1 flai View Profile View Forum Posts Private Message Junior Member Join Date Aug 2008 Posts 7 Working with two data sources with EclipseLink Hi, Is ...

83. Annotation driven with multiple datasources    forum.springsource.org

Annotation driven with multiple datasources I'd like to be able to use multiple datasources (some Hibernate, some JDBC) inside the same application context. They do NOT need to be used within ...

84. Changing dataSource based on server environment in jboss    forum.springsource.org

Changing dataSource based on server environment in jboss I have jdbc beans accessing a db based on a dataSource defined in and injected by a bean. The dataSource is defined in ...

85. JNDI Datasource not found in JBoss 4.2.3    forum.springsource.org

Apr 14th, 2009, 04:16 AM #1 praenti View Profile View Forum Posts Private Message Junior Member Join Date Apr 2009 Posts 3 JNDI Datasource not found in JBoss 4.2.3 Hi, I've ...

86. testing a data source    forum.springsource.org

testing a data source I have a requirement in my application to access an external database (not the db I am using for the app) . The db will be accessed ...

87. datasource configuration    forum.springsource.org

datasource configuration hello, I have some issues with datasource configuration.. this is what I put in the xml file : Code: ...

88. Standalone Java app with jbossjta/jbosscache/toplinkJPA/jtds xa datasource - Help    forum.springsource.org

Apr 24th, 2009, 11:44 PM #1 rsmysore View Profile View Forum Posts Private Message Junior Member Join Date Apr 2009 Posts 3 Standalone Java app with jbossjta/jbosscache/toplinkJPA/jtds xa datasource - Help ...

89. Exception in WAS 6.1.0.21 when using XA DataSource    forum.springsource.org

May 6th, 2009, 01:26 PM #1 dudleygb View Profile View Forum Posts Private Message Senior Member Join Date Nov 2006 Posts 193 DESPERATE!! :) Exception in WAS 6.1.0.21 when using XA ...

90. Configure Spring to use different datasources    forum.springsource.org

Configure Spring to use different datasources First, This is somewhat of a continuation from this thread I am building a site that will need to access different databases based on who ...

91. JNDI datasource    forum.springsource.org

May 28th, 2009, 09:21 AM #1 demerol View Profile View Forum Posts Private Message Junior Member Join Date Aug 2006 Location South Africa Posts 18 JNDI datasource Hi there, I am ...

92. LateBinding DataSource    forum.springsource.org

LateBinding DataSource Hi everyone, I use the actual release 2.0.1 of spring batch. One job parameter is the user (and password) of the db-connection to use. I thought of the new ...

93. Multiple DataSource Connection    forum.springsource.org

Multiple DataSource Connection I don't know if this has been asked before or not but i have multiple bean in applicationContext.xml which connects to two different connection :- Code:

94. Spring Annotation - Multiple datasources    forum.springsource.org

Spring Annotation - Multiple datasources Hello guys, I am new to Springs and would want your help to resolve an issue related to Spring Annotations. I am using 2 datasources, jdbc/siebel_int_ds ...

95. Load intercept methods from data source    forum.springsource.org

Load intercept methods from data source Hi! I am developing a test case with Spring Security and I would like to know how to add security to the methods, loading the ...

96. Setting Schema for a DataSource in the ApplicationContext    forum.springsource.org

Setting Schema for a DataSource in the ApplicationContext Hello All, I am relatively new to Spring and may be asking a question that has been answered earlier. However, I could not ...

97. Websphere6 datasource config    forum.springsource.org

Websphere6 datasource config Hello, i'm trying to configure a datasource in the following environment: Websphere 6, spring 2.5.6, java 1.4.2 I followed the indications found in this forum and on other ...

98. Property dataSource required?    forum.springsource.org

Hello Spring DAO gurus, I have a testcase that works for all types of queries but as soon as I try a transaction (jdbctemplate insert) then I'm left with the follow. ...

99. How to modify the datasource after loaded in the web context?    forum.springsource.org

I have a web application and I want to use a proxy user based on the user who logged in. I have found code to do this, but I have to ...