Talend : Create a Component using java code - talend

I am new in user of Talend open studio
I want to find a way to add component like tinputfile or tligrow without the drag and drop tools , but with java code manually
Help please
Thank you very much

I don't think it's possible (in fact I'm quite sure you cannot).
When you drag&drop components you "generate" Java source code which is compiled later when you build the job (or run in the studio).
How do you expect to change the byte code at run time?
TRF

Yes , it is possible to create your own Talend components . There is a very thorough, multi-part tutorial at http://powerupbi.com/talend/componentCreation_1.html
You can also view the source to existing components for an idea of how they are implemented and setup.
Perhaps study how tInputFile is built , make a copy, and extend to your purpose.
Alternatively, if all the files have the same schema and reside in the same directory, you may not need a custom component . Rather create a prenr job which gets a list of files in the directory and loops through each file name. For each file, it would call a sub job to read and process that file .

I have provided the all the steps by which you can create the custom component with Java only here is the link to my answer
Custom component with dynamic configuration like jira, jdbc or azurestorage in talend

Related

Run Tika source code from Eclipse

I have been using Apache Tika for extracting text from different document formats. Now i want to make it handle header, footer and text boxes differently. So i downloaded source code of Tika from GitHub and trying to make changes in it.
I want to run Apache Tika source code from Eclipse and debug its execution by passing an input document. How can i do that? There are so many main classes. Where do i start? I understand its a Maven project and i am new to it.
And once i make changes how can i create new jar file?
Take a look at Tika's xhtml output first, maybe it extracts headers/footers and you can use parser API to handle these parts as you wish. If it's that way, use API as examples say passing custom SAX-like handler to it.

Where does orbeon form saved?

I am a new user of orbeon and am trying to some exercise with orbeon's code. I have downloaded orbeon source code from git. I have made a war file (with ant orbeon-dist-war) and placed it in tomcat. Everything is working fine. Then I follow the tutorial and make "my-bookcast" application mentioned there.I found the application source code at "/WEB-INF/resources/apps/my-bookcast" and I know which database is used and where the data are saved. But my questions are
When I create form using orbeon form builder using the video tutorial mentioned in www.orbeon.com, using mouse and keyboard only where the form saved? How can I see the source code (like "my-bookcast") of the saved form?
Can I use the form along with source code in other application, independent off orbeon?
Update: Can anyone tell me, if I want to see the data stored in exist-db then how can I do this. I heard about oxygen, which can be used as a exist-db browser. In that case where can I found the exist-db related configuration in orbeon to connect with the built-in exist-db?
Out of the box, the form definitions and form data are stored into the embedded eXist database. The source code you can see directly from Form Builder, with "Edit Source".
No.
Regarding the question in your update: you can disable the orbeon-exist-filter eXist security filter in web.xml, then should be able to connect with oXygen either via exist-xmlrpc-servlet or exist-rest-servlet which is mounted on /exist/rest/*.
Graphical view
You can find this icon on Right Top.
After clicking, you will get this popup and that's the source

How to check the file is download on button click using code first api

I am using code first api for UI Automation.
I want to check whether file is downloaded or not on button click.
I am able to find the button and click is working fine .
i dont know how to check the file is downloaded or not.
I am new to this technology. sorry if it is a basic question.
Thanks in advance.
Coded UI does not have any built-in facility for checking that a download completed and actually downloaded a file. However, Coded UI tests can use the full facilities of the language they are written in plus the .Net libraries.
In the Coded UI test method, at the place where you expect the download to have been completed, add some code to check the properties of the file that should have been created. For example: its existence, its creation and/or modification date and time, its size. Use the normal file IO operations to perform the checks. Microsoft provide details on How to do basic file I/O in Visual C#.
After performing the checks it may be beneficial to delete the file, to reduce wasted disc space.

Whic file of my C# project i wll give to a user for just use my software but they cant modified it

im making a software using C#.net ..and want to give it to users
Which file of my C# project i should give to a user for just use my software but they cant modified it.....how i make that type of file?
Which file of my C# project i should
give to a user
You should give none of the files that are part of your C# project. Provide only the compiled assemblies or if you already have a setup project that generates a deployment package such as an MSI, provide the resulting MSI.
You must create setup file and provide that much only.And your set up must contains serial key.If you dont know how to create serial key during setup creation then click here

create jrxml file at run time and modify at run time

I have a requirement to develop custom reports where we already have some reoprts developed using JasperReports using iReport tool. Now the requirement is to modify those reports design at run time. I should use those existing jrxml files and save as to new report then change the design at run time. Also I should see those newly created reports whenever I want.
I have gone through the Jasper API and Dynamic Reports where we can create the reports dynamically at run time but we can't save the design (like JRXML).
I am looking for any other JRXML design API to create and modify and save the Jasper Reports at run time.
I appreciate if any one can help me.
Thanks in Advance
Srinivas
It seems DynamicJasper can do this.
First thing you will need to draw a flow chart of how you want to do things.
For example, if the report already exists, and you want it as is, what will you do?
In case you want to modify it a little, do you want to save as jrxml and compile each time?
Or do you want to compile to jasper, store on local storage then populate later.
It seems you want to build a reporting engine and answering all those questions is basic. In that case here is something to start from.
Find a factory called DocumentBuilderFactory which will help you parse the XML into DOM object, modify then save it.
Here is a good tutorial on using it