Smooks 1.2 adds support for message data Validation as one of its new features. This new feature allows you to perform strong field and fragment validation on not just XML data, but also on EDI, JSON, CSV etc. It currently supports Regex and MVEL rules bases (Drools to follow). Regex rules allow you to perform low level field format validation, while MVEL rules allow you to perform Business rules validation at a fragment/message level.
Continue reading…
It’s true… we’ve moved website yet again!! We got totally cheesed off with the Google Sites site, so we changed www.smooks.org to use MediaWiki.
Quite simply, we wanted a site that was easy to edit, and produced something we liked. With all of us doing this in our spare time, we didn’t want to be wasting that time fighting the tools we were using. Google Sites was OK, but was quite restrictive wrt how it allowed us construct the content. The editor was more wysiwyg on Google Sites, but the result was not at all as appealing (in my opinion at least) and ultimately that’s what really counts. An example of one simple thing with the new site…. it’s now very easy to style code snippets that look really well – check the User Guide or any of the Examples.
Anyway, we hope you like it too, and find it easier to work with.
REMEMBER…. it’s a Wiki, so feel free to contribute documentation updates. Don’t be afraid of breaking anything as we have a full revision history. So be bold… go make some edits!!!
Smooks will be at JavaOne this year!!
I will be running a BOF entitled “Data Integration with Smooks: Split, Transform, and Analyze Your Data in an ESB World“. It’s on the Tuesday evening at 8:30pm. If you’re at JavaOne this year, please drop by and see us!!
With the new Smooks Persistence cartridge in Smooks 1.2 you can directly use several entity persistence frameworks from within Smooks. In this post I will show you how this works with Hibernate and any other JPA compatible framework.
Continue reading…
One of the major new features in Smooks v1.2 will be the new Persistence Cartridge. This cartridge enables the use of several entity persistence frameworks from within Smooks, currently targeting Hibernate, Ibatis and any JPA compatible framework. It also allows you to use your own Data Access Objects (DAOs).
This cartridge is great for those cases where you already have your data access layer and want to use its power from within Smooks. It also allows you to reuse these persistence resources on any format of data, not just XML e.g. EDI, CSV, JSON etc.
This is the first post of a series of posts about the persistence cartridge. This post is an introduction of the cartridge. I will give an overview of what the cartridge can do and also show an example where I use custom DAO’s to persist the data of an XML document. In the next posts in this series, I will show examples of how Hibernate, JPA and Ibatis entities can be used.
Continue reading…
MuleSource recently posted a Podcast about “Smooks for Mule” on their “From the Mule’s mouth” blog. In the Podcast, I get interviewed by Ross Mason about “Smooks for Mule” and “Smooks”. I talk about why I started Smooks for Mule and what Smooks can do. I outline some examples of where Smooks is in use today, as well as what people can expect in the next releases of “Smooks for Mule” and “Smooks”.
You can listen to the podcast via the player on the end of this post or you can go to the original Mule blog post. I hope that you find it interesting and useful.
I would like to thank MuleSource for enabling this interview.
Podcast: Play in new window
| Download (4.3MB)
JBoss Tools v3.0.0 will ship with an Editor for Smooks.
Download v3.0.0 CR2
This release of the Editor will provide some basic transformation capabilities, generating Smooks configs for performing basic Xml2Java, Java2Java, Java2Xml and Xml2Xml transforms. It generates Smooks v1.0 based configurations. We’ve been told “You just need the Eclipse Gaynmede (sr1) J2EE distro + JBT 3“.
It would be great if people could provide feedback (forums) and bug reports (JIRA) to the JBoss Tools team.
Some people use Smooks as a Java Binding framework for marshalling and unmarshalling XML, in a similar fashion to how JAXB can be used. An “issue” that has been raised by a number of people is the fact that, with Smooks, you need to define a template for serializing the populated Java Object model (to XML, or other format). Some people find this a bit of a drag. They expect Smooks to be able to do it automagically. JAXB etc support it, so why can’t Smooks?
Continue reading…