[
https://issues.apache.org/jira/browse/CAMEL-5643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587560#comment-13587560
]
Alan Foster commented on CAMEL-5643:
------------------------------------
Awesome, thanks for dealing with this! And I see the documentation has been
created too, brilliant :)
Just a quick note on the camel documentation, it would be great if the code
examples actually showed the code source location in their titles. When I first
started camel I found it challenging to find examples that "just worked", ie I
had to write a lot of extra code that was missing from the small example
snippets. It was only when I gained access to confluence did I realise the
snippets actually pointed to working examples from the trunk!
What I'm asking is for the title to contain the source code location if
possible, like below
{code:title=camel/trunk/components/camel-sql/src/test/resources/org/apache/camel/processor/aggregate/jdbc/JdbcSpringDataSource.xml}
<bean id="repo3"
class="org.apache.camel.processor.aggregate.jdbc.JdbcAggregationRepository">
<property name="repositoryName" value="aggregationRepo3"/>
<property name="transactionManager" ref="txManager3"/>
<property name="dataSource" ref="dataSource3"/>
<!-- configure to store the message body and following headers as text
in the repo -->
<property name="storeBodyAsText" value="true"/>
<property name="headersToStoreAsText">
<list>
<value>companyName</value>
<value>accountName</value>
</list>
</property>
</bean>
{code}
This will allow for people to easily find and explore the full source code.
I think this would really improve the learning experience for new camel riders
in my opinion! :)
Hopefully there's a way to do this automatically across all of the example
snippets
I can raise a Jira issue for this if you think it will be something we can add
:)
> JDBC aggregation repository - Allow users to store body and arbitrary headers
> as text within a datasource
> ---------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-5643
> URL: https://issues.apache.org/jira/browse/CAMEL-5643
> Project: Camel
> Issue Type: New Feature
> Components: camel-sql
> Affects Versions: 2.10.0
> Reporter: Alan Foster
> Assignee: Claus Ibsen
> Fix For: 2.11.0
>
> Attachments: CAMEL-5643.patch, database view.png
>
>
> Add support to show a readonly view of optionally the body and arbitrary
> headers to the existing JdbcAggregationRepository class which will allow for
> a human-readable view of values in a datasource
> Related Mailing list link :
> http://camel.465427.n5.nabble.com/Change-Sql-Component-BLOB-datatype-to-XML-for-Aggregator-serialization-td5718845.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira