Database 1 « Database « Spring Q&A





1. Handling database-related exceptions in Java/Spring    stackoverflow.com

I'm reading the book Spring Recipes right now, and am puzzled by one thing: Any exceptions are thrown as a subclass of DataAccessException, a RuntimeException you're not meant to ...

2. Is it possible to get Java fmt messages bundle from database?    stackoverflow.com

I nedd to localize application and now files are loaded from text files. Is it possible to change source to database? This is how localized messages are now loaded:

<!-- Application Message Bundle ...

3. apply mathematical rules stored in database to a variable gotten from human machine interface    stackoverflow.com

I'm developing a project with Flex, Spring, Hibernate, MySQL, Tomcat, but one of the functionality is: " i have to store a mathematical rule like for example " a+b " into ...

4. Specify Database Vendor    forum.springsource.org

Specify Database Vendor In the interest of efficiency, can we specify the RDBMS vendor somewhere, so the framework does not have to do this for every single database command (Thanks): Sep ...

5. Urgent Help needed - Composite writer with two diff databases    forum.springsource.org

Urgent Help needed - Composite writer with two diff databases We are doing a proof-of-concept for using Spring and Spring Batch in an existing application to cut costs. Without explaining the ...

6. STS, Maven, Server and DB    forum.springsource.org

STS, Maven, Server and DB HI - I am very new to java. I want to set up my local environment. I have jdk version 1.6 and my path and java_home ...

7. Retrieving login information from database    forum.springsource.org

Retrieving login information from database Heya guys! I've just begun using spring-security and I've encountered a problem, I can't seem to find how to retrieve username, password and Role from a ...

8. load dynamic pointcut expression from database    forum.springsource.org

Hi friends, I am wondering if it is possible to load dynamic pointcut expressions from database. I have to calculate the method execution times for class methods configured dynamically through the ...

9. Fetch custom authorities from database by operation name    forum.springsource.org

Originally posted here. I need to make a legacy application start using spring security 3. This app already has its security data model. The follow diagram illustrates: Very simple by far. ...





10. SpringBatch without SpringBatch internal DB / database    forum.springsource.org

SpringBatch without SpringBatch internal DB / database Hi, I've been searching around the forums but I haven't found a good solution to running SpringBatch without its internal tables. I'd say that ...

11. multi db    forum.springsource.org

Hi . Im using meaven,jetty and sql. What do i have to if i want my application to be able to save the data in different databases in same time. I ...

12. Possible to make an application without database    forum.springsource.org

Possible to make an application without database Hi I want to make web-application (front-end application) without any database. My application is going to be a front-end to some REST/Webservices back-end. However ...

13. DB Item Writer Exceptions    forum.springsource.org

Hello, I am trying to write a simple batch job that reads from a flat file and writes the data to database tables. I have the job running properly when everything ...

14. Decrease in fetch - speed (on the UI) with increase in db entries    forum.springsource.org

Decrease in fetch - speed (on the UI) with increase in db entries Hi, We have a large model and the UI that was generated by Roo became so slow it's ...

15. Database ItemReaders - which one better?    forum.springsource.org

Database ItemReaders - which one better? Hi All, This might not be a question purely related to Spring Batch, but thought if someone could help me out I have a table ...

16. Database Insert problems    forum.springsource.org

May 18th, 2011, 05:47 PM #1 luisb View Profile View Forum Posts Private Message Junior Member Join Date May 2011 Posts 5 Database Insert problems Hey guys, I have an issue ...





17. Two databases in one project    forum.springsource.org

Hi, I use Hibernate to map my database, I use also the reverse engineering to convert fast my database. I have two databases. I apply the reverse engineering one, It works ...

18. JobRepositoryFactoryBean and dataBase    forum.springsource.org

JobRepositoryFactoryBean and dataBase hey, am still new in spring batch and i have some questions hope you can help me with!! 1-i want to use a JobRepositoryFactoryBean so do i have ...

19. Cross database context issue    forum.springsource.org

Cross database context issue Hi guys, I've a pickling issue that I'm sure someone out there has encountered before, if maybe a slightly different scenario. Essentially, I'm using Spring and Hibernate, ...

20. Loading Image from DB    forum.springsource.org

Loading Image from DB Hello developers, how do i load image from my datbase(mysql) cause i can't get it correctly.The image doesn't load. this is my entity class: Code: @Entity public ...

21. Recovering from Transient Database Outages    forum.springsource.org

Recovering from Transient Database Outages Hi, I have set up a test application based on the JPetstore application. It uses the iBatis database mapping layer with a Commons basic data source. ...

22. Database Audit Trail Solution for Spring    forum.springsource.org

Anyone has implemented any audit trail solution for Spring? Could you give me some idea or even source code? My wish is to have a audit trail interceptor catching the method ...

