I am facing issue in deploying switchyard project. Here switchayard project is polling iseries data queue.
if the data queue is not accessible due to application is down then deployment of the switchayrd project is failing.
It is failing to start the service which is polling iseries data queue.
Note: I am using camel binding for jt400 connection as "jt400://RINGO:OGNIR@LIVERPOOL/QSYS.LIB/BEATLES.LIB/PENNYLANE.DTAQ"
I am getting following exceptions in log
15:37:11,148 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."SwitchYardProject.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."SwitchYardProject.jar".SwitchYardService: org.switchyard.SwitchYardException: org.apache.camel.RuntimeCamelException: Unable to obtain an AS/400 connection for system name 'LIVERPOOL' and user ID 'RINGO'
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: org.switchyard.SwitchYardException: org.apache.camel.RuntimeCamelException: Unable to obtain an AS/400 connection for system name 'LIVERPOOL' and user ID 'RINGO'
The current implementation of the code is successfully able to connect to iSeries data queue when the application host these queue is UP and running.
if iSeries application is down during deployment of this switchyardProject, then deployement of the switchyardProject fails with message "failed to start service as it is unable to get as400 connection"
I am using connection pool with SSL certificates to access iSeries application. During deploymnet of this switchyard project if iSeries applciation is down as a result it won't get the secure connection pool.
Since deployment has failed, it won't try to connect to iSeries applciation again
I also got suggestion to disable auto start of service, however this requires us to manually start the service which is not our requirement and also I am using Jboss FSW 6.0.0 which doesn't have this feature