Building and running Talend ESB osgi bundle - talend

i am new to talend ESB so lately I started learning and i developed a job that returns a document using REST api and everything works fine, my question here is that i exported the job as a osgi bundle jar and i want to run it outside talend.Any help would be appreciated thank you.

You need an OSGI container but you can build a standalone package.
In the Deployment Tab, select MicroService For ESB
Then Build Job with a build type "Microservice" and check "Export as
ZIP"
The ZIP will contain script files ( .bat, .ps1 or .sh) to start your Talend program from the command line.

Related

How to create a executable Jar file for the Groovy script developed using Eclipse IDE

I have developed groovy script to run the Automation Testing using Eclipse IDE. The code generally triggers the Web service based on the input and Validates the responses.
I have exported the jar file by right clicking the project. The jar file is created.
But when I try to run the jar using Command prompt I am facing an error.
Can anyone please help me how to create a executable jar for the Groovy script

Jenkins deployment on multiple servers with different configurations

We are using jenkins to build and deploy our project.
Currently we build the project (It's a Spring java application) in one jenkins job and deploy it on our servers in an other jenkins job. The result of the build job is a war file which gets build and deployed by maven to tomcat.
This worked really well till we came to the point that we needed different configuration files (spring applicationContext.xml) for the application depending on which server the application is deployed. The configuration file comes packed in the war file from the build job.
What would be a good way to modify the build process for two servers with two configuration files? Is there a way to avoid having two builds just because we need two different configuration files in the war files?
Thanks for your help!
I supply the configuration files, per environment, at the time of deployment.
It overwrites whatever is there as part of .war

Run Ant files when performing Build and Deploy Worklight 5.x.x Application

I have a Worklight application set up in Eclipse. Before executing Build And Deploy Worklight Application, I need to run a bat that compiles a bunch of HTML templates. This templates are necessary to run the app correctly.
So, I would like to know if it is possible to link (maybe under Run Configurations...?) an Ant file or similar that allows me to execute the bat and perform the build & deploy in an automatic way. Any advice?
Hope the question is clear.
I believe you can add an extra project builder to your application that invokes the Ant task you need.
Under Eclipse take a look at Project->Properties->Builders->New.
You will find Ant buildfiles as project builders a useful link.

when project deploys on jboss, i want to run some main() method separately with jboss

My question is the same as like below.
(Jboss version 5.0, in case it matters.)
I have a library in one of my web applications that needs to be configured with a machine-specific license before use. I don't want to put this library in shared/lib because at some point I may want to run multiple web applications with different versions of the library.
Right now the .jar files are stored in WEB-INF/lib. Thus, when I build the .war file and upload it to the server, the .jar file would still be the one bound to my PC. I would like to put a bash script somewhere in the webapp that Tomcat would automatically run when deploying the .war file - this script would then run the configuration script and bind the server's license file to the .jar. Is this possible? Is there a nicer way of doing what I want?
one thing is different. my jar should run with other process Id. that means it has to run as standalone separated by jboss. Even if this
String command = "cmd /C java -jar C:\\test\\WEB-INF\\lib\\teststart.jar";
oProcess = new ProcessBuilder(command).start();
works, I will be happy. that jar is runnable jar.
Do you have Any idea? Thanks..
What about something like ServletContextListener?
Create a class that implements this and in the contextInitialized method (contextInitialized will run during war deployment) create a ProcessBuilder to run your bash command.

Exporting RCP as a product

I am deploying my eclipse rcp product into some folder say C:\deploy\eclipse.
But
Here i am facing a problem,while i was exporting to the same location it says export failed,
Since my project is in development stage each time i do changes in the code,i need to deploy to perform unit testing its pretty time consuming.All that i want to achieve is just override the same deployed location, i don't know if it is possible? The current approach was just go and delete the currently deployed folder and then export again, this is odd i guess, can someone drive me in a better approach
I suggest to setup a headless build which means that you're able to trigger a build of your RCP application from the commandline. Once you've established a headless build you can write some sort of batch file which for example cleans up the deployment directory before the build.
You can integrate this batch file in your Eclipse IDE via External Tools.
Here is a tutorial on how to setup a headless build.