Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Autostart Karaf (Open Studio)

Hi
We've just install and trying Talend Open Studio for ESB. We've developed some RESTFul web services and we've published them on Karaf, and it works fine!! however, we've got a doubt, how can we auto-start Karaf whenever we restart our machine?
We've tried with a scheduled task and a windows service, which run the trun.bat file, but doesn't work! the scheduled task is configured to start at Windows startup, but it keeps as "running" and Karaf is not up. With Windows Service occurs something like this, we start it and immediatly it's stopped and appears a modal windows with a warning. We can run it manually, but we need do it automatically when system restart by maintenance.
Is there any way to get it?? we need to have karaf running to get our WebServices working, is it possible with Open Studio? (we've just discovered Talend and we're so dummies with it!)
Thanks
Cheers

Labels (3)
5 Replies
Anonymous
Not applicable
Author

Hi,
using the wrapper command in Karaf you can create the related stuff you need to get the Container as a Windows Service which is for sure the best way to solve the 'Auto Start' requirement:
Please see here for the detailed steps: https://help.talend.com/search/all?query=Installing+the+Talend+Runtime+container+as+a+service&conten...
The Talend Enterprise ESB comes additionally with an Installer which does this for you but essentially what we do in the installer is the same you can do manually also with the TOS 4 ESB Container
One more thing: when you run the container as a service you no longer have the console window so you now can use the Talend Runtime/Karaf Web Console: http://localhost:8040/system/console/bundles and / or connect via ssh (easiest by using teh client.bat which is int he same folder as the trun.bat you used to start it just as local process.)
HTH
Dietmar
Anonymous
Not applicable
Author

Hi Dlenzen,
Thanks you by your reply!! I've installed the wrapper and the Windows Service. I access to web console and i see this:

SSH Port RMI Ports State Pid Name
trun

Always in the status appears STARTING, I've checked this post http://community.talend.com:80/t5/Installing-and-Upgrading/Problem-to-start-Karaf/m-p/7040#M268, but i can't solve it. I'm using TALEND 5.2.2 and JDK 1.6 on 64bits environment.
Why my instance not starts?
If I stop the window service and run TRUN.BAT, on the webconsole the instance appears as "STARTED" and i can run my WS correctly.
By the way, I've configured my WS indicating the Endpoint on tRESTRequest object as my machine IP to get access from other computers in my network ( http://11.111.11.111:8109/myService/param1=xxx&param2=yyy).

Cheers

PS.
I've add tLog component to my job / WS and i've just seen that when i invoke my RESTFul service through HTTP it runs and catch params, however appears 500 Server Error
Anonymous
Not applicable
Author

Hi
I've seen that my problem is when i try to get info from my BD. I've attached you my job's diagram.
As you can see, i catch params, transform and set as global vars. Then i query my bd to get the info. The tLog component works ok and write params on the log, but when the job should continue to tMMSqlInput component, it crash!! i've tried without this component (without any query) and the WS works fine on Karaf, any idea?

Thakks!!
0683p000009MEG6.png
Anonymous
Not applicable
Author

I'm going to open other topic with the new question.
I got autostart Karaf, thank you so much Dlenzen!!
Cheers
Anonymous
Not applicable
Author

Hi All,

 

I have the same requirement now to start Karaf as autostart on my windows.

 

It will be really help for me if you provide the procedure / steps followed by you to achieve the autostart karaf.

 

Thanks in advance.