datasource 2 « Database « Spring Q&A





1. Manipulating Spring Context - 2datasources&2sessionFacto    forum.springsource.org

In my Spring Application Context I have 2 datasources and 2 sessionFactories. When the Applications Starts Spring cheks if the connections for both databases are OK, but I only need to ...

2. one datasource updated by two contexts    forum.springsource.org

one datasource updated by two contexts I have one database which is MySQL. I have Spring running on two separate machines running two separate applications but both access and update the ...

3. Dynamic DataSource config    forum.springsource.org

Dynamic DataSource config I need to be able to change what database my app is connecting to depending on whether it is being run in development, testing, or production. The best ...

4. Unit Test - Problems using Data Source    forum.springsource.org

Unit Test - Problems using Data Source Hello. I'm trying to test my DAO implementations and, for this, I wrote a new config file with my test data source definition. But, ...

5. Datasource declared 2x    forum.springsource.org

Datasource declared 2x I'm on my first spring app - when I started off I used sample code that configured beans in appname-servlet.xml. When I introduced Acegi security, alot of that ...

6. spring + JDBC for multiple datasources ???    forum.springsource.org

I've answered your post. Search the wiki and the forum if the reference documentation is not enough. P.S. 'spamming' the list will not help you - quite the opposite.

7. Multiple datasources    forum.springsource.org

Hi there , It's is posible to change the data-source that is bound in the SessionFactory at runtime? Supose that application show a screen with "Choose data set1 or data set2" ...

8. Datasource question    forum.springsource.org

Here is a situation The app injects the default DataSource into a bean using spring. In addition the bean has a constructor that takes the DataSource as an argument so that ...

9. Dynamic Data Source    forum.springsource.org

Dynamic Data Source We are new to Spring and it all looks great so far. However, we are unable to inject our data source using the conventional Spring methods because we ...





10. dataSource.getConnection()    forum.springsource.org

dataSource.getConnection() i use jasperreports and i want to set a connection parameter to the report. i use the code below. public ModelAndView handleSubReport(HttpServletRequest request, HttpServletResponse response) throws Exception { Connection conn= ...

11. getting primarykey from datasource    forum.springsource.org

getting primarykey from datasource Hi, Thanks in advance.I got struck in the middle of a problem and please help me. In my application i am using datasouce and performing all operations ...

12. Hot deployable datasources in JBoss producing ManagedConnectionFactory is null    forum.springsource.org

Hot deployable datasources in JBoss producing ManagedConnectionFactory is null I'm new to Spring and love it so far. Integrating it with JBoss hasn't been to bad, however I noticed that if ...

13. Datasource error connection    forum.springsource.org

I have an error with DataSource, I attach this error: ERROR Bean class [org.apache.commons.dbcp.BasicDataSource] not found; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource I have driver jtds what I install into tomcat5.5 path ...

14. Problems intercepting DataSource getConnection() method    forum.springsource.org

Problems intercepting DataSource getConnection() method Hello, We have an application with database access through a datasource defined in the application context in this way: ${jdbc.driverClassNa me} ...

15. URGENT -- Problem with dataSource in JBoss    forum.springsource.org

Dec 20th, 2005, 08:59 AM #1 LORDs_diakonos View Profile View Forum Posts Private Message Member Join Date Oct 2005 Posts 79 URGENT -- Problem with dataSource in JBoss ok I have ...

16. Manually Setting Datasource    forum.springsource.org

Trying to integrate Spring JDBC DAO capabilities into my app. Unfortunately, I have to use it in an already existing framework which provides my piece with an already existing datasource. Now, ...





17. jBPM: No datasource on schema-creation    forum.springsource.org

jBPM: No datasource on schema-creation Just tried to get started with spring-jbpm (from cvs), jBPM 3.0.2 and hibernate 3.1.1. I had problems on spring configuration of jBPM in conjunction with JbpmSchema#createSchema ...

18. Datasource exception during Spring initialization    forum.springsource.org

ApplicationContext problem while Spring initializing I am interested in catching an exception that occurs during Spring initialization but I am not sure of how to do so. I am using Spring ...

19. Dynamic DataSource Solution + Legacy code    forum.springsource.org

Jan 31st, 2006, 01:00 PM #1 dratak View Profile View Forum Posts Private Message Junior Member Join Date Jan 2006 Posts 2 Dynamic DataSource Solution + Legacy code I wanted to ...

20. problem using multiple datasources    forum.springsource.org

problem using multiple datasources I have problem using two datasources in my application. I need the two datasource connecting to two different databases (but no need for transaction, though). Here is ...

21. OC4J DataSource - TypeMismatchExcept    forum.springsource.org

OC4J DataSource - TypeMismatchExcept Hi, I developed and tested my app on Tomcat. Now I'm trying to deploy it on OC4J, where I have to define the DataSource as oracle.jdbc.pool.OracleDataSource instead ...

22. JNDI DataSource Lookups and Glassfish    forum.springsource.org

JNDI DataSource Lookups and Glassfish I'm trying to deploy an app (EJB3) to Glassfish, and I'm having trouble with the JNDI lookup, so I'm hoping someone here can help me (I'll ...

23. Problem in accessing DataSource and Configuration    forum.springsource.org

Problem in accessing DataSource and Configuration Dear Friend, Currently I am trying to configure spring to my Weblogic 8.0 server. I have done following steps. Step 1) Coppied spring.jar to WEB-INF/lib ...

