connection 2 « Database « Spring Q&A





1. Database connection failure retry    forum.springsource.org

Hi All, I am new to Spring and iBatis. I am working on standalone application and using Spring + iBatis to for database operations. My application should be able recover from ...

2. Running out of connections or deadlocking?    forum.springsource.org

Running out of connections or deadlocking? I've recently deployed my application. It is configured on spring + hibernate. Everything was running smoothly during development, and now it's deployed on a live ...

3. Setting schema on connection using spring    forum.springsource.org

Im using Spring 2.0. Whats the best practice to set the schema using spring while using JdbcTemplate ? I have multiple datasources with different schemas (say loaded from a property file). ...

4. Keep an open connection    forum.springsource.org

Hi I have a page controller where I need to call some DAOs methods. The problem is that the DB connection through all those DAOs must be the same, so I ...

5. Connection Problem??    forum.springsource.org

Connection Problem?? Hi Guys, I am using JSF 1.1 --> Spring --> Hibernate 3 in my web application using Sun App Server 8.2 in Solaris 10 Recently i find out after ...

6. Firewall destroying connection to siebel database    forum.springsource.org

Hi, I had problem with firewall braking connection to siebel after particular period .I m using siebelDataBean ,dataBean.login to log into siebel then using siebel Ic to pass query.Can i forcefully ...

7. Connection timeout    forum.springsource.org

Hi, I would like to setup a connection timeout to prevent long queries used up all connections. However, the Transaction Timeout attribute in Spring does not work in my case because ...

8. Exception ClientAbortException: java.net.SocketException: Connection reset by peer    forum.springsource.org

Exception ClientAbortException: java.net.SocketException: Connection reset by peer Hi, i facing a problem. after some time while accessing any page, tomcat log throws following exception: WARNING: Exception Processing ErrorPage[errorCode=404, location=/WEB-INF/jsp/pagenotfound.jsp] ClientAbortException: java.net.SocketException: ...

9. Connection Timeout Issue - J2CA0020E.    forum.springsource.org

Jan 22nd, 2007, 03:23 PM #1 netizeng View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 1 Connection Timeout Issue - J2CA0020E. Hi, We are using ...





10. No Managed Connections    forum.springsource.org

No Managed Connections Hello all, We are currently using JBOSS4.0.5 , spring-framework-2.0-rc4 and hibernate-3.2.1.ga. After about 5 hours of running, we have start to get the following exception. Can someone please ...

11. JDBCExceptionReporter - "Too many connections"    forum.springsource.org

Feb 26th, 2007, 10:40 AM #1 jsp1611 View Profile View Forum Posts Private Message Junior Member Join Date Feb 2007 Posts 7 JDBCExceptionReporter - "Too many connections" Hi there, I'm having ...

12. Graph not showing connections anymore    forum.springsource.org

I just did my usual Callisto update, and installed the latest nightly build, and the connections between beans are no longer drawn in the graph view. Reverting to a previous nightly ...

13. Close a connection    forum.springsource.org

Hi all! I use Acegi for authentication against an LdapServer. My application uses a BindAuthenticator and it seems that the user start a connection to the LdapServer with his own principal/credentials ...

14. Multiple pools starting/Retrieving connection info    forum.springsource.org

Mar 26th, 2007, 03:50 PM #1 igboyd View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 2 Multiple pools starting/Retrieving connection info I have multiple connection ...

15. Is Connection.setReadOnly() used?    forum.springsource.org

I'm thinking about using a Mysql in master/slave mode. They state that they allow for it by using the Connection.setReadOnly(true/false) where read-onlys will be carried out against slaves and others against ...

16. Spring Remoting connection issue    forum.springsource.org

Spring Remoting connection issue We are using spring remoting to implement a network management system. Right now, we have an issue that client is not able to connect to NMS server ...





17. Dynamic Connection to mulitiple database    forum.springsource.org

