One Star

install runtime on linux server (debian, centos)

Hello all,
I would like to deploy my REST service exported from TOS ESB 5.1 (osgi bundle), on my personnal linux server but i don't know how to do that (now i test with success on local windows machine).
Please help.
Thanks in advance for your answers Smiley Happy
10 REPLIES
One Star

Re: install runtime on linux server (debian, centos)

Hi Minchi,
we advice to download the TESB SE (or if you are lazy, you can simply copy the Runtime_ESBSE directory) to your linux server and make the bin/start.sh script to run after startup (place a link to the init.d or you can use Karaf Wrapper utility https://cwiki.apache.org/KARAF/49-wrapper.html). I personaly used the first option.
There you can deploy your exported OSGi bundle
Gabriel
Employee

Re: install runtime on linux server (debian, centos)

Just to clarify a little bit more, just right click on the Job or Route and select Export Route. Select the deploy folder in your ESB SE runtime. It is a hot deploy so it will start immediately if already running. This will work for both Routes and Jobs (assuming you select OSGI target jobs).
Here is a tutorial for deploying DI jobs to run an ESB runtime. http://talendforge.org/tutorials/tutorial.php?language=english&idTuto=102
One Star

Re: install runtime on linux server (debian, centos)

Thank you for your answers Smiley Happy it helps me a lot.
Actually i have installed talend SE, i have set java home and trun: I can start karaf without error.
But now i face a new problem: i can't access my endpoint with my web browser Smiley Sad
Can you confirm that i can access it or not ?

Thank you for your help !
One Star

Re: install runtime on linux server (debian, centos)

Hi Minchi,
if you created your service using data integration jobs, then you can access your service by default on
http://localhost:8040/services/<ServiceName>
you can check your service name using command cxf:list-endpoints
good luck
Gabriel
One Star

Re: install runtime on linux server (debian, centos)

Hi gusto,
i understand but i need to access the web service (deployed on my linux server) from my actual PC (windows via web browser with URL of rest endpoint ?)
One Star

Re: install runtime on linux server (debian, centos)

up Smiley Happy
One Star

Re: install runtime on linux server (debian, centos)

Hello,
I deployed my osgi bundle (rest service) in deploy folder (talend se) on my linux server.
My endpoint is http://mywebsite/serviceO2, when i hit on my server cxf:list-enpoints i can see /serviceO2:
everything OK. But now i'm unable to access the wsdl from outside (my local pc) via http://mywebsite/serviceO2
Please help me Smiley Happy
Regards
One Star

Re: install runtime on linux server (debian, centos)

Hi minchi,
hava a look at the config file: etc/org.apache.cxf.osgi.cfg m there's a parameter where CXF deploy service endpoints by default - by default having value /services
so you can find your service at http;//localhost:8040/services/serviceO2
good luck
gabriel
One Star

Re: install runtime on linux server (debian, centos)

thank you so much for your help, have a good day
One Star

Re: install runtime on linux server (debian, centos)

Hello,
Is it possible to have apache2 and karaf contrainer (KRAF-service) on the same debian or centos server ?
If then how can we switch between karaf and apache2 shell ?
Regards,