Thanks for your time...
Yes you are correct it should be in that way, but the rest webservice which i need to access it works with POST request only, and I am developing app to consume it, so I...
Type: Posts; User: ronak; Keyword(s):
Thanks for your time...
Yes you are correct it should be in that way, but the rest webservice which i need to access it works with POST request only, and I am developing app to consume it, so I...
Hi All,
I am using spring restTemplate to access the rest webservice, I am able to access the rest webservice with GET request, like I am able to receive the xml responce and able to parse to...
Hi All,
I have created a sample application to get full idea of Spring MVC with REST Webservice. I have created an application which host webservice and a client which calls to this webservice and...
Yep,, i knw store procedures very well,, we call sprocs from ProcedureXXX.java class which extends org.springframework.jdbc.object.StoredProcedure ...
And in ProcedureXXX.java class we pass actual...
it would be very difficult for anyone to give exact answer for your question, so i will suggest you to post with code snippets of your applicationContext.xml file and related Bean classes and...
i think approach A is not much better ,,, as it will be heavy loading on Application Context if you define all rowmapper and all.
So i will suggest for approach B,,, and if you wish you can...
I think spring container can be initialize in web application by 2 ways
1. you can initialize the container at each time user get login, by this way you dont need to make methods synchronized as...
Hi All,,,
Find the below information from spring documentation
Please be aware that Spring's concept of a singleton bean is quite different from the Singleton pattern as defined in the seminal...
It seems that GlassFish starts Global Transaction and same getting used by Spring. but i assume that the method which is marked as Propogation Required,, finishes without exception and that's why...
i think your service class is not managed by Spring container. and that is why its not recognizing your transaction.
You can put here all related code snippets, so anyone can guide you properly.
...
I think Spring will support the transaction started by your GlassFish. only thing is you should have Spring managed beans means injected/maintained by Spring IoC.
In my application similar case...
I have used the configuration for Tomcat, so i think you may need to change for websphere. Check it out the value for websphere for below line in my prev reply.
<prop...
Hi,
You can add below code snippet to your applicationContext.xml
<bean id="testDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property...
Modify bean lp4DatabaseDao as per below
<bean id="lp4DatabaseDao" class="com.sghe.luminis.migration.dao.LP4DatabaseD aoImpl">
<property name="dataSourceLP4" ref="dataSourceLP4" />
<property...
You can refer Spring documentation for how to do database access using Spring. below is the link for it.
You can ignore sections related to Transaction management if not required in your...
you are not calling it properly. I cant see from where are you setting up DataSource?
you need to initialize the Spring Bean using invoking Spring Container like
...
I suggest to use different RowMapper class as you are returning two different object Lists one is List<Employee> and another is List<Student>.
Though You can use the same RowMaper class and can...
Hi,
As per your code your new EmployeeRowMapper() is calling to extractData() and which finally gives you List of Employee objects.
Now if you want to get List<Employee> then you can follow...
Kindly put your codes under [code] element, while posting.
Also put the related classes same way, so it will be easy to figure out isue.
Hii,,
If you do database operations using the jdbc connection (i mean using DataSource and prgramatically by creating & using Connection), then you need to take some extra things as well ( like...
Hi Salvatore,
I am not very much clear but if you are talking about Database connection credentials then you can define it under your applicationContetx (or any other similar) Spring XML file....
Hi Marten,
Thanks a lot
I got the answer as my CustService.java and CustDAO.java are managed by Spring so @Transactional is working for these two classes. and its doing rollback as well.
I...
Hi Marten,
Thanks for your time and suggestions.
As per your suggestion I have modified, and I found that Transaction is not getting initilize/starting. I think somewhere i am missing some...
Hi,
Thanks in advance for your inputs/suggestions.
Since last two days i am facing the issue with Spring transaction rollback. i am using Tomcat 5.5.28 and Spring. Basically i want to handle...
Hi Teo, Marten,
I am also facing the same issue as Teo mentioned in starting of thread.
I have implemented in different way, but issue is the same with "defaultAutoCommit".
If you have any...