Archive for the ‘Open Source’ Category

From the MuleForge: Working on the SFTP Transport and the Smooks Module

September 29th, 2011 by Magnus Larsson

How to transfer and transform very large files (> 1 GB) without headaches…
While Web Services (SOAP or REST based) gets all the attention in the press, there are many companies still struggling with file transfers and transformation of very large files (for the scope of this blog defined as files of size > 1 GB). [...]

Tags: , , ,
Posted in ESB, Open Source | No Comments »

Soi-toolkit meets Mule Studio, a perfect match!

June 30th, 2011 by Magnus Larsson

Soi-toolkit and the upcoming Mule Studio (currently in beta) are two tools that simplify development of services and integrations based on Mule ESB. This article describes how these two tools complement each other to make the development even more simplified (and fun ☺).
First a short introduction of the two tools and then an illustrated test [...]

Tags: ,
Posted in ESB, Java, Open Source, SOA, Tools | 5 Comments »

Getting started with Soi-toolkit

January 23rd, 2011 by Jan Västernäs

Soi-toolkit adds value to the leading open source Mule ESB. Its makes it very easy to start building integrations and services.
You get projects setup including tests all based on Maven. You also get support for logging, property handling, WSDL and XML Schema creation and much more.
So how do you get started ? The Soi-toolkit website contains [...]

Tags: ,
Posted in Open Source, SOA, Tools | 1 Comment »

Keeping Database Schemas up to date

December 12th, 2010 by Jan Västernäs

Background
How many databases/schemas does your project use ? One common setup is to have one for each staging environment (development, test, customer, education, qa, production) and one for each developer and tester in the project. Maybe you even need a set of schemas free to use for anyone at special occasions. If the application is [...]

Tags: ,
Posted in Open Source, Tools | No Comments »

Advanced Debugging

October 19th, 2010 by Anders Asplund

In a project I have been working in recently a strange problem appeared.
We had a third-party dependency provided by the application server and as a consequence the same dependency marked as provided in our maven build script. In one of our own classes we called a static method in class supplied by the third-party dependency.
Foo.bar()
The [...]

Posted in Debugging, Java, Open Source | No Comments »

Mock an autowired bean

September 20th, 2010 by Annica Sunnman

Imagine a service implementation having autowired dependencies like:

@Service
@Transactional(rollbackFor=ServiceException.class)
public class ManageDrugServiceImpl implements ManageDrugService {
@Autowired
private DrugPrescriptionManager drugPrescriptionManager;
@Autowired
private UserDAO userDao;
@Autowired
private DrugDAO drugDao;
@Override
public List getNewDrugsForUser() throws ServiceException {…

To test this above service in isolation and mock each dependency is not hard. Create a setter method for each dependency [...]

Posted in Java EE, Open Source, TDD | 3 Comments »

CDI – The first standard for DI containers

January 27th, 2010 by Johan Eltes

What is it?
CDI is an abbreviation of “Contexts and Dependency Injection for the Java EE platform”. First of all, I’d like to stress that CDI is not only for Java EE environments. It is equally applicable to Java SE applications, unit tests and other out-of-container environments.
The specification (JSR-299) defines its declared capabilities as follows:
This specification [...]

Posted in Java EE, Open Source | No Comments »

Another perspective on JAX-WS portability

January 7th, 2010 by Johan Eltes

JAX-WS is the Java-standard for Web-Service XML to Java POJO binding. It entered the scene in Java EE 5 and Java SE 6. I wrote a blog entry a while back on it’s advantages over the predecessor (JAX-RPC). With WSDL-first (contract-first) design, Java POJO:s are generated from WSDL and XSD source files. The resulting Java [...]

Posted in Java EE, Open Source, SOA | 1 Comment »

Use Eclipse plugins to find bugs and check test coverage

January 16th, 2009 by Annica Sunnman

A really useful plugin to Eclipse is FindBugs, install the plugin and you can actually find bugs in your code.
It’s a good tool to use during projects, but also when performing code reviews. You can get a feeling quite quick on areas that are containing more problems than others. You can use the plugin and [...]

Posted in Open Source, Quality | No Comments »

Using JFreeChart implementing a graphical calendar

August 16th, 2008 by Annica Sunnman

I am amazed each time I am working with timestamps and calendars – how hard can it be? It’s hard to meet all requirement since each person is used to their own calendar. Latest I been implementing a calendar, to be displayed graphcial, in Eclipse RCP.
Imaging a calendar that is representing working hours for a factory [...]

Posted in Open Source | No Comments »