Announcement Announcement Module
Collapse
No announcement yet.
get dataSource properties from the jms header: name="url" value=:headers[url] Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • get dataSource properties from the jms header: name="url" value=:headers[url]

    Hi, the idea is read the header of my message each time that i do an jdbc:outbound, jdbctemplate.... and get from the header the properties necessaries for the datasource.
    I would like do something like;

    <bean id="dataSource" class="...">
    <property name="driverClassName" value=:headers[driver]/>
    <property name="url" value=:headers[url]/>
    <property name="username" value=:headers[user]/>
    <property name="password" value=:headers[pass]/>
    </bean>

    but i think it isn't possible, another idea is save the properties in a java class and access to this data from through the sql-parameter-source-factory. Any suggestion?

    Thanks!!

  • #2
    Hello

    Next time use code tags

    could you explain detailed your specific requirement?

    I dont understand what do you want to resolve with this *header* approach

    Comment


    • #3
      Hi, the message's payload contains data to be inserted in a data base and the information related with the database connection is stored in the header.

      Comment

      Working...
      X