Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

smooks to flatpack marshal

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I am writing a route using camel and smooks, with the producer as a JPA repository that produces a List of DAOs, which I need to send to an sftp server as a fixed width file.

Here is what I think is required for this to occur

1) The repository which uses JPA to produce a list of DAOs (I have this)
2) A smooks to flatpack mapping which takes the xml version of the list mentioned above, and transforms it into a fixed width file
3) A camel route which starts with the repository and ends with the file being send via sfpt:

Here is the code I have for this:





What I'm looking for is a smooks mapping similar to this



But instead of a freemarker template, i want to use the flatpack fixed-width mapping file, provided as



Is there a flatpack namespace for smooks that I can use??

thanks

Sam
 
You don't like waffles? Well, do you like this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!