23. spring handling multiples databases    forum.springsource.org

24. Trouble in removing from DB    forum.springsource.org

Jul 20th, 2011, 09:15 AM #1 presidentrodel View Profile View Forum Posts Private Message Member Join Date Apr 2011 Location General Santos City, Philippines Posts 42 Trouble in removing from DB ...

25. Two/Dual Databases    forum.springsource.org

Two/Dual Databases Hello! I've gone through many threads of how to use spring roo with two databases but none are sufficient I feel. Specifically I need one database to be reverse ...

26. Enums in a database    forum.springsource.org

Enums in a database Hi I have a drop down list of enums (think the pet clinic example). When the values are stored in the database they are stored as their ...

27. Using the database transactioning.    forum.springsource.org

Using the database transactioning. I am converting some of the code in use for a while to use the spring. Currently I am trying to use the transactioning support in spring ...

28. Recovering from abnormal shutdown (with a persistent database)    forum.springsource.org

Recovering from abnormal shutdown (with a persistent database) We have a long running spring context that is a part of our batch + integration system, if the container that runs batch ...

29. Replicating databases maintaining consitency    forum.springsource.org

Replicating databases maintaining consitency Hi, I 've a system which provisioned data into a database..., today's requieriment is to have two databases and perform certain actions on both databases. I 've ...

30. Merge not happening, new item is added instead in the database    forum.springsource.org

Hi, I have created a Roo application using the reverse engineering feature and I am having the following problem: Object fails to get updated, instead I see a new record added ...

31. Fetching all available db resources?    forum.springsource.org

Maybe the question itself was somewhat fuzzy... I'll try to explain how I mean: We have quite a few different environments; test, stage, prod and so on. And the test-environment might ...

32. truly dynamic number of database instances    forum.springsource.org

truly dynamic number of database instances Hello, I need to setup a component that uses Spring and it receives as input parameter the number of database instances and the needed properties ...

33. Passing String value coming from database    forum.springsource.org

Hi Guys, Good day. I am new to Spring and its DI. Basically, I want to pass a value in appContext dynamically coming from my database. For example, in applicationContext: Code: ...

34. deployment build issues with DB on another machine    forum.springsource.org

deployment build issues with DB on another machine I have my site on one IP and my MySQL server on another. I can't connect directly and must use ssh. So I ...

35. Problem populating database    forum.springsource.org

I am trying to do some junit tests, but I need some data on the database. For example, I have a table with all the provinces, so I want the provinces ...

36. Using 2 or more databases    forum.springsource.org

I have a databases which references rows to another database. Using them both in transactions and such is easy. The ugly part is displaying data from both databases. Currently I have ...

37. Grabbing next id before saving to the db?    forum.springsource.org

I'd like to be able to grab the next primary key id (or maybe the last id used + 1) from a table so I can set an image name that ...

38. Is there a bug database for Spring?    forum.springsource.org

Is there a Bugzilla or something similar for Spring? The Sourceforge page lacks the usual "Bugs" link, and I could find nothing on springframework.org. Thanks. rodney

39. Not flushing changes to database    forum.springsource.org

Not flushing changes to database Hi I am currently using spring 1.1.3 and hibernate 2.1.7. I am new to these and used the xample to model my simple situation of saving ...

40. commons database pooling initialize?    forum.springsource.org

commons database pooling initialize? Hi whats the best way to initialize a commons pooling Datasource with Spring? currently I have an Init servlet that runs the following code: Class.forName("org.apache.commons.dbcp.PoolingDriv er").newInstance(); Class.forName("com.mysql.jdbc.Driver").newInstance ...

41. Where's the database? - Newbie Question    forum.springsource.org

Where's the database? - Newbie Question Previously with JDBC connections we (I) created a properties object and set the "DatabaseName".... This is not taking place in the Spring examples. How does ...

42. login fails once when DB is restarted    forum.springsource.org

login fails once when DB is restarted Not sure if this is a database pooling issue or Acegi issue. My web app was left running overnight however the database was shutdown ...

43. Database fallback strategy    forum.springsource.org

Database fallback strategy Hello Spring-Fans, maybe someone of you can give me some hints for the following problem: I have multiple databases (Oracle and MySQL) which are replicated on slave-servers. The ...

44. Issue when trying to save to the database.    forum.springsource.org

Issue when trying to save to the database. Hi Guys, Quick Question on this one. I am using Spring to manage hibernate for me. I try and save an object but ...

45. Accessing two databases, one readonly    forum.springsource.org

Accessing two databases, one readonly Hi, in my application I have now to access two databases. The first one, that I'm already using, is accessed thru Hibernate, using a DBCP connection ...

46. Placing API in the database, Business Rules in the database    forum.springsource.org

