Ok.Printing the headers revelaed that SI sends x-headerkey. Even camel case is overriden also. Is there a way to not append x- in SI when sending the header values ?
Type: Posts; User: poly; Keyword(s):
Ok.Printing the headers revelaed that SI sends x-headerkey. Even camel case is overriden also. Is there a way to not append x- in SI when sending the header values ?
I have client A spring webapp which makes a call to servlet B. Servlet B has a method doPost() and accepts request. When making an http call via PostMethod from A i am able to retrieve the header...
Solved my own question
I am making a restful POST call to my controller where the contents sent to my method will be the contents of the PDF data.
@RequestMapping(value = "{param1}", method = RequestMethod.POST)...
I feel bad now for making that simple mistake. Thanks
You also might want to check the last date and time stamp of the file when it was picked up in your filter. Compare the file.getLostModified time with whatever time you want to compare. If the...
Consider the following example Cleric :-
public interface RequestGateway {
List<Foo> hello(JsonObj json);
}
http://static.springsource.org/spring-integration/api/org/springframework/integration/file/filters/FileListFilter.html
Implement a custom filter for the file inbound adapter which will get executed. lOOK at FileLISTFilter. Try to put your own logic on what files needs to be picked etc like a sorting algorithihm which...
Sprry disregard my previous post as you are explicity setting in the code itself
Thanks for the reply Gary. I have a service with method getFoo(String name, int age); I have a POJO which contains fields which needs to be set to default values and then i am converting the POJO to...
Where is the config for setting hostname, password, username, directory path etc on sftpSessionFactotry?
I have struggled today for atleast 4 hours trying to figure out why i was getting an error stating 'no output channel exception' on my
<int:chain input-channel="response">
.
.
</int:chain>
...
Why not write a class which returns you back the remote directory expression just a regular string and then use header enricher to set it ?. Much simpler..
<int:object-to-json-transformer> resolved my issue.. Thanks
I have a web appication running on my local machine and my services are exposed as remoting on http URL via jsonrpc4j.
<bean name="/UserService.json"...
Please delete this thread as i already have one created
Following cron expression will let you run at 12:00AM:-
<property name="cronExpression" value="0 0 12 * * ?" />
1. Is this a common/advisable pattern ?
A) This is what most of the ESB has to offer is to seperate most of your clutter code like making JDBC connection, orr http connection and running queries on...
Err. So stupid that i was sending the output of the http outbound gateway to another reply channel which was using the unmarshal transformer and was causing the issue when putting the class name in...
Hello Cleric. I forgot to tell you that i did try putting my JaxB annotation class name in the expected response type and i got the followin exception 'Failed to create source for payload type [ Your...
Hello. I have been using Mule for quite some time but based on their recent releases which includes several bugs, i gave SI a shot and it's very impressive. While playing around with http:outbound...
I tried changing it to POST to see if it has any effect and now i get PageNotFound POST is not supported. Anyone ?
I am working on spring rest WS. I have a controller with 2 methods. one which displays the JSP page with a textfield and the other which process the value of the textfield. When user types this URL...
Wow i am stumped. When using this code :-
Session session = null;
try {
session = sessionFactory.getCurrentSession();
.
.