datasource

Connect to database through two ssh tunnels in IntelliJ IDEA

百般思念 提交于 2019-12-11 10:25:00
问题 I'm trying to add a postgresql database as a datasource in IntelliJ IDEA Ultimate. I've worked with a datasource through ONE ssh tunnel already. But now the database server is behind a firewall which only accepts ssh connections from a management server. The only way to access the db server goes over the management server. So I (or IntelliJ) have to connect via ssh to this server and then, by using another user, tunnel via ssh to the database server. Everything clear? :-D The problem is, that

How to dynamically add datasources to jboss 7

心已入冬 提交于 2019-12-11 09:49:52
问题 I have an application which dynamically adds databases for each instance of the application, and which then, on JBoss 5 would write a datasource file out into the deploy folder, so that the application could make use of the new database (And be locked down to it). In JBoss 7 the datasource configuration is inside standalone.xml. And more importantly if I enter new datasources into this file, they don't seem to get read and no datasource is available. Does anyone have any idea how I can

Access the DataSource from the stand alone application

徘徊边缘 提交于 2019-12-11 09:39:50
问题 I have created the data source in Websphere server and its name is myDataSource(JNDI name is oracleDS). Now I want to access it through the stand alone application. I just wrote the bellow code to access the data sorce. Hashtable<String, String> pdEnv = new Hashtable<String, String>(); pdEnv.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory"); pdEnv.put(Context.PROVIDER_URL, "iiop://localhost:2809"); Context initialContext = new InitialContext(pdEnv);

JDBC reconnect problems with Teradata driver using Spring and Apache DataSource

两盒软妹~` 提交于 2019-12-11 08:04:41
问题 I'm using the Apache BasicDataSource for both commons DBCP and connection pool: org.apache.commons.dbcp.BasicDataSource and managing it through Spring: org.springframework.jdbc.datasource.DataSourceTransactionManager While using this combination with the Teradata JDBC driver if my database goes down or there is a network glitch I receive the following error: 08S01 804 : I/O Error, Socket closed. Packet stream write error Which reflects the situation correctly but the problem is with

Resolve Jboss data source configuration issue

牧云@^-^@ 提交于 2019-12-11 07:45:52
问题 After configuring the datasources in the jboss 5.0 AS , I deployed the jbpm web application . Im getting the the exception. java.lang.RuntimeException: mapped-name is required for simpleds of deployment webapple.war at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHand at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325) The web.xml configuration is <resource-env-ref> <resource-env-ref-name>simpleds<

how many datasources can coldfusion handle

十年热恋 提交于 2019-12-11 07:42:37
问题 We have a coldfusion enterprise server with 2 instances. Each instance has 200+ data-sources to databases on one MSSQL server. This number will keep on growing. Now it seems that requests to a single data-source are getting slower even though the database is small. It is possible that requests get slower when CF has more data-sources? 回答1: Are the datasources partitioned for a reason (e.g. different clients/customers, etc)? If this is really just a big application with a bunch of databases,

AX 2012 - ListPage FactBox Part does not refresh on Sub Datasources selection change

旧城冷巷雨未停 提交于 2019-12-11 07:17:50
问题 my issue is on the ReqTransPOListPage, I added a FactBox Part related by ItemId When the user navigates in the Grid records - If the selected field on grid is one of the main DS ReqPO then the FactBox get refreshed! - But if the selected field on the grid is a field of any sub DataSource of Query, then PCDataSourceEventNotify.onRefresh() is not triggered and neither my FactBox. I can't even force refresh in ReqTrans_DS.active() since it's a ListPage based on AOT Query and datasource methods

How to verify that data source is valid and configured properly?

為{幸葍}努か 提交于 2019-12-11 06:35:52
问题 In application start up , I am loading data source as shown below code - @Bean(name = "dataSource") public DataSource getDataSource() { ComboPooledDataSource dataSource = new ComboPooledDataSource (); dataSource.setDriverClassName("com.mysql.jdbc.Driver"); dataSource.setUrl("jdbc:mysql://localhost:3306/usersdb"); dataSource.setUsername("root"); dataSource.setPassword("secret"); return dataSource; } So here I would like to verify that whether the data source loaded properly, One possible way

spring boot datasource tomcat jdbc properties not working

情到浓时终转凉″ 提交于 2019-12-11 06:19:50
问题 I have a Spring Boot application (version 1.5.1.RELEASE) and I am using spring-boot-starter-data-jpa as a dependency to manage my database. I am using postgres as my database and configured it using the below properties. spring.datasource.url=${POSTGRES_URL} spring.datasource.username=${POSTGRES_USER} Now when I run my tests which are almost 120, I get too many client already open error for abou 10 test cases while starting the test case itself and it fails.(remaining 100 test cases pass with

Force datasource to reload data in Angular 2 grid

北城以北 提交于 2019-12-11 06:18:05
问题 I am using Angular 2 and have a grid (ag-grid-angular) with enableServerSideSorting=true and it's working fine only for the first time: the data is loaded and placed in the grid view as expected. When I click on a column to sort that column (which happens automatically) the data is fetched again by calling getRows(params) . The problem is that I have several other input fields: Tabs: to change the type of elements displayed (for example persons or cars). Text field: which is used to enter