datasource

Resource DATASOURCE rolled back in cleanup of LocalTransactionContainment

家住魔仙堡 提交于 2019-12-06 05:51:16
问题 Im working in a WebSphere Application Server 7, JDK 1.6 and Oracle 11g. Im always receiving this error when using an ejb. [7/1/10 17:12:28:770 BOT] 00000013 LocalTranCoor W WLTC0033W: Resource jdbc/oraDS11 rolled back in cleanup of LocalTransactionContainment. [7/1/10 17:12:28:773 BOT] 00000013 LocalTranCoor W WLTC0032W: One or more local transaction resources were rolled back during the cleanup of a LocalTransactionContainment. This is how im getting the connection from the datasource in WAS

Filling reports from json using JasperReports [duplicate]

非 Y 不嫁゛ 提交于 2019-12-06 05:43:30
This question already has answers here : How to fill report using JSON datasource without getting null values? (3 answers) Closed 3 years ago . I'm beginner with JasperReports ( first try ) so, I set up my netbeans, and my first try using data from database was successful. But now I just want to create my report from json data using Jasper Reports in Netbeans And I think it's not like getting data from Database. By the way I tried to edit my xml file and add this : <textField> <reportElement x="0" y="31" width="555" height="20" uuid="9678a129-61e8-4034-ab8e-739ee5723c87"/> <textElement

Is it possible to use a datasource deployment descriptor with a driver module in Wildfly?

和自甴很熟 提交于 2019-12-06 05:35:25
问题 I can´t configure my datasource by using a "*-ds.xml" deployment descriptor with the database driver installed as module. The datasource *-ds.xml file is only valid if I deploy the database driver directly as jar. I think that If you choose to install the driver as a module you will have to configure the datasource in the standalone.xml directly. I would like the solution driver module + deployment descriptor. 回答1: For your module to be visible to your application, you need to import the

Grails 2.4.2 - Dynamically referencing default datasource

ⅰ亾dé卋堺 提交于 2019-12-06 05:19:18
问题 This question has been partly answered here but there is still an issue with referencing the default datasource dynamically. I'm working on an internal application that allows developers to modify configuration settings for one of our multi-tenant applications and push those settings from dev to testing, staging and production. Each one of these will have their own datasource, and the Grails app will be installed on each developer's computer. The local datasource will be the default one, and

Why isn't this Linq query on Dictionary<TKey, TValue> working as DataSource

故事扮演 提交于 2019-12-06 04:56:17
I have the following in VB: Dim sources = From source In importSources Select New With _ {.Type = source.Key, .Source = source.Value.Name} dgridSourceFiles.DataSource = sources When I debug, sources shows an in-memory query and has 2 records within. Yet the datagrid view will not show the records. So why won't this work? suggestions can be either VB or C#... Update When I use: Dim sources = (From source In importSources Select New With _ {.Type = source.Key, .Source = source.Value.Name}).ToList() ...the datasource is displayed. Your LINQ query is lazily evaluated and implements the IEnumerable

Creating HibernateTemplate by org.springframework.orm.hibernate4.LocalSessionFactoryBean

a 夏天 提交于 2019-12-06 03:40:59
I work with Spring 3.1 + Hibernate 4. I've created the following sessionFactory : <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="myDataSource" /> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.hbm2ddl.auto">validate</prop> </props> </property> <property name="packagesToScan" value="com.my.company"/> </bean> As you see, the above sessionFactory is for Hibernate 4. I am trying to

Switching DataSources in ReportViewer in WinForms

拥有回忆 提交于 2019-12-06 03:34:21
I have created a winform for the users to view view the many reports I am creating for them. I have a drop down list with the report name which triggers the appropriate fields to display the parameters. Once those are filled, they press Submit and the report appears. This works the first time they hit the screen. They can change the parameters and the ReportViewer works fine. Change to a different report, and the I get the following ReportViewer error: An error occurred during local report processing. An error has occurred during the report processing. A data source instance has not been

MsTest, DataSourceAttribute - how to get it working with a runtime generated file?

≡放荡痞女 提交于 2019-12-06 01:37:20
问题 for some test I need to run a data driven test with a configuration that is generated (via reflection) in the ClassInitialize method (by using reflection). I tried out everything, but I just can not get the data source properly set up. The test takes a list of classes in a csv file (one line per class) and then will test that the mappings to the database work out well (i.e. try to get one item from the database for every entity, which will throw an exception when the table structure does not

Spring Boot with multiple datasources Oracle and H2

旧街凉风 提交于 2019-12-05 22:39:53
I develop a spring boot RestController for my angular Project and encountered a problem. In my logic for the rest-service I used two different databases to get data from. Here you can see the datasource configuration: [application.properties] #datasource1 spring.datasource.url=[url] spring.datasource.username=[username] spring.datasource.password=[password] spring.datasource.driverClassName=org.h2.Driver #datasource2 spring.secondDatasource.url=[url] spring.secondDatasource.username=[username] spring.secondDatasource.password=[password] spring.secondDatasource.driverClassName=oracle.jdbc

MS Charts C# DataSource from array or List

南笙酒味 提交于 2019-12-05 19:18:48
i want to fill the data of the charts from values i have in 2D array, one column will present the X-axis and the second is present the Y-axis.. i did it, but its not reading from the array, it gives me the default line when i run the application, i found a solution using List<>, i had an error, so if any one could help me in this, i will be thankful :D this is the code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ICS381Project { public partial