We're updating the issue view to help you get more done. 

JMS configuration generation with multiple parameters doesn't work properly


See: https://groups.google.com/forum/#!topic/codehaus-cargo/fWq-GIAlb-U

In https://codehaus-cargo.github.io/cargo/DataSource+and+Resource+Support#DataSourceandResourceSupport-JMSresourceproperties it is stated in section JMS resource properties

1 c.r.parameters - Properties to to populate the class with - Semi-colon delimited string; must correspond to setters - optional

This means the semi-colon should be used as a delimiter.

So, with cargo 1.6.8 maven 3.1.0 plugin to deploy in Oracle GlassFish Server (build 1), in the project's pom.xml first I was defining:

1 2 3 4 5 <cargo.resource.resource.jms.CmfWebConnectionFactory> cargo.resource.name=jms/CmfWebConnectionFactory cargo.resource.type=javax.jms.QueueConnectionFactory cargo.resource.parameters=steady-pool-size=2;fail-all-connections=true;transaction-support=XATransaction; is-connection-validation-required=true </cargo.resource.resource.jms.CmfWebConnectionFactory>

but I was getting the error

1 Caused by: org.codehaus.cargo.util.CargoException: At least one GlassFish deployment has failed: org.codehaus.cargo.util.CargoException: GlassFish admin command with args (--interactive=false --host localhost --port 4848 --user admin --passwordfile C:\dev\dist\cargo\configurations\glassfish3x\password.properties create-jms-resource --restype javax.jms.QueueConnectionFactory --property=is-connection-validation-required=true--property=steady-pool-size=2--property=transaction-support=XATransaction--property=fail-all-connections=true jms/CmfWebConnectionFactory) failed: asadmin exited 1

Can this please be fixed?

Workaround: When I changed from ; to : (semi-colon to colon) was I able to get the configuration done.



S. Ali Tokmen


S. Ali Tokmen


Fix versions

Affects versions