Search:

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

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Sorry for all of the posts, but the following...

    Sorry for all of the posts, but the following code is correct:


    protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) throws BeansException
    ...
  2. Also...my solution above does not yet work when...

    Also...my solution above does not yet work when properties area loaded from multiple locations (Zookeeper and a properties file for example). I believe that I need to merge zooProperties with the...
  3. Here is what I did to come up with a solution. I...

    Here is what I did to come up with a solution. I subclassed PropertyPlaceholderConfigurer and loaded my values from Zookeeper as properties using a utility Class that I wrote. While this solution...
  4. Zookeeper support in PropertySourcesPlaceholderConfigurer

    All,

    I would like to develop code that integrates Zookeeper into PropertySourcesPlaceholderConfigurer in order to additionally load Properties for my application from Zookeeper. At this point, I...
  5. You should take a look at Spring Remoting. A...

    You should take a look at Spring Remoting. A simple strategy such as HTTPInvoker (see 17.4 in the link below) will make quick work of what you are trying to do.
    ...
  6. Replies
    5
    Views
    823

    If you are updating your PK values, then this is...

    If you are updating your PK values, then this is a major code smell. You should think about changing the database structure. When you do this, you will be taking major drains in the database as...
  7. Thread: Escaping XML

    by tgrecojr
    Replies
    2
    Views
    779

    yes -- you can use the old CDATA to handle this...

    yes -- you can use the old CDATA to handle this for you. We use this with some of our SQL statements.



    <property name="updateStatusAndReasonSql">
    <value><![CDATA[update mytable set ...
  8. Replies
    4
    Views
    928

    You could always add your own codes to the XML...

    You could always add your own codes to the XML file and then build a new Spring.jar. You don't have to wait for the JIRAs to be closed.
  9. Replies
    1
    Views
    1,399

    No.... there is no default mechanism for doing...

    No.... there is no default mechanism for doing so. The issue lies mostly with the different JMS implementations as different vendors have specific ways of dealing with the retryCount. If worse...
  10. Replies
    2
    Views
    919

    Yes, you can certainly view them. Download the...

    Yes, you can certainly view them.

    Download the source and then look in

    org/springframework/jdbc/support/sql-error-codes.xml

    For Spring 2.5.5 you will find the following:


    <bean...
  11. Replies
    4
    Views
    1,152

    you could use the SQL convention used by your...

    you could use the SQL convention used by your RDBMS to limit the number of rows returnd:


    FETCH FIRST 10 ROWS ONLY

    or

    WHERE ROWID < 10
  12. Replies
    6
    Views
    2,085

    I would suggest not using hibernate. I would use...

    I would suggest not using hibernate. I would use JDBC through SqlUpdate or BatchSqlUpdate, use as few objects as possible, use prepared statements instead of dynamic SQL, and construct your code in a...
  13. Replies
    1
    Views
    693

    Do the update. Not only will it work, but it is...

    Do the update. Not only will it work, but it is more efficient. You save the delete from the indexes under the covers as well as the physical row.
  14. OK -- Just checking one more time to see if...

    OK -- Just checking one more time to see if anyone else has run across this.
  15. Replies
    2
    Views
    834

    The best way to do this is to change your code to...

    The best way to do this is to change your code to use a new DAO which extends SQLUpdate. There is a method of SqlUpdate called checkRowsAffected which you can use. If the sql operation does not...
  16. Replies
    2
    Views
    1,231

    You will not be able to make CICS calls directly....

    You will not be able to make CICS calls directly. You have two options here:

    1) Use MQ to deliver a message to CICS
    2) Use the IBM CICS Transaction Gateway (CTG)
  17. When you get a message in your MDB, a message...

    When you get a message in your MDB, a message from a distributed platform will be of type TextMessage. Messages sent from legacy platforms will most likely be of type BytesMessage. This is the code...
  18. Use the google cache: ...

    Use the google cache:

    ...
  19. Thread: queryForList

    by tgrecojr
    Replies
    2
    Views
    1,577

    In clauses work without issue.

    In clauses work without issue.
  20. I fixed the issue by adding jsr107cache-1.0.jar...

    I fixed the issue by adding jsr107cache-1.0.jar from sourceforge into my EAR, but I don't think that is the way to go. Is it possible that Spring did not bundle all of the dependencies into the...
  21. java.lang.NoClassDefFoundError when using the new ehcache 1.4.1 in spring 2.5.4

    All,

    I have an application that I just upgraded from 2.5.3 to 2.5.4. In doing so, I moved the ehcache.jar to 1.4.1. Now I am getting a class not found error when I load the applicaiton. The...
  22. Replies
    8
    Views
    4,586

    Try adding this to your environment ...

    Try adding this to your environment



    -Djavax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl
  23. Some more information.... all transactions...

    Some more information.... all transactions rollback or commit as they should. There is no underlying issue with any SQL or transactions. It seems to only happen when the applications exit.
  24. DataSources causing ABNORMAL EOT IN PROGRESS on z/os

    Hello all,

    When we use the DBCP BasicDataSource, SingleConnectionDataSource, etc, in a java "batch" enviroment (running as a java application) with the DB2 Universal Driver, we see errors in the...
  25. Well....After a lot of trial and error, I got it...

    Well....After a lot of trial and error, I got it to work. I am copying the solution here in case anyone else is in the same boat.

    <bean id="wsJtaTm"...
Results 1 to 25 of 40
Page 1 of 2 1 2