Re: Problem transfer from SMB to FTP OutMemory Java Heap Space

2016-06-03 Thread Daniel P22
Thanks Hans and Pontus, let me try this of mount a share.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-transfer-from-SMB-to-FTP-OutMemory-Java-Heap-Space-tp5783383p5783453.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to stop a dynamic route

2016-06-03 Thread Daniel P22
Ranx explain to you, I have a route A, in that route you are going to put a
file with ammdd date format. 

Then Im going to create a dinamic route in the Camel Context using that
date, this route is what you see in the example, I just wanna from the smb
endpoint the files according that date.

When finish the batch, stop and remove the route. I just wanna execute once. 

I use delay=6  because I want this code to run.

*The Stop Code *


if(context.getRouteStatus("sap-xrt-connect-interface-receive-" +
fileNameOnly).isStarted()){  // Se verifica si se inicio la ruta 

int CamelBatchValidator = 0; 
do{ 

Thread.sleep(1); // Se realiza la verificacion cada 10
segundos si la interfaz culmino su procesamiento 

if (CamelBatchComplete=="true"){ 

 Thread.sleep(2); // Tiempo adicional para verificar que
todo ha culminado 

 context.stopRoute("sap-xrt-connect-interface-receive-" +
fileNameOnly); 
  
 Thread.sleep(1); 
  
 context.removeRoute("sap-xrt-connect-interface-receive-" +
fileNameOnly); 
  
 CamelBatchValidator=1; 
 CamelBatchComplete = null; 
}else{ 

//Si la ruta esta vacia o hay error al conectar , esto hara
que entre en el IF de arriba y elimine la ruta 
if(CamelBatchComplete == null){ 

CamelBatchComplete="true"; 
} 

} 


}while(CamelBatchValidator==0);


Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-stop-a-dynamic-route-tp5783385p5783460.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to stop a dynamic route

2016-06-05 Thread Daniel P22
Ranx I just want to execute the route once, and stop and remove when the
batch are complete, just that,  don't look at the code, thank you so much.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-stop-a-dynamic-route-tp5783385p5783469.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to stop a dynamic route

2016-06-05 Thread Daniel P22
Once only, and then the route stop and remove from the camel context.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-stop-a-dynamic-route-tp5783385p5783477.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Problem transfer from SMB to FTP OutMemory Java Heap Space

2016-06-06 Thread Daniel P22
I have the default configuration, of karaf.bat

if "%JAVA_MIN_MEM%" == "" (
set JAVA_MIN_MEM=128M
)
if "%JAVA_MAX_MEM%" == "" (
set JAVA_MAX_MEM=512M
)
if "%JAVA_PERM_MEM%" == "" (
set JAVA_PERM_MEM=16M
)
if "%JAVA_MAX_PERM_MEM%" == "" (
set JAVA_MAX_PERM_MEM=128M
)



--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-transfer-from-SMB-to-FTP-OutMemory-Java-Heap-Space-tp5783383p5783488.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to stop a dynamic route

2016-06-08 Thread Daniel P22
Quinn and Ranx, guys have an example for controlbus, I don't understand how
works and how can I use it. I read camel.apache.org/controlbus.html



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-stop-a-dynamic-route-tp5783385p5783611.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to stop a dynamic route

2016-06-08 Thread Daniel P22
I need to start the route, process the files once and then stop and remove
the route.

Then the route maybe in future can be started again and I need the route
process the same files again.

Maybe I dont need to destroy the route but at least stop. And I have to
stopped when the CamelBatchComplete is true.

Thanks.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-stop-a-dynamic-route-tp5783385p5783728.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Convert Flat File to XML using a XSD Schema

2016-09-21 Thread Daniel P22
Hi, I want to know if is possible convert a Flat File to XML using a XSD
Schema.I'm a Biztalk Developer, and I want something similar like Flat File
Disassembler.The Flat File Dissamsembler tool, takes a Flat File and
transforms to XML, based on a XSD Schema. In the Schema are defined the
positional flat of the file.I read about bindy a jaxb, but a dont find
anything usefulThanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/Convert-Flat-File-to-XML-using-a-XSD-Schema-tp5787902.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Convert Flat File to XML using a XSD Schema

2016-09-23 Thread Daniel P22
Thanks Vitalii and Ranx, is perfect.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Convert-Flat-File-to-XML-using-a-XSD-Schema-tp5787902p5787950.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel Transformation XML

2016-09-23 Thread Daniel P22
Hi, I try to do this example of transformation

https://github.com/fusesource/fuseide/tree/master/examples/transformation/xml-to-xml

But I have the following error in the log 

*No component found with scheme: dozer*

I installed the dozer component in the Karaf Console, using
*features:install camel-dozer*, the installation is done, but still does not
work

System: jboss-fuse-6.1.0.redhat-379 / Camel version - 2.12.0.redhat-610379 

Thanks 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Transformation-XML-tp5787987.html
Sent from the Camel - Users mailing list archive at Nabble.com.