24. Switch datasources using spring    forum.springsource.org

Switch datasources using spring hi, i'm wondering if its possible to do this at runtime. I have two datasources (dev and dit). I am using an ibatis SqlMapClientFactoryBean. Typically the dev ...

25. construct datasource from login details.    forum.springsource.org

construct datasource from login details. The usecase is: DBA users will provide username and password from the acegi login form. The datasource object should be constructed using login username and password. ...

26. dataSource is required?...But, I am providing the datasource...Aren't I???    forum.springsource.org

Mar 17th, 2006, 01:50 PM #1 sairndain View Profile View Forum Posts Private Message Junior Member Join Date Mar 2006 Posts 12 dataSource is required?...But, I am providing the datasource...Aren't I??? ...

27. Program determined Datasource    forum.springsource.org

Program determined Datasource I am trying to migrate an existing web application to use more of the Spring framework. The current process for determing database connection information uses a constructor taking ...

28. Datasource + Imageservlet    forum.springsource.org

Datasource + Imageservlet I'm converting a webproject of mine to spring framework and have a small problem. Everything is working fine, but I wanted to know if there is a better ...

29. Mapping XML File as Datasource in Jetspeed    forum.springsource.org

Mapping XML File as Datasource in Jetspeed Hello all, i used the search a lot, but i did not find a thread for this. I am using Jetspeed 2 as portal ...

30. Datasource type exception    forum.springsource.org

We are getting exceptions when changing the datasorce from oracle to c3p0. We are using aqapi.jar for queuing functionality and getting the following exception code JMS 112. This jar file comes ...

31. datasource help    forum.springsource.org

Apr 13th, 2006, 01:18 PM #1 LORDs_diakonos View Profile View Forum Posts Private Message Member Join Date Oct 2005 Posts 79 datasource help OK I have what appears to be a ...

32. Data source per client.    forum.springsource.org

Apr 17th, 2006, 02:47 AM #1 Peter Kovgan View Profile View Forum Posts Private Message Junior Member Join Date Apr 2006 Posts 2 Data source per client. Hello, I'm looking for ...

33. Hot Swapping a DataSource    forum.springsource.org

Hot Swapping a DataSource I have an application where I need to login to a database to obtain configuration information. The user is then presented with a list that they can ...

34. DataSource definition problem    forum.springsource.org

DataSource definition problem Hi all !! i am having a little problem here... i am using spring with hibernate and i need to configure the data source for the each user ...

35. DataSource runtime definition    forum.springsource.org

DataSource runtime definition Hi all! i have a little problem here... i am using spring with hibernate but I cannot let username and passord definitions in the xml file. So i ...

36. DataSource question for 2-tier apps.    forum.springsource.org

DataSource question for 2-tier apps. Good afternoon everyone, I'm in the process of developing a simple 2-tier client/server application (using the Eclipse RCP framework), and I'm currently using Spring's DriverManagerDataSource as ...

37. Problem with DataSource configuration    forum.springsource.org

Problem with DataSource configuration Hi everybody, it's my first post here, so sorry for my english and for any mistakes. My netbeans warn me with this error Exception in thread "main" ...

38. Spring fails to lookup Data Source using JNDI    forum.springsource.org

Spring fails to lookup Data Source using JNDI I have deployed JASPER War in JBOSS While startting the server i do get the following erorr, 2006-07-07 10:42:38,530 INFO [STDOUT] 10:42:38,530 ERROR ...

39. multiple datasources    forum.springsource.org

multiple datasources So I just started working at a new shop on I've been fortunate enough to be working on a new java webapp project (re-implementing an old cgi app). The ...

