Where to place files in iib - ibm-integration-bus

I'm using IIB v10.0.0.18 and I'm trying to read a file placed in a project uses JavaCompute node where project structure is like below
I'm trying to do below
File schemaFile = new File("schema.json");
but when I use this schemaFile, I'm getting FileNotFound exception.
Any idea where should I place the file should that it can be found by IIB ?

Related

Move file using Microsoft power automate in share point

I am trying to move a newly uploaded file in sharepoint using power automate. I have used two connectors 1) When a file is created in a folder 2) Move File. I have used file identifier as dynamic content in the move file connector. When i tried i got this error.
Error Message - Missing or mismatched field definition on the destination list for source field 'RequestType' type 'Text'. Source site template id 'GroupWebTemplateID', target site template id 'GroupWebTemplateID'. Total blocked root objects in this operation is 1.
Am i using a wrong connector or wrong dynamic content

MQFTE monitor to append the messages from queue to file

I have a requirement where I want create different files from MQ messages based on the filename in the header. If a file is already existing in the folder location, the message in the queue should be appended to the contents of already existing file, else a new file should be created based on the filename in the header. I do not want to use File node because of some design constraint.
I have tried creating MQFTE monitor to test this requirement but the result is: if a file is not existing, a new file is getting created however an existing file is getting overwritten with the new message instead of appending. What would be the best way to address this?

Spring cloud config server fetching properties from native location is not working

Hi Please see the project structure of my config file
Include these lines in the yml file
spring.profiles.active=native
spring.cloud.config.server.native.searchlocations =classpath:config/{application}
Here I can able to fetch properties directly under service name ,but don't know how to fetch data from folders like australia,canada .Please help
I solved this issue by providing another search location path in the server . see the below changes
spring.cloud.config.server.native.searchlocations =classpath:config/{application},classpath:config/{application}/{label}
And from the client side I have to make sure that I am passing correct label.
spring.cloud.config.label=australia

How can we provide the path for the image file in order to create the multimedia component in server?

I am trying to Create a multimedia Component where
1) I am executing my code in client machine
2)Target where it should create a component is one of the test server.
3)Here i am using the http Coreservices added as the Service Reference.
but the part in which i am getting error is the path for the image file for the multimedia component.
Case:1) I am selecting the Image file from the client machine -
In this case i am getting error in the component creation stage stated:
Unable to get file size of 'file:///C:foldername/image.jpg' Could
not find a part of the path 'C:\foldername\image.jpg'.
Case:2) I mapped the test Server in client machine so it created the Z drive and i am selecting the image file
In this case i am getting same error at component creation stage:
Unable to get file size of 'file:///Z:/foldername/image.jpg' Could
not find a part of the path 'Z:\foldername\image.jpg'.
My question is , How can we provide the path for the image file in order to create the multimedia component?
I got my answer and able to create the multimedia component to the target server:
have used
StreamUpload2010Client streamClient = new StreamUpload2010Client();
and stored the file at templocation and uploaded it from there.
thanks

Adding files to WP7 isolated storage from Visual Studio?

I'm working on an Windows Phone 7 app where I'm going to show ATM's nere your location with bing maps.
I have an xml-file with addresses and gps coordinates. But how do I add this file to my program from visual studio? If I set BuildAction to Content and Copy to output directory to Copy always. The file still isn't in IsolatedStorage. Do I have to build a mechanism to download the information from the web? Or is there another way?
Files listed as content in the Visual Studio project are copied to the generated XAP file (which is analogous to a ZIP file). They are not copied to isolated storage.
In the case of an XML file, you can call XmlReader.Create with the path to the file as argument, as follows:
using (XmlReader reader = XmlReader.Create("path/to/file.xml"))
{
// read XML file here
}
Or you can also call Application.GetResourceStream and use the Stream property of the returned StreamResourceInfo object:
StreamResourceInfo sri = Application.GetResourceStream(
new Uri("path/to/file.xml", UriKind.Relative));
// read XML file here from sri.Stream, e.g. using a StreamReader object
You cannot directly pass files to the isolated storage at design time. Only when the application is running.
I'd still recommend passing the file to the application through a web service. Mainly because if eventually you will need to change the contents of the XML, you will need to update the application.
What I would do is simply create a WCF service that will return serialized data (or the existing XML) via a simple HTTP request.
The "Mango" SDK ships with the ISETool that can take and restore snapshots of an application's isolated storage to/from a local directory:
# Copy data from IS to directory
ISETool.exe ts xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"
# Copy data from IS to directory
ISETool.exe rs xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"
If you don't want to overwrite the entire IS, the tool supports an option (device-folder) for specifying a sub-directory to backup/restore.

Resources