Over a million developers have joined DZone.

SIwpas CR5 is Fully Compatible with CDI Web Profile TCK

· Java Zone

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

As you may already know, we have just released CR5 of SIwpas, lightweight web application server.  CR5 has been passed  "JSR-299 CDI Web Profile TCK"  version 1.0.1-Final unoffically. Beauty is that CDI TCK has been developing under an open source license (Apache Software License V2) and usage is a free of charge. I wish all of the Java EE TCKs are free but not! Therefore we can easily test SIwpas against JSR-299 Web Profile TCK.

Below, you can find several steps that explain how to run SIwpas against CDI Web Profile TCK.

How Could I run CDI Web Profile TCK  against SIwpas?

SIwpas is an open source project. All of the source code are located in http://siwpas.googlecode.com/svn/trunk/

Steps to run CDI Web Profile TCK :

  1. Download SIwpas CR5 from http://code.google.com/p/siwpas/downloads/list
  2. Open SIwpas CR5 into "SiwpasCR5" folder
  3. Get SIwpas source code from trunk, (svn checkout http://siwpas.googlecode.com/svn/trunk/ siwpas )
  4. Go into siwpas/siwpas-cditck
  5. Copy siwpas-cditck/config/catalina.sh into SiwpasCR5/bin/.
  6. Copy siwpas-cditck/config/tomcat-users.xml into SiwpasCR5/config/.
  7. Start SIwpas, (bin/catalina.sh start)
  8. Run "mvn clean install" in the root of siwpas
  9. Run "mvn clean test -Ptck" in siwpas-cditck folder
  10. Stop SIwpas, (bin/catalina.sh stop)

If everthing is ok, you are going to see the following messages on the screen after test has been run

Results :
Tests run: 636, Failures: 0, Errors: 0, Skipped: 0

So what ?  SIwpas has passed current CDI Web Profile TCK.Internally SIwpas uses Apache OpenWebBeans (http://openwebbeans.apache.org) project for supporting the core feautes of CDI specification.

Cool ha!

What does it mean?

It means that your next CDI application will run on any application server that has passed CDI Web Profile TCK :) No need to change any line of code... Promise of Java EE standards.

Enjoy!

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}