Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions edi-x12-as2/camel/edi-x12-as2.camel.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
- routeConfiguration:
id: as2Error
onException:
- onException:
exception:
- java.lang.Exception
handled:
constant:
expression: "true"
steps:
- script:
expression:
groovy:
expression: "httpContext = exchangeProperties['CamelAs2.interchange']\n\
httpContext.setAttribute(org.apache.camel.component.as2.api.AS2Header.DISPOSITION_TYPE,\
\ \n org.apache.camel.component.as2.api.entity.AS2DispositionType.FAILED)\n"
- route:
id: receivePurchaseOrder
routeConfigurationId: as2Error
Expand All @@ -11,18 +25,6 @@
requestUriPattern: /mycorp/orders
serverPortNumber: 8081
steps:
- onException:
exception:
- java.lang.Exception
handled:
constant:
expression: "true"
- script:
expression:
groovy:
expression: "httpContext = exchangeProperties['CamelAs2.interchange']\n\
httpContext.setAttribute(org.apache.camel.component.as2.api.AS2Header.DISPOSITION_TYPE,\
\ \n org.apache.camel.component.as2.api.entity.AS2DispositionType.FAILED)\n"
- to:
uri: jms
parameters:
Expand Down Expand Up @@ -89,7 +91,7 @@
as2From: mycorp
as2MessageStructure: PLAIN
as2To: acme
ediMessageCharset: charset=US-ASCII
ediMessageCharset: US-ASCII
ediMessageContentType: application/edi-x12
from: bob@example.org
inBody: ediMessage
Expand Down
3 changes: 3 additions & 0 deletions ftp/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ camel.beans.poolCF.connectionIdleTimeout = 20000
camel.component.jms.connection-factory = #bean:poolCF

camel.jbang.classpathFiles=application.properties

# Additional dependencies required at runtime (comma separated)
camel.jbang.dependencies=jakarta.inject:jakarta.inject-api:2.0.1,jakarta.enterprise:jakarta.enterprise.cdi-api:4.1.0
5 changes: 2 additions & 3 deletions ftp/jbang.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Declare required additional dependencies for testing
run.deps=jakarta.inject:jakarta.inject-api:2.0.1,\
jakarta.enterprise:jakarta.enterprise.cdi-api:4.1.0
# Additional runtime dependencies are declared via camel.jbang.dependencies
# in application.properties (Camel JBang natively supports comma separated lists).
3 changes: 3 additions & 0 deletions openapi/server/petstore.camel.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- restConfiguration:
clientRequestValidation: true
apiContextPath: openapi
- rest:
openApi:
specification: petstore-api.json
Expand Down
Loading