datasource

How can I remove more than one item from a listbox?

…衆ロ難τιáo~ 提交于 2019-12-12 03:25:40
问题 This is really getting annoying; or, to be honest, it became quite annoying a good while back. Programmatically removing items from a listbox should be pretty straightforward, yet it seems everything I try ends up the same: with an exception. This time it's "InvalidOperationException". In context (excerpt of log file): Date: 2/12/2015 7:15:17 PM Message: Reached frmMain.UpdateGUIAfterTableSend Date: 2/12/2015 7:15:17 PM Message: From frmMain.SendDeliveries(): InvalidOperationException; Inner

TomEE deploy failed datasource not found

吃可爱长大的小学妹 提交于 2019-12-12 03:22:43
问题 I want to deploy a war file to TomEE but fails with: Caused by: javax.naming.NameNotFoundException: Name openejb/Resource/application_name/mysql_ds" not found. If I restart the server, the deploy goes fine but only once, then the same error encounters. I have defined datasource in WEB-INF/resources.xml file <tomee> <Resource id="mysql_ds" type="javax.sql.DataSource"> JdbcDriver = com.mysql.jdbc.Driver JdbcUrl = jdbc:mysql://IP:3306/db?serverTimezone=UTC&autoReconnect=true UserName = user

Execute a sql statement when a connection is created

坚强是说给别人听的谎言 提交于 2019-12-12 02:54:15
问题 For our application to work properly we need to execute a SQL Statement on every new connection, before that connection is handed out to the application. How do I configure a data source in WAS 7 accordingly? We found the (deprecated) option to validate the datasource using a sql statement, which hopefully does the trick (coworker is testing it right now). This sounds wrong, since we are not 'testing' the connection, but setting it up properly. Also its deprecated so this probably will stop

Configuring a JTA datasource for JBoss 8 (WildFly)

蓝咒 提交于 2019-12-11 20:42:38
问题 So, I read several times that if you use a Java EE container, you do not need to add environment params to an InitialContext in order to be able to use JNDI. So I tried this: @Bean public DataSource dataSource() { JndiDataSourceLookup jndiDataSourceLookup = new JndiDataSourceLookup(); return jndiDataSourceLookup.getDataSource("java:global/ExpensesDataSource"); } However, retrieving a datasource using JNDI like this gives me a NoInitialContextException , telling me to specify the environment

XML Data Source Connection in Visual Studio 2012

被刻印的时光 ゝ 提交于 2019-12-11 20:21:14
问题 Is it possible to create an XML Data Source connection in Visual Studio 2012? When I go to create a new connection for an XML database, I do not see any selection for an XML file. All I see are the following: Access, ODBC, SQL Server (3), and Oracle Is it possible? 来源: https://stackoverflow.com/questions/12903643/xml-data-source-connection-in-visual-studio-2012

Creating XA Datasource in JBoss 7.1.1 for MySQL Cluster : Connection Read Only Error

我的梦境 提交于 2019-12-11 19:38:56
问题 We are configuring the XA datasource in the JBoss 7.1.1 application server for the backend clustered MySQL server (Master-Master configuration). Below are the datasource configuration: <xa-datasource jndi-name="java:/datasoucrenew" pool-name="datasoucrenew" enabled="true" use-ccm="false"> <xa-datasource-property name="URL"> jdbc:mysql://10.2.0.35:3306,10.2.0.36:3306/test_prod?autoReconnect=true </xa-datasource-property> <xa-datasource-property name="password"> password </xa-datasource

Kendo DataSource Transport.Destroy with function got called too much

断了今生、忘了曾经 提交于 2019-12-11 19:26:50
问题 I've got a strange problem using transport.destroy: I have a Listview with a swipe event to open the delete option. (like most apps) i did implement this: http://demos.kendoui.com/mobile/listview/editing.html#/ in my app. everything work fine, except destroy am listview item will be called for X+1 (x = deleted items) At first deletion it will be called once, at the 2nd time it will be called twice and so on. Here is the JSBin: http://jsbin.com/AGAGUfE/11/ You can see it within the console for

VBA Chart setsourcedata

心不动则不痛 提交于 2019-12-11 16:49:12
问题 I have to write a VBA script to define Data Source for a chart, but I am not a VBA programmer. In my workbook, I have many sheets and many sheets have many charts. In my VBA I have to define data source for every chart. For this, I want to know whether I can write in my module the below statement: <sheet-name>.<chart-name>.SetSourceData Source ='CPU_UTIL'!$A$1:$A$31,'CPU_UTIL'!$N$1:$O$31 Whether this syntax is correct and can I use it directly? 回答1: First of all, I am a little hesitant to

When does CakePHP call the is_connect method in a data source?

隐身守侯 提交于 2019-12-11 16:38:07
问题 I notice many CakePHP data source authors create the method to always return true. Is this so that you can ask the data source if it is connected ( like in a MySQL or Oracle db) or does the CakePHP data source itself call that function at some point? 回答1: there is a connected property in DBO_* but no methods like is_connected. you can also find a connect() method in the DBO files. The connect will be called when the model is called as that will call the datasource. The reason most datasources

Why must I add a DataGridView to a Form in order to get the data?

浪尽此生 提交于 2019-12-11 15:58:49
问题 I had to copy a datagridview to another, in order to iterate through it within a backgroundworker thread, creating an excel export. The copy was made to allow users to made some changes in the original datagridview, during the export. So I created a new DataGridView (programatically), and put a copy of the original DataTable into the DataSource property of the new DataGridView. However, I figured out that if I don't add the datagridview in the Controls (list) property of any Form, the