Placing API in the database, Business Rules in the database Rod's books have indicated that the use of stored procedures is more than acceptable, but indicates that business rules do not ...

47. Populate drop-down list from Database    forum.springsource.org

Hi all!!! Can somebody tell me how can I populate my drop-down list in my jsp page from a table stored in database. Thanks for you help!!!

48. Database exception handling    forum.springsource.org

Database exception handling Hi, I use Oracle in my day to day projects. Our organisation mandates all db interaction is via stored procs. I have seen exisiting code take an pproach ...

50. OSWorkflow's DB persistence under Spring-Modules    forum.springsource.org

Can you post some code from the OSWorkflow example (I'm searched the example bundled with the distribution but I didn't find any JNDI reference)? With the current support of OsWorkflow you ...

51. Best practice for writing an advice which uses db    forum.springsource.org

I would subclass MethodInterceptor and provide a means to inject a DataSource for accessing the database. Since you likely want to measure performace independently of errors I would refrain from taking ...

52. Detecting a change in database?    forum.springsource.org

Hi, How can I detect a change in my database from my java source code? javax.sql has a RowSetListener where an interested component can listen on to a RowSetEvent when there ...

53. Exception while accessing DB    forum.springsource.org

Exception while accessing DB Hi, My application an not find the Data base connection due 2 following exception. org.springframework.jdbc.UncategorizedSQLException : Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL ...

54. Problem facing in poulating dropdown, by getting values from the database    forum.springsource.org

Problem facing in poulating dropdown, by getting values from the database Hi all, I have got one entry page, where i want to populate the dropdowns by getting the values from ...

55. database application design    forum.springsource.org

database application design I am pretty new to Spring, I would like to know if this framework along with its Rich Client module, does provide RAD development for database oriented software ...

56. Database Syupport in Spring Rich Client.    forum.springsource.org

Hi, I am at the moment creating the design of a rich client application. I have come across spring in the past when searching for a framework for a web project. ...

57. Database view resolver    forum.springsource.org

Database view resolver Has anyone implemented a database resource view resolver ? I would like a view resolver which can be extended in real time. Ie a live server where customers ...

58. JOTM Not rolling back db state    forum.springsource.org

JOTM Not rolling back db state Could someone please take a quick look at my app context and tell me why I can't get JOTM to roll back database state after ...

59. need to modify database anonymously    forum.springsource.org

Hi, I have a scenario where I added some more fields in user table. I don't want user to login automatically after signup. Instead I want a notification mail to user, ...

60. Empty Result from database    forum.springsource.org

May 23rd, 2006, 02:03 PM #1 viniciuscarvalho View Profile View Forum Posts Private Message Senior Member Join Date Jun 2005 Posts 129 Empty Result from database Hello there! I'm really not ...

61. how to set timeout for when database is down    forum.springsource.org

When I unplug my network cable, my code gets stuck in the method getHibernateTemplate(). After x seconds (1 minute? I haven't timed it but it's not short) the database connection times ...

62. default values specified in the database    forum.springsource.org

default values specified in the database I have written my pojos to be similar to the pojos in the examples directory of the downloads where the member variables don't have a ...

63. Optimizing Derived Values from a Database    forum.springsource.org

Optimizing Derived Values from a Database A colleague of mine and I got into a discussion about calculating derived values from data located in a database. In our case, we have ...

64. Confusion around spring/db usage    forum.springsource.org

Confusion around spring/db usage Im having some problem understanding the differences and usage of the Spring jdbc support. I am hoping someone could help me clear a couple of things up. ...

65. Problem inserting to Database    forum.springsource.org

Problem inserting to Database I am trying to insert the record to DB using org.springframework.orm.hibernate3.HibernateTempla te. Everything is going fine no error on the console but when I try to see ...

66. db indexing...    forum.springsource.org

67. Spring - Database Commit Fails    forum.springsource.org

Spring - Database Commit Fails Hi All, A very fundamental issue using : Spring 1.2.8, Hibernate 3.1, DB2 and JBoss 4.0.2 I am trying to use Spring Declarative Transaction Support but ...

68. loadAll going to Database?    forum.springsource.org

Sep 18th, 2006, 02:53 PM #1 ccollins_29687 View Profile View Forum Posts Private Message Junior Member Join Date Sep 2006 Location Greenville, SC Posts 8 loadAll going to Database? I'm trying ...

69. Conflict with Eclipse 3.2, Spring IDE plugin and Quantum DB plugin?    forum.springsource.org

Conflict with Eclipse 3.2, Spring IDE plugin and Quantum DB plugin? Hello. I've been using the spring plugin and the quantum database (http://quantum.sourceforge.net/) plugins for a while. I was able to ...

70. Dynamically switching databases    forum.springsource.org

