Questions tagged [smooks]

Smooks is an extensible framework for building applications for processing XML and non XML data (CSV, EDI, Java etc) using Java.

Smooks is an extensible data integration Java framework for building XML and non-XML fragment-based applications.

178 questions
0
votes
1 answer

Cannot get element printed out in the esb message

I am trying to build a SOAP xml request which includes multiple namespaces using smooks action and freemarker tempting. Here is my code snippet in jboss-esb.xml and smooks-upgraded-right-now-query.xml is the templating file where I am building a…
sanBV
  • 45
  • 5
0
votes
1 answer

Initialize smooks by reading files from remote location

I am trying to read smooks from remote location my code is : public Smooks createSmooks() throws Exception { Smooks smooks = new Smooks("\\\\qa01\\conf\\order\\realec\\outbound.xml"); return smooks; } But it is…
0
votes
1 answer

How to install Smook Plug in Jboss Fuse IDE

I need to use Smooks for data mapping in Jboss Fuse IDE. I couldn't find any smooks plugin for Jboss fuse IDE. Since Smooks is a jboss tool, It should be embedded in Fuse IDE. Can anyone please tell me how to install Smooks in Fuse IDE or any other…
vashishth
  • 2,751
  • 4
  • 38
  • 68
0
votes
1 answer

Is there an smart way to write a fixed length flat file using camel and smooks

Is there any framework/library to help writing fixed length flat files in java? I want to write a collection of beans/entities into a flat file without worrying with convertions, padding, alignment, fillers, etcs For example, I'd like to parse a…
0
votes
1 answer

exception occured on applying advisitor on single smooks instance

need a advice from any one. if you look at the below code,every time I am creating the new object for smooks as ftlname dynamically get populated. try { Smooks smooks1 = new Smooks("smooks-config.xml"); if (ftlName…
Ananth
  • 65
  • 1
  • 7
0
votes
1 answer

smooks csv to java bean - setting global parameters and accessing

I'm using smooks (v1.5) to map from a csv file to a java bean collection for the records. At the moment, it's 1 big java bean for each CSV record. I have some static global application data that I want mapping into my java beans (i.e. some data…
shuttsy
  • 1,585
  • 2
  • 19
  • 34
0
votes
1 answer

Using Smooks transformer in Mule 3.4 CE

I'm trying to use smooks 1.5 to transform a csv file to xml. I have already imported all smooks jar, but getting this error org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration >problem: Unable to locate…
philip
  • 484
  • 9
  • 26
0
votes
1 answer

WSO2 ESB Cache mediation to cache a config file

I need to get some configs from a my xml config file. Due to the high load it is a bad idea to read data from file for each proxy service invocation. I found smooks and cache mediators and I think these two mediators can help me but I don't know…
Reza Ameri
  • 1,803
  • 3
  • 24
  • 32
0
votes
0 answers

Smook Java to Xml Parser Removing package name

How do I remove the package name from the XML output of the Java to XML Smook parser? Sample Code: Smooks smooks = new Smooks(); ExecutionContext executionContext = smooks.createExecutionContext(); StringWriter writer = new…
user1752078
  • 95
  • 3
  • 8
0
votes
1 answer

Exception throwing in smooks

Is it possible to throw an Exception in the smooks configuration file. Example if in an xml of order,
Joe
1
user1353083
  • 59
  • 1
  • 1
  • 3
0
votes
1 answer

How to retrieve java objects produced by smooks

In brief: I have java.io.InputStream which contains json with a huge array of sub-elements. Following call gives me fully populated collection after processing is finished: smooks.filterSource(exCtxt, new StreamSource(inputStream), javaResult). How…
0
votes
1 answer

csv to java transformation through smooks

I have csv file which is needed to be converted into java file by creating object . I did this through the example csv to java given in smooks 1.5 and it is running properly. But if I use a new csv sheet then i need to change the field name every…
0
votes
1 answer

MVEL expression using programmatic configuratoin in Smooks

I did simple java to java transformation with programmatic configuration and it worked well. Now I need to extend it with following use cases, actually all of them depend on MVEL expressions. I found examples with Xml configuration, so solution may…
0
votes
1 answer

Converting Smooks CSV file to JAVA ,I got No ClassLoaders found for: au.com.bytecode.opencsv.CSVReader

Now Im usimg smooks for converting csv file to java so Iam got Exception No ClassLoaders found for: au.com.bytecode.opencsv.CSVReader , Im getting Exception is 15:03:41,263 ERROR [STDERR] org.milyn.SmooksException: Smooks Filtering operation…
nag
  • 647
  • 6
  • 25
  • 43
0
votes
0 answers

EDI to xml transformation using smooks

I tried to convert a file containing EDI message to xml using org.milyn.smooks.camel.processor.SmooksProcessor which implements org.apache.camel.Processor interface. The directory containing the file is set as camel source endpoint. But while trying…
Naveed S
  • 5,106
  • 4
  • 34
  • 52
1 2 3
11
12