Is there any way to process text file data using wso2 6.4.0? - wso2-data-services-server

How to fetch the data from text file using wso2 6.4.0? suggest me the ideas and samples.

You can install the File Connector to the EI which can do the file operations.

If you want to listen on a directory and fetch & process the files real time, you can use file inbound endpoint. Please find the documentation below:
https://docs.wso2.com/display/EI640/File+Inbound+Protocol

Related

Where do I upload p12 file received from Google Analytics to Pentaho Server?

I am using Pentaho community version and using PDI on my local machine. I am trying to integrate PDI with Google Analytics and I am able to do so with my local machine. But when I put the same transformation file on to the server (PUC upload), It is unable to access the .p12 credential file generated by Google Analytics. The only way this seems possible if I upload the credential file on some server location which is accessible to my Pentaho Server.
How to solve this? Where should I put the credential file on the server for this to work? Is this functionality even available in Pentaho Community Version?
You will have to keep the file in the server for sure, use a variable to store the key file path and use the variable in that place, this variable should be from kettle properties. Set your variable according to your environment needs. The key is variable pointing to the variable path which is obtained from kettle properties.

How to use UTL_file to store file at client

I want to use plsql installed at a windows client to retrive some pdf file saved as blob at server. I found a tutorial about UTL_FILE but looks like it can only create file at server side, so is it possible to create file at client or is there a way to transfer files from server to client? Can someone give me some suggestion? Thx.
UTL_File has a parameter named "LOCATION". This is where your files will be written and is called a DIRECTORY. You should be able to create your own DIRECTORY and point it to a location that can be reached by your Oracle instance.
CREATE OR REPLACE DIRECTORY PDF_Out AS 'C:\Users\Me\PDF_Out';
Then replace what you are currently using as the value for "LOCATION" with the name of your new DIRECTORY; in the sample it is called PDF_Out.
You may need to check running services to find out which user is running the Oracle listener and grant that user appropriate read/write privileges to the location defined by your new DIRECTORY.

In Pentaho can I load file and proccess the data directly into oracle database.

As of now i am downloading the file from SFTP to local and then adding into the database.I want to remove the extra step that is to download the file to machine.
The Text file input step is based on Apache vfs, which can read from a sftp server. So the solution is to define the Filename/Directory with the appropriate syntax:
sftp://[ username[: password]#] hostname[: port][ relative-path]
Supported file systems are on the Apache Common VFS web page.

Deleting file from dam (publish server) will delete automatically from author server?

I've implemented code to delete the uploaded files from DAM storage[CRXDE] , I've one doubt will the code delete the file from author server too? If not how to delete the file simultaneously from author as well as 4 publish server.
With the below code , the file is getting removed from publish CRXDE.
Code:
AssetManager assetManager = (AssetManager) resourceResolver.adaptTo(AssetManager.class);
String damUtil=DamUtil.assetToBinaryPath(selectedFileName);
assetManager.removeAssetForBinary(damUtil);
To replicate changes from publish instances back to author instances you can use a mechanism called reverse replication. Normally, you replicate changes from an author to a publisher. This is the reverse operation to this, hence reverse replication.
Since it is a big topic I would like to point you to the official Adobe documentation for more information on how to configure reverse replication:
Official (reverse) replication documentation by Adobe

How can I have a file appearing on a WebDav server trigger a BizTalk event?

I have a legacy system which can create files visible in WebDav as an output. I'd like to trigger a BizTalk orchestration receive port when a file matching a filter appears - so a lot like the standard File adapter, but for WebDav.
I found the BizTalk Scheduled Task Adapter, which can pull in a file by HTTP, but it looks abandoned, poorly documented, and out of date.
So, how is it done? Can I use the standard HTTP adapter perhaps?
If you're able access the WebDAV via a UNC path from the BizTalk server the File Adapter should do the trick.
Have you tried to assign a drive letter to the WebDav folder?
http://en.wikipedia.org/wiki/WebDAV
We've had to go with a workaround on this where we made a completely unrelated separate process to make a copy of the file from the legacy system appear in a Samba share, which we in turn attach to with an ordinary FILE adapter.

Resources