All Questions
Tagged with sqldatasource java
15 questions
0
votes
0
answers
136
views
Comparing two table schemas and generate the Alter table query for SQL databases
I have a requirement where I have two tables in two different databases, where one is source and other is destination. I have to pull the table schema between source table and destination table and ...
1
vote
1
answer
395
views
Using OS system variable for @DataSourceDefinition password failed in Wildfly 18
I want to externalize password for Java @DataSourceDefinition using OS system variable ${appuserpwd}. The below is my @DataSourceDefinition
@DataSourceDefinition(
name = "java:app/jdbc/mydb&...
0
votes
1
answer
544
views
EJB 3.1 remote access + Jboss 7.3 +JPA
I have created a EJB 3.1 application which uses remoting EJB project jar is deployed on Jboss application and Web project Client war is deployed on Tomcat server both the servers are running on ...
0
votes
1
answer
84
views
problem while inserting hindi text in mysql using wildfly
I am trying to insert some hindi text in mysql table from my web page. The server I am using is wildfly. I can insert the hindi text from mysql console. But when the same query is run from my bean ...
0
votes
1
answer
532
views
How to pass validation query for sql server in fuse osgi environment
How to pass validation query, testonborrow, validationQueryTimeout properties to sqlserver datasource in Fuse Osgi environment? We are using osgi service to expose microsoft SQLServer datasource. ...
0
votes
1
answer
846
views
Flowable create user defined tables with mysql using datasource configuration & springboot
I am trying flowable with springboot and when I include flowable engine in maven dependency it creates tables required for flowable.
But am unable to create a user defined table to insert/update ...
0
votes
1
answer
641
views
Intercept connection pooling of Datasource connections in JEE container
is it possible to intercept the connection pooling mechanism of a DataSource in a JEE container?
For (un)setting some information on the connection's context I'm searching for a way to intercept the ...
0
votes
1
answer
710
views
java web app refuses to connect to SQL Database when deployed on Tomcat
So i am facing the following problem.
I have developed an web app that has the following connection to a SQL Server database. (db connection code attached)
public class DBConnection
{
private ...
1
vote
0
answers
234
views
Hikari connection Leakage error
I have implemented Hikari connection with java configuration the code is below ,
HikariConfig sqlConfig = new HikariConfig();
sqlConfig.setDataSourceClassName(WebAppListener.getContextParameter(...
1
vote
1
answer
972
views
How to bind a Data Source?
I'm getting an error -
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'netLogsDao': Injection of resource dependencies failed; nested
exception is org....
0
votes
1
answer
200
views
Convert SimpleJdbcTemplate to DataSource to be able to access a resource from within another resource
i'm using Java Spring to create a REST-Interface
I am trying to access the .get() function of a specific resource A from within the .get() function of another resource B. (to avoid copy-pasting some ...
1
vote
0
answers
2k
views
java connection pool autocommit
I'm using for the first time the connection pool in java. The application that I'm writing is a web application deployed on oracle glassfish 3.1 and the resource connection pool is handled by it. I ...
1
vote
1
answer
3k
views
How can I get sql server database name from DatabaseMetaData object
I am wondering how can I get the database instance name from DatabaseMetaData, or is there any way I can do that, kind of stuck here, thanks for any pointers!
How to get sqlserver database name from ...
0
votes
2
answers
17k
views
How to get sqlserver database name from datasource name in Java
As specified in the title, I want to get the database name in sqlserver, all info I know is datasource name, login name/password to get the Connection object, please show some pointers on how to ...
0
votes
2
answers
1k
views
Retrieve Datasource Statistics on JBoss
How would i programmatically retrieve usage statistics for datasources deployed on JBoss? Its possible with GlassFish, however lost on how to do the same for JBoss.