Dynamic Connection to mulitiple database Hi, I have a requirement where in, I should connect to a master database for authenticating the client IP address and once it is authenticated, i ...

18. Mutiple data connections using OSIV    forum.springsource.org

We have a application that uses the Open Session In View pattern and now want to add a second data source (Session Factory). Are there any established patterns or examples on ...

19. Avoidng Hardcode values for DB Connection    forum.springsource.org

Avoidng Hardcode values for DB Connection I am new to Springs and right now doing my first project. I have no formal training in springs and just doing fire fighting. I ...

20. DB Connection    forum.springsource.org

Hi All, i wanted to check whether my application got connected to DB, if not i want show an error message. Which is the best place to check this and disply ...

21. Connection Refresh Delay    forum.springsource.org

I'm using JndiObjectFactoryBean and JdbcTemplate to access my datasources managed by a Weblogic 8.1 and Oracle 8.1/9. The problem is that whenever the connections are lost the first guy that hits ...

22. Can't get connection for Jackrabbit using JCA    forum.springsource.org

Aug 1st, 2007, 12:55 PM #1 dmunguia View Profile View Forum Posts Private Message Junior Member Join Date Jun 2006 Posts 12 Can't get connection for Jackrabbit using JCA Hi, I ...

23. Two database connections at the same time    forum.springsource.org

Two database connections at the same time Hello. What would be the preferred way to connect to two databases at the same time using hibernate, spring and declarative transactions? We are ...

24. P6Spy Connection + Lob Handler    forum.springsource.org

Aug 13th, 2007, 04:42 PM #1 hi2ramesh View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Posts 2 P6Spy Connection + Lob Handler Hi - I am ...

25. Connection timed out -can't figure out how to avoid this    forum.springsource.org

Connection timed out -can't figure out how to avoid this I've taken over a Spring based app and it's having issues. It's a web app that simply searches a database for ...

26. Remote client connection error to imqbroker (JMS Provider)    forum.springsource.org

Remote client connection error to imqbroker (JMS Provider) Error: Aug 20, 2007 3:00:08 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler throwConnectionException WARNING: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused: connect I ...

27. How to get handle to the current Connection being used?    forum.springsource.org

Hello All, Currently in our project we are using Spring's iBatis Support API for accessing Database tables. We have created a class called "DatabaseService" extending org.springframework.orm.ibatis.support.SqlMapClien tDaoSupport. The configurations to datasource ...

28. Will Spring close the connection for me?    forum.springsource.org

Hi, I am using a transaction manager and using @Transactional to mark some methods. This is working fine. The connection is closed at the end of the transaction. But what if ...

29. Could not refresh JMS Connection - retrying in 5000 ms    forum.springsource.org

Could not refresh JMS Connection - retrying in 5000 ms I am attempting, without much luck, to perform a fairly simple test with Spring/ActiveMQ. I create a durable topic T and ...

30. Why Does SPRING NEED SO MANY connections to the database    forum.springsource.org

Why Does SPRING NEED SO MANY connections to the database I am using iBATIS with SPRING on "MySQL" database to insert huge amounts of data into one table. All seems to ...

31. Problem in getting Database connection    forum.springsource.org

Problem in getting Database connection I am trying to develop a webservice using Spring... In the server side I am using interceptors for logging the header information: In the class that ...

32. Database Connection Issue    forum.springsource.org

Database Connection Issue Hi, I am working with Spring with Hibernate combination. I was confused about find the right place for this question (whether to put in Acegi/DataAccess?) Well here's is ...

33. singleconnection factory - refreshing the connection    forum.springsource.org

Hello, I use SCF with a 3 queue and 1 topic DefaultMessageListenerContainers. I have my application running and i stop the activemq i got the usual connection exception information. When I ...

34. java.rmi.ConnectIOException: error during JRMP connection establishment    forum.springsource.org

