IntelliJ Java IDE
The moose likes Other Open Source Projects and the fly likes smooks to flatpack marshal Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "smooks to flatpack marshal" Watch "smooks to flatpack marshal" New topic
Author

smooks to flatpack marshal

Sam Mohamed
Greenhorn

Joined: Dec 19, 2011
Posts: 1
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
 
 
subject: smooks to flatpack marshal
 
Threads others viewed
Querying tables with a one-to-many foreign key relationship
How to know no of records resultset contains in xml file
No Persistence provider for EntityManager named helloworld
Smooks: looping in freemarker template
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture