Announcement Announcement Module
Collapse
No announcement yet.
readOnly in spring-config Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • readOnly in spring-config

    I have my spring-cofig properties set like this:

    <bean id="attributeSource" class="org.springframework.transaction.interceptor .NameMatchTransactionAttributeSource">
    <property name="properties">
    <props>
    <prop key='get*'>PROPAGATION_REQUIRED, readOnly</prop>
    <prop key='find*'>PROPAGATION_REQUIRED, readOnly</prop>
    <prop key='save*'>PROPAGATION_REQUIRED,ISOLATION_DEFAULT </prop>
    </props>
    </property>
    </bean>

    Things are working fine for get and find, i get the data. But I see following in the log:

    [8/30/07 11:16:48:554 CDT] 0000000a JDBCException W org.hibernate.util.JDBCExceptionReporter logWarnings SQL Warning: 0, SQLState: null
    [8/30/07 11:16:48:554 CDT] 0000000a JDBCException W org.hibernate.util.JDBCExceptionReporter logWarnings Connection readOnly mode is not enforcable after the connection has been established. To enforce a read only connection, set the readOnly data source or connection property.

    Any ideas?

    Thanks

  • #2
    Here's a similar discussion.

    Comment

    Working...
    X