Dynamically switching databases HI all, We are stuck with one problem , We are switching from one database to other database which has same schema but Different data base using hibernate ...

71. StaleConnectionException while accessing mutiple databases    forum.springsource.org

StaleConnectionException while accessing mutiple databases I'm using Spring 1.2.8 , Hibernate 3.0 and Websphere 5.1 and found out some time I do get StaleException when application is running longer and it ...

72. Proxy, load from db when touched.    forum.springsource.org

Proxy, load from db when touched. Hi. I'll start by describing the problem... In my domain model, I have a one-to-many relationship. The relation to the objects on the many side ...

73. Support unlimited number of (dynamically configured) databases    forum.springsource.org

Nov 21st, 2006, 10:28 PM #1 newbieMA View Profile View Forum Posts Private Message Junior Member Join Date Nov 2006 Posts 2 Support unlimited number of (dynamically configured) databases This is ...

74. Problems to insert in DB    forum.springsource.org

Hi, I'm with a problem to insert data into a database. I have an CRUD application, and when the user input your data in a form and submit, all the fields ...

75. Database migration    forum.springsource.org

Does the Spring team intend to tackle the problem of automatic database migration? Spring likes to solve those problems in the enterprise space that are ubiquitous and prone to wheel reinvention; ...

76. How to design a DB aware component...    forum.springsource.org

How to design a DB aware component... Trying to figure out how to best architect a component with the following characteristics: This component will be used by multiple threads in an ...

77. Synchronizing database state - a Hiberate issue    forum.springsource.org

Synchronizing database state - a Hiberate issue I run into a Hibernate issue with a many-to-many relationship. It seems to me that is a Hibernate session management issue within Spring. Code: ...

78. Trasactions in Sping with out Database Manipulation    forum.springsource.org

Hi Folks, I am new to Spring Framework. I have one basic question. I dont have any database operations in my class. So not even configuring the datasource can i make ...

79. Application supporting many databases    forum.springsource.org

Application supporting many databases Hello Note: This is not a question directly related to spring. I'm developing a webapp using spring/spring mvc. I am asked to build it in a way ...

80. Database Persistence    forum.springsource.org

Database Persistence Hello, I've been going through the tutorial from the spring website using RAD 6, and everything has been going well so far. I'm at the database persistence part of ...

81. What's the best strategy to work with legacy DB with integrat. in differ. projects?    forum.springsource.org

What's the best strategy to work with legacy DB with integrat. in differ. projects? Hello, I have a big decision to make for a system that's going to production. My project ...

82. AbstractTransactionalSpringContextTests with setComplete() - no database entries    forum.springsource.org

Mar 25th, 2007, 01:49 PM #1 raynic View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 15 AbstractTransactionalSpringContextTests with setComplete() - no database entries Hi, i ...

83. Database Replication    forum.springsource.org

Database Replication I'm just doing some investigation into database replication. The application is currently uses HSQLDB or MySQL (it could work with any other database if required). The application is starting ...

84. OracleConnectionCacheImpl : reconnect after database outage    forum.springsource.org

OracleConnectionCacheImpl : reconnect after database outage I have a dataSource defined to use OracleConnectionCacheImpl as follows: Code: database.url=jdbc:oracle:thin:@10.0.10.115:1521:orcl user password ...

85. accessing DB    forum.springsource.org

accessing DB Hi, I'm new to Spring (didn't even download it yet...). I came here because I have an application which needs to access a database. I didn't want to create ...

86. Ways to provide a database (model)    forum.springsource.org

Ways to provide a database (model) Hi, my webapp is working, I could not happier. But one question remains. What is the best practise to deliver the database used as data ...

87. What to extend to provide dynamic Config Attributes from a database    forum.springsource.org

What to extend to provide dynamic Config Attributes from a database Hi everyone I have a question regarding methodInvocation security. I usually annotate the methods that I want to secure with ...

88. how to display database exception back to use.    forum.springsource.org

Hi all, we are using spring/ibatis combination for our jsr168 portlet development. Our database is oracle and there are some stored procedures to check user input data and throw oracle errors, ...

89. How the Database Roll Back works ?    forum.springsource.org

Which transactionManager do you use? If you use the basic DatasourceTransactionManager you can only assign one datasource to it. The other will be ignored. Can you post your whole (relevant) config. ...

90. JComboBox fillup reading from database    forum.springsource.org

JComboBox fillup reading from database I am facing problem in displaying JComboBox. I have DAO which returns me the List. I know this is correct because I have TestCase to verify. ...

91. how to create a JbpmTemplate with a ProcessDefinition that stored in database?    forum.springsource.org

how to create a JbpmTemplate with a ProcessDefinition that stored in database? I can get a JbpmTemplate with ProcessDefinition defined in a xml by: Code: