Hello
I created my routes, packaged it in jar file and installed it as Windows
Service
However in my code I am trying to send a mail but it does not work when my
file is on an external disk (w:/ in my case)
If file is on my drive it's ok!
Do you know why?
File f = new File("W:\\schedule.xls");
System.out.println(f.exists()); //FALSE
System.out.println(f.canRead()); //FASLE
in.addAttachment("WSS_ExtranetAdmin_Schedule.xls", new
DataHandler(new
FileDataSource("W:\\03_0047\\01_EUFES\\02_Work\\22_Oper_Admin\\Service\\WSS_ExtranetAdmin_Schedule.xls")));
thks
Valery
--
View this message in context:
http://camel.465427.n5.nabble.com/Access-File-outside-Jar-package-file-tp3367995p3367995.html
Sent from the Camel - Users mailing list archive at Nabble.com.