JiriOndrusek commented on pull request #3370:
URL: https://github.com/apache/camel-quarkus/pull/3370#issuecomment-1015526206


   @zbendhiba  I'll try to explain. From what I remember:
   
   1. We want to add a test for derby against external db.
   2. External db is started by the test via docker image.
   3. To be able to execute stored procedure in the derby db, jar with the 
implementation of that procedure has to be uploaded into  the db.
   ```
   CALLLL 
sqlj.install_jar('/PATH_TO_JAR/camel-quarkus-integration-test-sql-derby-stored-procedure-*.jar',
 'AddNumsProcedure' , 0)
   
   CALL syscs_util.syscs_set_database_property('derby.database.classpath', 
'APP.ADDNUMSPROCEDURE')
   ```
   
   (In case of the dev service, derby runs with the same class loader and there 
is no need to upload this procedure. It is there because it is a dependecy of 
the module.)
   My answer is that we need this jar for both JVM and native and it is used by 
the test resource to initialize derby (started via docker) to contain our 
stored procedure.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to