Thanks Great to know !

Happy new year .

Regards
Guru
________________________________
From: BAnanth [via Camel] [ml-node+s465427n5724733...@n5.nabble.com]
Sent: 31 December 2012 14:08:43
To: Gnanaguru Sattanathan (WT01 - BAS)
Subject: Re: Camel Tracer Component - problem with persistence

Hi,

For now , have made the tracer work in the WAR by making the following changes 
in Jboss,

a. Changed standalone.xml. The following lines were added,
<datasource jndi-name="java:jboss/datasources/derbyDS" pool-name="derbyDS" 
enabled="true" use-java-context="true">
                    
<connection-url>jdbc:derby://localhost:1527/CAMEL_MESSAGETRACED</connection-url>
                    
<driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
                    <driver>derbyclient.jar</driver>
                    <pool>
                        <prefill>false</prefill>
                        <use-strict-min>false</use-strict-min>
                        <flush-strategy>FailingConnectionOnly</flush-strategy>
                    </pool>
                    <security>
                        <user-name>APP</user-name>
                        <password>APP</password>
                    </security>
  </datasource>

<driver name="derbyclient.jar" module="org.apache.derby">
                        
<driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
                        
<xa-datasource-class>org.apache.derby.jdbc.ClientXADataSource</xa-datasource-class>
 </driver>
b. Derby was installed as a module in jboss so that it got loaded during 
startup.
i. Created a derby folder in jboss7.1.Final/modules/org/apache
ii. Created a main folder under derby
iii. Added derbyclient.jar in jboss7.1.Final/modules/org/apache/derby/main
iv. Added the module.xml with the following entry in 
jboss7.1.Final/modules/org/apache/derby/main folder

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.apache.derby">
  <resources>
    <resource-root path="derbyclient.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
        <module name="javax.transaction.api"/>
    <module name="javax.servlet.api" optional="true"/>
  </dependencies>
</module>

c. In camel-context, used the jta data source instead of the hibernate 
connection properties
<jta-data-source>java:jboss/datasources/derbyDS</jta-data-source>

Please do let me know if there is a better approach.

Thanks and Regards,
Bhavani


________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Camel-Tracer-Component-problem-with-persistence-tp5724262p5724733.html
To unsubscribe from Camel Tracer Component - problem with persistence, click 
here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5724262&code=Z25hbmFndXJ1LnNhdHRhbmF0aGFuQHdpcHJvLmNvbXw1NzI0MjYyfDMwNzMwMjI2Mw==>.
NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Tracer-Component-problem-with-persistence-tp5724262p5724735.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to