You might consider taking an incremental approach to fixing this problem.
- First step might be a POJO client to the AS/400 from that machine. Can you establish connectivity with a POJO? If not, hopefully you can find the reason why.
- If the POJO works, put the logic in a SwitchYard Bean component and try it then. (This might reveal some classloading issues.) Can the POJO be made to work?
- If the POJO also succeeds, then we know all the parts are in place for success. We might then try increased logging for more clues.
Just an idea. Good luck!
P.S. You might also consider trying this exercise from Wildfly-Camel. That's another way to get Camel capabilities on a JEE platform.
Did you mean you want to deploy that SwitchYard apps even when that jt400 system is not accessible?
Then you may want to try setting org.switchyard.deployment.disableAutoStartup domain property to true and start bindings manually from console once system gets available.
That's not in SwitchYard 2.0.0.Final though... please use Fuse 6.2.1 or community upstream master.
Aside, please use user forum next time for the question.
Thanks for the reply. I missed out to add little more details of the issue.
The current implementation of the code is successfully able to connect 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 secure connection pool 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 am using Redhat Fuse service works 6.0.0 . I think this feature to disable the autostart of service is not available in this version.
More over our requirement is to start service without human intervention
Is there any other way to resolve it?
Thanks in advance..