Search:

Type: Posts; User: ronak; Keyword(s):

Search: Search took 0.02 seconds.

  1. Thanks for your time... Yes you are correct it...

    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...
  2. restTemplate + POST request + parse the response

    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...
  3. Spring MVC REST WebService, how to pass/get ArrayList from client/server application

    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...
  4. Yep,, i knw store procedures very well,, we call...

    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...
  5. Replies
    1
    Views
    264

    it would be very difficult for anyone to give...

    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...
  6. i think approach A is not much better ,,, as it...

    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...
  7. Replies
    12
    Views
    6,767

    I think spring container can be initialize in web...

    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...
  8. Replies
    12
    Views
    6,767

    singleton is different in terms of "spring" and "singleton pattern"

    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...
  9. It seems that GlassFish starts Global Transaction...

    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...
  10. i think your service class is not managed by...

    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.
    ...
  11. I think Spring will support the transaction...

    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...
  12. Replies
    5
    Views
    1,209

    I have used the configuration for Tomcat, so i...

    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...
  13. Replies
    5
    Views
    1,209

    Hi, You can add below code snippet to your...

    Hi,

    You can add below code snippet to your applicationContext.xml



    <bean id="testDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">

    <property...
  14. Replies
    6
    Views
    1,291

    Modify bean lp4DatabaseDao as per below ...

    Modify bean lp4DatabaseDao as per below



    <bean id="lp4DatabaseDao" class="com.sghe.luminis.migration.dao.LP4DatabaseD aoImpl">
    <property name="dataSourceLP4" ref="dataSourceLP4" />
    <property...
  15. Replies
    4
    Views
    6,466

    You can refer Spring documentation for how to do...

    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...
  16. Replies
    6
    Views
    1,291

    you are not calling it properly. I cant see from...

    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


    ...
  17. Replies
    4
    Views
    3,686

    I suggest to use different RowMapper class as you...

    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...
  18. Replies
    4
    Views
    3,686

    Hi, As per your code your new...

    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...
  19. Replies
    2
    Views
    604

    Kindly put your codes under [code] element, while...

    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.
  20. Hii,, If you do database operations using the...

    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...
  21. Hi Salvatore, I am not very much clear but if...

    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....
  22. Got Solution

    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...
  23. modified as per suggestions.

    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...
  24. JdbcTemplate, Transaction Rollback issue with "defaultAutoCommit"

    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...
  25. Replies
    9
    Views
    5,377

    Facing same issue - with same drive and sybase ASE

    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...
Results 1 to 25 of 25