40. Multiple datasources vs. UserCache    forum.springsource.org

Multiple datasources vs. UserCache Hi, this might not be a common problem, yet I still hope, that somebody can help me with this. Background: Due to the nature of our projects, ...

41. Application Design Question...Dynamic DataSources?    forum.springsource.org

Application Design Question...Dynamic DataSources? I have a master database which I use to retrieve specific information about which database to use for the application. I don't want to wire every datasource ...

42. Employing third-party non-standard connection pool as data source in spring    forum.springsource.org

Employing third-party non-standard connection pool as data source in spring In my project we have an application that is built in an integration server, mostly in BPML with some custom java ...

43. Why would this cause datasource = null?    forum.springsource.org

Sep 7th, 2006, 10:33 AM #1 u812b4me View Profile View Forum Posts Private Message Member Join Date Jul 2006 Location Hillsborough, NJ Posts 49 Why would this cause datasource = null? ...

44. Datasource connection exception    forum.springsource.org

Datasource connection exception I would like to provide a method to handle connection exception in a jdbctemplate, have searched but no answer currently my beans are defined as

47. Configure jdbc datasource in with     forum.springsource.org

Configure jdbc datasource in with Hi I'm having trouble changing to Spring 2.0 configuration schema. This code works fine but I havent figured out how to convert this with ...

48. Spring Datasource problems    forum.springsource.org

Spring Datasource problems I want to use Spring Bean Datasource to acces a oracle database: public class ConSourceImp implements ConSource{ public DataSource datSource; public void setDataSourc(DataSource datSource) { this.datSourc = datSource; ...

49. swapping data sources    forum.springsource.org

Dec 14th, 2006, 05:38 PM #1 sleyzerzon View Profile View Forum Posts Private Message Member Join Date Oct 2004 Posts 49 swapping data sources I apologize for cross-posting, but it seems ...

50. Dynamic JDBC DataSources    forum.springsource.org

Dynamic JDBC DataSources Alright, let me give you a brief description of my application. I am currently writing a test harness that executes a series of test cases very much in ...

51. jndi container managed datasource not working    forum.springsource.org

jndi container managed datasource not working Hi, I have a problem related to jndi container managed datasource. I have configured jndi in application context, set a resource reference in web.xml, created ...

52. Using multiple datasources in spring    forum.springsource.org

Jan 3rd, 2007, 05:42 AM #1 shirishabandari View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 1 Using multiple datasources in spring Hi, Im using the ...

53. Configure Two datasources using JndiObjectFactory    forum.springsource.org

Configure Two datasources using JndiObjectFactory Hi I have two datasources in my app pointing to two different oracle databases. I am facing a problem while configuring two datasources using JndiObjectFactory. I ...

54. getting datasources defined vi jndi    forum.springsource.org

getting datasources defined vi jndi Hello Im trying to retrofit unit testing into a large webapp. The datasource property for all the hibernate sessionfactory stuff is defined in the configuration to ...

55. Datasource problem    forum.springsource.org

Datasource problem I try to debug the service test implementation of an Entity Bean. I like to use JPA without any dependency on Spring. I followed the instructions found in Chapter ...

56. Using weblogic datasource    forum.springsource.org

Using weblogic datasource Hi, Does anyone have an example on how to use Weblogic's datasource in stead of Springs. I am also using Hibernate. Here is my current context file... Code: ...

57. Datasource select at runtime    forum.springsource.org

We have different data sources for out project. Based on the user credentials we chose the database(Like user from different companies). What is the good the way to change datasource. We ...

58. Best practices on delaying datasource configuration?    forum.springsource.org

Best practices on delaying datasource configuration? Hello! I've got a Spring webapp that uses Hibernate, and derives its datasource from JNDI on container boot. What I'd like to have eventually is ...

59. JNDI DataSource problem    forum.springsource.org

Jan 24th, 2007, 12:53 PM #1 tbednarz View Profile View Forum Posts Private Message Member Join Date Jan 2007 Posts 34 JNDI DataSource problem I am writing a Web Application using ...

60. JNDI DataSource configuration problem (again)    forum.springsource.org

Jan 29th, 2007, 04:39 AM #1 tbednarz View Profile View Forum Posts Private Message Member Join Date Jan 2007 Posts 34 JNDI DataSource configuration problem (again) I (still) get the following ...

61. Use plain JDBC connection instead of DataSource    forum.springsource.org

Use plain JDBC connection instead of DataSource Hi, I like to use Spring's JdbcTemplates in a legacy application. Depending on the experiences, we propably refactor the whole database handling code, but ...

62. Exception occurs when using the SchedulerFactoryBean and a datasource    forum.springsource.org

Feb 3rd, 2007, 09:24 PM #1 jpuro View Profile View Forum Posts Private Message Junior Member Join Date Apr 2006 Posts 9 Exception occurs when using the SchedulerFactoryBean and a datasource ...

63. Setting isolation level on a data source    forum.springsource.org

Setting isolation level on a data source Does anybody know a good way of setting the isolation level on all connections from a datasource in Spring? We use HibernateTemplate together with ...

64. jdbc data source populator    forum.springsource.org

Feb 12th, 2007, 10:44 AM #1 julio View Profile View Forum Posts Private Message Senior Member Join Date Nov 2006 Posts 217 jdbc data source populator Hi, how can I pre-populate ...

65. Separating datasource definitions in separate xml    forum.springsource.org

Separating datasource definitions in separate xml Hi Guys, In order to facilitate non-jndi datasources in integration testing out of my container, I'm attempting to take up the advice of placing the ...

66. many datasources on the same url    forum.springsource.org

many datasources on the same url hi, I need 2 datasources on the same connexion url with different user/password connexion I try it using this configuration:

67. JNDI DataSource in commonJ WorkManager    forum.springsource.org

Question: After searching the web and reading the thread WorkManagerTaskExecutor documentation about how to use the CommonJ WorkManagerTaskExecutor, one important thing does still not work (in Websphere 6.1): Within a WorkManagerTaskExecutor ...

68. Creating new DataSource dynamically    forum.springsource.org

Creating new DataSource dynamically I'm trying to manually create my datasource for testing and run the data through hibernate exactly like I am in production. To accomplish this, I've attempted to ...

69. How do I specify custom properties for a datasource in ApplicationContext    forum.springsource.org

How do I specify custom properties for a datasource in ApplicationContext Here is how my datasource is defined in the applicationContext file. net.sourceforge.jtds.jdbc.Driver

70. Datasource connection pool exhausted, and do not restore!    forum.springsource.org

Datasource connection pool exhausted, and do not restore! Hello everyone, this is my spring configuration file Code:

71. Multiple datasource question    forum.springsource.org

hi all... I need to connect to 2 datasources (both Oracle). After looking around, it looks like HotSwappableTargetSource would be helpful. I'm using JndiObjectFactoryBean in both my datasources. Could someone point ...

72. how to get a JNDI dataSource in a static method    forum.springsource.org

how to get a JNDI dataSource in a static method So, I have the unfortunate task of integrating a bunch of outsourced non-Spring-oriented code with our Spring application. In our app, ...

73. Creating datasource at runtime    forum.springsource.org

My requirement is during the start of the application I'll be getting DBUrl/username/password from some external interface.[this code we are doing in servlet which loads during startup] These values will act ...

74. AbstractTransactionalDataSourceSpringContextTests and mulitple datasources    forum.springsource.org

AbstractTransactionalDataSourceSpringContextTests and mulitple datasources I'm trying to use AbstractTransactionalDataSourceSpringContextTests derived test classes to perform transaction/rollback testing with two datasources. The context file injects both data sources as SessionFactory objects and the ...

75. Runtime managing of Datasources.    forum.springsource.org

Runtime managing of Datasources. Hi, I am building a dashboard application, in which user can manage(add/delete/modify) his datasources at runtime and allow data to come from different sources at runtime. Consider ...

76. Setting Datasource properties with PropertyPlaceholderConfigurer    forum.springsource.org

Setting Datasource properties with PropertyPlaceholderConfigurer Hi all, I am facing an issue on how to set the Datasource using PropertyPlaceholderConfigurer. My datasource configuration is like this: Code: ...

77. testing read-only datasource    forum.springsource.org

testing read-only datasource Hi, I'm using a subclass of AbstractTransactionalSpringContextTests to test an interface named "IIntegration". The transactional behaviour of this interface is defined as follows: Code:

78. UnsatisfiedDependencyException with dataSource definition    forum.springsource.org

UnsatisfiedDependencyException with dataSource definition Hi, Ok, I have read lots of threads about similar topics but nothing seems to fit. So apologies for yet another post about UnsatisfiedDependencyException. I have my ...

79. Testing Multiple dataSources with AbstractTransactionalDataSourceSpringContextTests    forum.springsource.org

Testing Multiple dataSources with AbstractTransactionalDataSourceSpringContextTests So I have two data sources configured in the main context xml, as well as doubled transaction managers, advice and pointcuts. Before when I only had ...

80. DataSource.getConnection freezes for 3 min when the db is down    forum.springsource.org

Hi Guys, i use oracle.jdbc.pool.OracleDataSource. i see that OracleDataSource.getConnection freezes for 3 min when the db is down. both loginTimeout and ConnectionWaitTimeout are set. i tested it with plain jdbc and ...

81. Can Spring use my dataSources?    forum.springsource.org

Hi, all I have to get information from different DB; I get user name and password for each DB from different file, so I already create a map of dataSources, such ...

82. dataSource not set when run AbstractTransactionalDataSourceSpringContextTests test    forum.springsource.org

Jun 13th, 2007, 09:40 AM #1 dugayap View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 8 dataSource not set when run AbstractTransactionalDataSourceSpringContextTests test Hi, I ...

83. JNDI Datasource unavailable at application startup causing problems    forum.springsource.org

Hi, I have a JNDI Datasource with a (non required) database behind it. This Database is sometimes offline. This causes an exception on startup and my application is not started, because ...

84. multiple datasources    forum.springsource.org

Hi as i need to use two different databases in an application. Can i use two different datasources withdifferent session? if so how do i do this can somebody give me ...

85. DataSource lookup through JNDI    forum.springsource.org

DataSource lookup through JNDI Am new to Spring. Trying to do a JNDI lookup to obtain a reference to DataSource object. The following is the config file that i use ...

86. Spring datasource inside AAR    forum.springsource.org

Jul 11th, 2007, 12:58 PM #1 bek816 View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Posts 4 Spring datasource inside AAR I'm trying to setup a ...

87. problem when using own datasource    forum.springsource.org

88. Property 'dataSource' is required    forum.springsource.org

89. Property 'dataSource' is required    forum.springsource.org

90. Testing autowire datasource    forum.springsource.org

8.3.3. Transaction management AbstractTransactionalSpringContextTests depends on a PlatformTransactionManager bean being defined in the application context. The name doesn't matter, due to the use of autowire by type. My application uses Websphere ...

91. Modifying cacheKey for multiple datasources via interceptor    forum.springsource.org

Modifying cacheKey for multiple datasources via interceptor hi everyone, we are currently working on an application which switches the datasource by loging in according to the users organisation. the switching is ...

92. Handling multiple datasource in a smart way    forum.springsource.org

Aug 2nd, 2007, 04:21 AM #1 Mihalis View Profile View Forum Posts Private Message Junior Member Join Date Aug 2007 Posts 1 Handling multiple datasource in a smart way Hi all, ...

93. JNDI dataSource error    forum.springsource.org

JNDI dataSource error While publishing a web application on OC4J (10.1.3), I get the following error: Caused by: javax.naming.NameNotFoundException: java:comp/env/jdbc/pool/OracleCache not found in Axis-Demo at com.oracle.naming.J2EEContext.getSubContext(J2EECo ntext.java:183) at com.oracle.naming.J2EEContext.lookup(J2EEContext.j ava:133) at ...

94. Accessing dataSource from ApplicationContext    forum.springsource.org

Accessing dataSource from ApplicationContext I have a bit of an issue. I am running an MDP in websphere consuming incoming MQ messages. I load an instance of applicationContext using ContextLoaderListener in ...

95. Datasource configuration - error even though values set    forum.springsource.org

Datasource configuration - error even though values set Hi I am getting a strange error when I remove hardcoded values from the datasource configuration even though the datasource values are getting ...

96. Dynamically replace datasource values (other than from properties file)    forum.springsource.org

Dynamically replace datasource values (other than from properties file) Hi I would like suggestions as to what is the best approach to solve the following situation (I am new to Spring) ...

97. Error while passing DataSource Connection to SQLJ transalated program    forum.springsource.org

Error while passing DataSource Connection to SQLJ transalated program Hi,We are using sqlj transalated code in our application and when are passing a datasource connection to the code it was giving ...

98. JNDI datasource look up    forum.springsource.org

Hi All I normally look up datasource which is local to my app as: Context ctx = new InitialContext(); context.lookup..... I want to configure the spring context file to specify a ...

99. JNDI datasources do not work with spring, but they do without spring    forum.springsource.org

Sep 17th, 2007, 05:51 PM #1 amccarri View Profile View Forum Posts Private Message Junior Member Join Date Aug 2007 Posts 14 JNDI datasources do not work with spring, but they ...

100. help spring2+ibatis2 unknown datasource    forum.springsource.org

help spring2+ibatis2 unknown datasource http://localhost:8888/spring/db.do erro show Code: HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this ...