One Star

[resolved] tJMSInput: session is close exception

Dear Talend Support Community,
We have a DI-Job with a JMS consumer by using component tJMSInput as the first step. This jobs runs all the time. We are getting every now and then an exception:

Exception in component tJMSInput_1
javax.jms.IllegalStateException: The Session is closed
at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
at org.apache.activemq.ActiveMQMessageConsumer$1.execute(ActiveMQMessageConsumer.java:551)
at org.apache.activemq.command.ActiveMQMessage.acknowledge(ActiveMQMessage.java:97)
at <package>.exportstarterjms_0_1.ExportStarterJMS.tJMSInput_1Process(ExportStarterJMS.java:2198)
at <package>.exportstarterjms_0_1.ExportStarterJMS.runJobInTOS(ExportStarterJMS.java:2876)
at <package>.exportstarterjms_0_1.ExportStarterJMS.main(ExportStarterJMS.java:2310)


The JMS Broker is active and stable. We must restart the job in TAC in order to recover it for a while until to its next crashing. What settings in "tJMSInput component configuration" we have to do to overcome this exception?
Apache Camel provides something like: autostartup = true
I am missing this here.
activemq user forum
Kind regards
Hilderich
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] tJMSInput: session is close exception

Okay, I got it: If you select the "failover" option the fields for host and port are disabled and into the failover table you just type in your host and port as you did it previously.
4 REPLIES
Moderator

Re: [resolved] tJMSInput: session is close exception

Hi,

Have you tried to use TalendHelpCenter"tMomInput component in your job design? Here is a "failover" option.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tJMSInput: session is close exception

Hello Sabrina,
We have only one JMS Broker. What entry we should make to failover? The same JMS server again?
Kind regards,
Hilderich
One Star

Re: [resolved] tJMSInput: session is close exception

Okay, I got it: If you select the "failover" option the fields for host and port are disabled and into the failover table you just type in your host and port as you did it previously.
Moderator

Re: [resolved] tJMSInput: session is close exception

Hi hilderich,
Thanks for sharing your screenshot with us. Could you please set this topic as resolved? In that way, other users will be informed that this thread has been resolved.

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.