We cannot setup username and password on SJMSBatchComponent component, because it's not supported. The camel-sjms does not work with the pooled-connection-factory CLI command - see
ENTESB-7938. There was introduce workaround to use connection-factory instead of pooled-connection-factory. However, the connection-factory CLI does not provide options username and password.
We've already asked for the implementation of camel options username and password for SJMSBatchComponent in order to unify the OPTIONS across camel messaging components - such as camel-jms, camel-sjms, camel-sjms-batch. The issue was rejected - see