Nov 6th, 2007, 11:40 PM #1 mchisty View Profile View Forum Posts Private Message Junior Member Join Date Oct 2004 Posts 10 java.rmi.ConnectIOException: error during JRMP connection establishment Hi, I'm facing ...

35. Problem with ARRAY Closed Connection    forum.springsource.org

Problem with ARRAY Closed Connection I have problems using Spring Stored Procedure to get the result from a stored procedure returning and Array of Object Type. I always get java.sql.SQLException: Closed ...

36. how to override default connection provider by spring    forum.springsource.org

hello all, Sring provides org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider as the default connection provider for hibernate property hibernate.connection.provider_class But i am trying to use org.hibernate.connection.C3P0ConnectionProvider as my connection provider, so how can i do ...

37. Connection TOPIC JBoss-3.2.5    forum.springsource.org

Code: public class JMSSender { private JmsTemplate102 jmsTemplate; private TextMessage message; /** * @param jmsTemplate102 * The jmsTemplate102 to set. */ public void setJmsTemplate(JmsTemplate102 jmsTemplate102) { this.jmsTemplate = jmsTemplate102; } public ...

38. Too many connections open in the database    forum.springsource.org

Too many connections open in the database Hi we are using struts, hibernate, and spring in a project. when a user starts testing, the application creates connections to the database but ...

39. Multiple Database connections through spring and hibenate    forum.springsource.org

Multiple Database connections through spring and hibenate Hi, I am new to hibernate and spring. I have done some examples using spring and hibernate with one database connection. I am loading ...

40. How does Spring get the database connection properties    forum.springsource.org

How does Spring get the database connection properties I am building an Non-Web Java application which involves connecting to a database. I am not using plain JDBC because, to my understanding, ...

41. Stand alone Java and Connection    forum.springsource.org

Stand alone Java and Connection Hi We are creating a batch application to pull large amount of data. The application is a stand alone java and does not use any AppsVr. ...

42. Lazy database connection    forum.springsource.org

Hi i m new in using Spring Framework. This is my problem. i m developing portal application using JSF + Spring + Hibernate. I want Lazy database connection. How can I ...

43. Lazy database connection    forum.springsource.org

Hi i m new in using Spring Framework. This is my problem. i m developing portal application using JSF + Spring + Hibernate. I want Lazy database connection. How can I ...

44. Connection refused: connect, any help!!    forum.springsource.org

Connection refused: connect, any help!! Hi everybody, I have a big problem with this error : Code: Exception in thread "main" org.springframework.ws.client.WebServiceIOException: I/O error: Connection refused: connect; nested exception is java.net.ConnectException: ...

45. Jms Connection.start    forum.springsource.org

Jms Connection.start I ma creating a Generic framework ontop of the Spring JMS. Our company uses TIBCO as the preferred vendor. The Queue are setup as permanent Queues however replies are ...

46. Check if DB connection is active    forum.springsource.org

Check if DB connection is active Hello Every Body: I am implementing a solution for my enterprise and i found this trouble: How can I kwon a Oracle Database is active ...

47. Problem with database connections    forum.springsource.org

Problem with database connections Hello I have a stupid question. How i configurated a applicationContext when i use hibernate3 and mySql innoDB database. Right now my config file looks like this: ...

48. DefaultMessageListenerContainer creates hundreds of jms managed connection    forum.springsource.org

DefaultMessageListenerContainer creates hundreds of jms managed connection Hello, i am using a DefaultMessageListenerContainer102 for asynchronous message processing in websphere application server 5.1 and websphere MQ 5.3. It is working stable. But ...

49. FTP Connection Support    forum.springsource.org

FTP Connection Support Hi, I am developing Spring Apps to be integrated with COBOL. I need to use lots of flat file export and import functionalities from Spring Batch which are ...

50. Find when connection opened/closed?    forum.springsource.org

I am using JDBCTemplate class for DB operations,using a Websphere Datasource. Is there a way to find out when the connection was opened and when it was closed?

51. Questions re: Multiple Spring JMS MQSeries connections, and scalability problems.    forum.springsource.org

Apr 1st, 2008, 10:58 AM #1 Dante8 View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 1 Questions re: Multiple Spring JMS MQSeries connections, and scalability ...

52. DefaultMessageListenerContainer what is the connection extent    forum.springsource.org

Hi, When maxConcurrentConsumers is set to certain number much greater than concurrentConsumers, how does the framework increase the number of concurrent consumers. Is it configurable? Ex: if concurrentConsumers=5 and maxConcurrentConsumers=20. Will ...

53. DefaultMessageListenerContainer does not release JMS connection on stop.    forum.springsource.org

DefaultMessageListenerContainer does not release JMS connection on stop. I'm trying to write some integration tests that make use of JMS Queue. As part of the setUp() call I want to drain ...

54. Best Practise: Howto handle a Connection Reset    forum.springsource.org

Best Practise: Howto handle a Connection Reset Hi all, when I get somewhen a Connection Reset Execption, what is the best way to re-establish a new Connection to the database ? ...

55. DefaultMessageListenerContainer not closing JMS connections    forum.springsource.org

It appears to me that if I call shutdown on DefaultMessageListenerContainer, it does not close the underlying connection, has anyone else seen this or am I calling the wrong method. Thanks ...

56. Unit tests rolling back on wrong connection    forum.springsource.org

Unit tests rolling back on wrong connection I created a junit parent class that extends AbstractTransactionalDataSourceSpringContextTests which should rollback a transaction after the test method completes. However, what seems to be ...

57. database connection error    forum.springsource.org

database connection error In Spring when I use datasource as - it gives me connection=null for first ...

58. Connection-related Exceptions Handling    forum.springsource.org

Connection-related Exceptions Handling Hello, This question had been already discussed, but I couldn't find a solution that would completely suit me. Also, I'm not very good at Spring, so I apologize ...

59. Question about SimpleMessageListenerContainer connection recovery    forum.springsource.org

Hi, I use SimpleMessageListenerContainer to drive my message bean with spring 2.5.4. The SimpleMessageListenerContainer with this version claimed it support connection auto recovery. However, I test this feature with my activemq ...

60. How get the DB Connection closed with Spring?    forum.springsource.org

How get the DB Connection closed with Spring? Hello Springs, I am a Spring noob and I've got a simple question: I'm using Springs JDBC Template and DataSource... Just like this: ...

61. Problem with connection after exception is thrown    forum.springsource.org

Hello i have MDB which execute some method on stateless bean. This method can throw runtime exceptions. Excecution of method is in the big catch block. In this catch i execute ...

62. Dynamic configuration of database connection    forum.springsource.org

Dynamic configuration of database connection Hi everybody, in our current project, we have got a small problem... Our architecture is a 3-tier-architecture, whith a hibernate database, a middleware (run as a ...

63. Exception when no internet connection    forum.springsource.org

Aug 22nd, 2008, 02:41 AM #1 ram bahadur View Profile View Forum Posts Private Message Junior Member Join Date Apr 2008 Posts 17 Exception when no internet connection hi, When i'm ...

64. Connection leak problem when using TransactionSychronizationManager with JMSTemplate    forum.springsource.org

Connection leak problem when using TransactionSychronizationManager with JMSTemplate I have a usage that I need to send several message to other system when our side is committed. We have considered different ...

65. RMI Works on First Run, then Connection Refused    forum.springsource.org

RMI Works on First Run, then Connection Refused Hi, Strange problem here. I have an RMI service (RmiServiceExporter) and an RMI client (RmiProxyFactoryBean). The service piece is running in a web ...

66. RMI Works on First Run, then Connection Refused    forum.springsource.org

RMI Works on First Run, then Connection Refused Hi, First, sorry for the double post. I posted it in 'core container' group before remembering there's a special group for RMI. I ...

67. Connection managements    forum.springsource.org

68. Connection Timeout!    forum.springsource.org

Oct 27th, 2008, 09:21 AM #1 ashleyvijay View Profile View Forum Posts Private Message Senior Member Join Date Sep 2008 Location Mannheim,Germany Posts 125 Connection Timeout! Hi Im having problems with ...

69. reg SmartDataSource and reusing connection    forum.springsource.org

Hello, I'm using jdbcTempalte as given below and setting custom fetchsize. this.coreJdbcTemplate = new JdbcTemplate(dataSource); this.coreJdbcTemplate.setFetchSize(fetchSize); In debug log, I noticed the message "Returning JDBC Connection to DataSource". I think fetchSize ...

70. HibernateJpaDialect doesnt release borrowed connection after TX completion    forum.springsource.org

HibernateJpaDialect doesnt release borrowed connection after TX completion We use JPA with Hibernate in standalone mode, that is we inject DriverManagerDataSource into EntityManagerFactory. We implement flow managed persistence context using spring ...

71. multiple db connections    forum.springsource.org

I am using quartz schedular which in turn calls two different applicationcontext(with transactions linked through hibernate) as the configuration is different for both. Am running into into a problem wherein if ...

72. Database connections usage    forum.springsource.org

Database connections usage How do SpringBatch use/reuse database connections when a transaction is commited? We are running a simple batch that updates a field in a table. According to our database ...

73. DefaultMessageListenerContainer connection closed    forum.springsource.org

DefaultMessageListenerContainer connection closed I am getting this "connection closed " issue. I am using Websphere 6.1 Spring 2.5 and Hibernate Here is my application context file :

74. weblogic.jms.common.JMSException: Connection not found    forum.springsource.org

weblogic.jms.common.JMSException: Connection not found Hi, I am trying to send a message by using Weblogic8.1 which is running in another system.... Looks like it is able to recoganize the QUEUE details;however ...

75. manage database connection    forum.springsource.org

manage database connection Hi, My existing application uses JpaTransactionManager. I need to make some enhancement to that application which requires using stored procedures. I gave up using EntityManager.createNativeQuery after many failed ...

76. Can't operate on a closed Connection    forum.springsource.org

Can't operate on a closed Connection Hi, I am trying my luck here since I do understand that my problem is heavily application related (probably) so I cannot do a full ...

77. Simulating stale connection    forum.springsource.org

78. RCP client server connection    forum.springsource.org

RCP client server connection Hi, my company is starting to work on something call MDA and AndroMDA, the last one is a tool that generates code from models. Is very interesting ...

79. Connection Reset Exception    forum.springsource.org

Apr 30th, 2009, 05:55 AM #1 arvindc View Profile View Forum Posts Private Message Junior Member Join Date Apr 2009 Posts 1 Connection Reset Exception I am working on the project ...

80. HTTP Remoting and persistent connections    forum.springsource.org

HTTP Remoting and persistent connections We have what is essentially a client/server app using Spring HTTP remoting to maintain several polled data feeds. Using RMI, the client shares one socket connection ...

81. When exactly is the connection opened/closed?    forum.springsource.org

Hello, Can someone please help me understand when the database connection is actually opened/closed in this example? Code: @Service public class someService { private MyDao myDao; @Autowired public void setMyDao(MyDao mydao) ...

82. Flash messages and database connections    forum.springsource.org

Flash messages and database connections Hi everyone Is Roo planning to provide flash messages that supports redirect (like Rails and Grails) in roo applications? and what about different databases' connections (like ...

83. problem with maxPoolSize and losing connection    forum.springsource.org

problem with maxPoolSize and losing connection hi evry body... When active connection counts on db reach to "maxPoolSize" connection to db gets lost but there is no exception. It seems it ...

84. Robust RMI Connections    forum.springsource.org

Robust RMI Connections Are they any exceptions I can catch or properties to set to make sure a failed RMI connection doesn't crash my application. I have set the following properties ...

85. Running out of database connections    forum.springsource.org

Aug 12th, 2009, 04:13 AM #1 gnuijen View Profile View Forum Posts Private Message Junior Member Join Date Jun 2009 Posts 3 Running out of database connections Hello, I have a ...

86. Multiple database connection    forum.springsource.org

Aug 13th, 2009, 11:45 AM #1 woupwoup View Profile View Forum Posts Private Message Junior Member Join Date Aug 2009 Location france Posts 3 Multiple database connection Hello everyone, I am ...

87. Question for Spring RMI connection    forum.springsource.org

Question for Spring RMI connection Hi All, Here is my situation. A web application needs connection to several nodes using RMI. In this web application all those RMI services are wired ...

88. Connection leak on lazy load    forum.springsource.org

Connection leak on lazy load Hi, We are facing "connection leaks" issue on the models which are lazily loaded. This happens when there is a heavy traffic to the website. As ...

89. java.lang.IllegalStateException: Context has not been prepared for next connection    forum.springsource.org

Sep 22nd, 2009, 01:39 PM #1 aki86 View Profile View Forum Posts Private Message Junior Member Join Date Oct 2008 Posts 15 java.lang.IllegalStateException: Context has not been prepared for next connection ...

90. "Cannot open connection" under load    forum.springsource.org

"Cannot open connection" under load Hibernate : 3.3.1 Spring : 2.5.6 This is a very similar issue to the following: http://forum.springsource.org/showthread.php?t=31998 I'm having intermittent problems where I receive the following error: ...

91. CachingConnectionFactory doesn't reset connections on error.    forum.springsource.org

CachingConnectionFactory doesn't reset connections on error. Hi, I'm using the CachingConnectionFactory in standalone mode (outside of spring context) to cache connections and session for my jms application. All works well and ...

92. Custom action before using connection    forum.springsource.org

Hi All, Seemed to be quite easy thing, but I couldn't find anything. How to execute some queries right before using connection in the first time (not for connections release from ...

93. http remote invoker with rich client and temporary connection    forum.springsource.org

http remote invoker with rich client and temporary connection Hi spring community, we already do use http remote invoker to access services running on an application server, actullay a jetty, from ...

94. Intercept incoming RMI connections to block or manipulate them?    forum.springsource.org

Hello, I'm using Spring with RMI and it works like a charm, very easy to export service methods via RMI. My question is, is it possible to intercept incoming RMI connections? ...

95. Connection closed    forum.springsource.org

Connection closed Hi, We're using: hibernate 3.1.3 java 1.5.0 websphere 6.1.0.21 - using websphere JNDI connection sybase We are having problems accessing the database using hibernate. This is an intermittent issue ...

96. Spring Connection problem    forum.springsource.org

Spring Connection problem Here's the situation I have. 1. I have the jsp page, which needs to search some data in Oracle database 2. The search query works long time and ...

97. RMI Connection dies after a couple of hrs uptime    forum.springsource.org

Jan 11th, 2010, 08:37 AM #1 Peanuts View Profile View Forum Posts Private Message Junior Member Join Date Jan 2010 Posts 13 RMI Connection dies after a couple of hrs uptime ...

98. Connection problem with Active Directory    forum.springsource.org

Connection problem with Active Directory Hello, I am bit fresher to Spring-Security/LDAP. Here I am try to connect to my company's Active directory server through Spring Security, but I am getting ...

99. Missing the connection between DispatcherPortlet and Controller    forum.springsource.org

Spring Portlet MVC 2.5.6 I am missing the connection...if I am in class MyController extends AbstractController, how do I get at the DispatcherPortlet object? For example, if I wanted to call ...

100. Mail server connection failed    forum.springsource.org

Mail server connection failed Hi All, the following error is coming when i tried to send the mail using JavaMailSender I am using JavaMailSender and SimpleMailMessage only. Any replies will be ...