# Java and Clover ETL integration

**URL:** <https://forum.cloverdx.com/t/java-and-clover-etl-integration/946>\
**Category:** CloverDX Platform\
**Created:** [October 17, 2011, 12:00am UTC](https://forum.cloverdx.com/t/java-and-clover-etl-integration/946 "2011-10-17T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ps.jecaspe](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@ps.jecaspe](https://forum.cloverdx.com/u/ps.jecaspe)\
**Post date:** [October 17, 2011, 12:00am UTC](https://forum.cloverdx.com/t/java-and-clover-etl-integration/946/1 "2011-10-17T00:00:00Z")

</div>

How can I integrate my CloverETL project with my Java Project?

For example, I have Java GUI application that will get the name of the file that the user wants to download and transform from an FTP Server. How can I past the filename (i.e. “MyFilename.csv”) to the UniversalDataReader so that my UniversalDataReader could read different files from the FTP server.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [October 17, 2011, 8:08am UTC](https://forum.cloverdx.com/t/java-and-clover-etl-integration/946/2 "2011-10-17T08:08:54Z")

</div>

Hello,  
unfortunately you can’t change the _fileURL_ attribute in _DataReader_ object; you need to create a new one, when you build a graph in java. When reading a graph from xml definition (_ransformationGraphXMLReaderWriter.loadGraph(in, runtimeContext.getAdditionalProperties())_), you need to change the _fileURL_ attribute and read the graph again.

---

<div class="post-metadata">

**Author:** ![julrych](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@julrych](https://forum.cloverdx.com/u/julrych)\
**Post date:** [October 18, 2011, 11:00pm UTC](https://forum.cloverdx.com/t/java-and-clover-etl-integration/946/3 "2011-10-18T23:00:47Z")

</div>

You can also use parameters - in the reader, specify value of fileURL as a parameter ${FILENAME}. Then change the FILENAME property using

```auto
graph.getRuntimeContext().addAdditionalProperty("FILENAME", newFilename);

```

or

```auto
graph.getGraphProperties().setProperty("FILENAME", newFilename);

```
