While developing WSO2 QA test framework (which is based on selenium RC), we wanted to give users the choice of selecting test cases without running whole suite at once. Our plan was to pass a system property during maven test run. However, passing a system property directly through command line does not work since the surefire plugin is run under a different JVM instance that is launched by Maven.
In order to overcome this, maven surefire plugin can be configured as follows by specifying the required system property.
<systemProperties>
<property>
<name>test.suite</name>
<value>${test.suite}</value>
</property>
</systemProperties>
According to this example configuration, we can run test suite with passing a system property as follows.
'mvn clean install -Dtest.suite=test-case'
Friday, October 16, 2009
Saturday, October 10, 2009
The newest version (2.0.1) of WSO2 carbon family of prodcuts released!!
The latest version of WSO2 carbon based products were released yesterday. More info can be found at http://wso2.org/projects/carbon
New Features in This Release
----------------------------
* Improved transaction support.
* Improved Support for deploying on top of WebSphere, WebLogic, and
JBoss.
* P2 based provisioning for WSO2 Carbon family of products.
* Numerous bug fixes.
New Features in This Release
----------------------------
* Improved transaction support.
* Improved Support for deploying on top of WebSphere, WebLogic, and
JBoss.
* P2 based provisioning for WSO2 Carbon family of products.
* Numerous bug fixes.
Wednesday, September 30, 2009
How to run multiple WSO2 WSAS instances in a single host
I have published a simple three step tutorial on running multiple WSO2 WSAS instances in a single host in WSO2 Oxygen Tank. Have a look!
Wednesday, September 16, 2009
How to enable JMS in WSO2 WSAS-3.*
WSO2 WSAS provides with a simple and easily configurable UI to enable transports. In this post, we are going to look at how JMS is enabled in WSAS-3.* versions.
Pre-requisites:
----------------
You can use any JMS provider as you preferred. I'm going to use Apache ActiveMQ-5.2.0 for this example.
Download the latest version of WSO2 WSAS from here
Step 1
-------
Suppose you have downloaded WSO2 WSAS-3.* and extracted in to a directory in your file system. Let it be WSAS_HOME
First, we need to start ActiveMQ message broker. Go to ActiveMQ_Install_dir/bin and run activemq.bat
Also, the following ActiveMQ libraries must be copied to WSAS_HOME/repository/components/lib directory
Step 2
-------
Log in to WSAS management console (username=admin, password=admin) and click on Manage --> Transports at the left navigation menu.
You will be directed to the Transport Management page as follows.

Step 3
-------
Locate JMS transport in the above Transport Management page and click on enable next to transportListener
Following page will be shown where you can configure JMS listener according to your JMS provider.

similarly, you can enable JMSSender.
If JMS is configured correctly as in the above steps, you will see the JMS endpoints of your service will be shown in the WSDLs or service dashboard as follows.
Pre-requisites:
----------------
You can use any JMS provider as you preferred. I'm going to use Apache ActiveMQ-5.2.0 for this example.
Download the latest version of WSO2 WSAS from here
Step 1
-------
Suppose you have downloaded WSO2 WSAS-3.* and extracted in to a directory in your file system. Let it be WSAS_HOME
First, we need to start ActiveMQ message broker. Go to ActiveMQ_Install_dir/bin and run activemq.bat
Also, the following ActiveMQ libraries must be copied to WSAS_HOME/repository/components/lib directory
- activeio-core-3.1-SNAPSHOT.jar (ActiveMQ_Install_dir\lib\optional)
- activemq-core-5.0.0.jar (ActiveMQ_Install_dir\lib\)
- geronimo-j2ee-management_1.0_spec-1.0.jar (ActiveMQ_Install_dir\lib\)
- geronimo-jms_1.1_spec-1.0.jar (ActiveMQ_Install_dir\lib\)
Step 2
-------
Log in to WSAS management console (username=admin, password=admin) and click on Manage --> Transports at the left navigation menu.
You will be directed to the Transport Management page as follows.
Step 3
-------
Locate JMS transport in the above Transport Management page and click on enable next to transportListener
Following page will be shown where you can configure JMS listener according to your JMS provider.
similarly, you can enable JMSSender.
If JMS is configured correctly as in the above steps, you will see the JMS endpoints of your service will be shown in the WSDLs or service dashboard as follows.
Monday, September 7, 2009
WSO2 Carbon is among InfoWorlds best open source software
WSO2 has been named an InfoWorld 2009 Best of Open Source Software (Bossie) Award winner.
http://www.infoworld.com/d/open-source/best-open-source-platforms-and-middleware-758?current=9&last=8?r=76
Proud to be a member of the award winning team :)
http://www.infoworld.com/d/open-source/best-open-source-platforms-and-middleware-758?current=9&last=8?r=76
Proud to be a member of the award winning team :)
Friday, August 28, 2009
Where to put third party jars in WSO2 WSAS?
In the pre-carbon versions of WSO2 WSAS (2.* and older), you may have used WSAS_HOME/lib/extensions directory to put third party jars such as jdbc drivers.
After WSO2 WSAS became a part of WSO2 Carbon platform, a.k.a WSAS-3.* versions, all third party jars should be placed inside WSAS_HOME/repostiroy/components/lib directory of your WSAS distribution.
**This is applicable to all WSO2 Carbon products (WSAS, ESB, G-reg, IS, BPS)
After WSO2 WSAS became a part of WSO2 Carbon platform, a.k.a WSAS-3.* versions, all third party jars should be placed inside WSAS_HOME/repostiroy/components/lib directory of your WSAS distribution.
**This is applicable to all WSO2 Carbon products (WSAS, ESB, G-reg, IS, BPS)
Remotely starting OSGI console when WSO2 Carbon runs on an application server
When WSO2 Carbon based product (WSAS, ESB, G-reg, BPS, IS) runs in standalone mode, you can start server with equinox OSGI console just by issuing -DosgiConsole system property.
wso2server.bat -DosgiConsole
How do you connect to OSGI console when you are running Carbon on an application server such as WebSphere or WebLogic (or tomcat, JBoss etc..)?
1. Open WEB-INF/web.xml file of the carbon web application
2. Uncomment the following element
<init-param>
<param-name>osgiConsole</param-name>
<param-value>-console 19444</param-value>
</init-param>
3. Now restart carbon with these settings.
4. Open a new command window/shell and connect to osgiConsole using telnet as follows
telnet localhost 19444
wso2server.bat -DosgiConsole
How do you connect to OSGI console when you are running Carbon on an application server such as WebSphere or WebLogic (or tomcat, JBoss etc..)?
1. Open WEB-INF/web.xml file of the carbon web application
2. Uncomment the following element
<init-param>
<param-name>osgiConsole</param-name>
<param-value>-console 19444</param-value>
</init-param>
3. Now restart carbon with these settings.
4. Open a new command window/shell and connect to osgiConsole using telnet as follows
telnet localhost 19444
Subscribe to:
Posts (Atom)