Guest
Welcome login


TIBCOmmunity > Products > ActiveMatrix SOA > Conversations
Home   Members Communities
Conversations () Resources () Blogs ()

ActiveMatrix SOA

Up to Conversations in ActiveMatrix SOA

This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)

Standalone Deployment Archive build (preferably with Ant)

Created on: Mar 15, 2010 5:52 PM

Is there any way to perform a standalone (command-line) build of a Service Assembly Deployable Archive?

 

In my local help files, I found a reference to this process:

 

JAVA_HOME/bin/java -jar ENV_HOME/BusinessStudio/startup.jar
[-clean] -refresh -application com.tibco.matrix.ant.task.service.jbi.assembly.AMXCreateDeployableArchive
-data "workspacepath" -saf "serviceassemblypath" -archive "archivepath"

 

which seems to reference an Ant task. Is there any documentation for how I can use that Ant task directly? This documented approach also claims to require the Business Studio project to be open, etc., which we also really don't want.

 

Ideally, we'd be able to build on a system that doesn't even have BS installed, just some requisite jars copied over. But even if we have to install BS, we certainly don't want to have to have it running to perform automated builds.

 

(I did try running that command from the command line, but it's complaining about not being able to find my saf file, even though I fully-specified the path to it. There are spaces in some components of the path name, but I put double-quotes around those paths and even tried with the directory short-names.)

 

Click to view Setumadhav's profile Aficionado 183 posts since
Jul 11, 2008

This is how I get it done, and it works for me. Can you try this(if you havent already):

 

Scripted packaging:

 

java -jar <tibco-amx-home>\BusinessStudio\startup.jar -refresh -application com.tibco.matrix.ant.task.service.jbi.assembly.AMXCreateDeployableArchive -data "<workspace folder in these quotes>" -saf ".saf path in these quotes" -archive "final desired archive path in these quotes"

 

 

This should work. Try running the command from "amx\tibcojre\1.5.0\bin". For ex:

 

C:\tibcoamx\tibcojre\1.5.0\bin>java -jar C:\tibcoamx\BusinessStudio\startup.jar -refresh -application com.tibco.matrix.ant.task.service.jbi.assembly.AMXCreateDeployableArchive -data "C:\Documents and Settings\sekulkar\workspace" -saf "C:\Documents and Settings\sekulkar\workspace\com.tibco.amx.sample.helloworld.simple.java.soa\Dep loyment Packages\com.tibco.amx.sample.helloworld.simple.java.soa.saf" -archive "C:\Documents and Settings\sekulkar\workspace\com.tibco.amx.sample.helloworld.simple.java.soa\Dep loyment Packages\com.tibco.amx.sample.helloworld.simple.java.soa.zip"

 

Now to answer rest of your questions:

 

1. There is no need to keep the BS project open.

2. IMO, you can not use the ant task directly.

3. Theoretically, yes. If you have the required jars copied over, it should work. What these jars are is something we will need to figure out. Right now, to get to a point where your SA is created without an issue, install the design time component of AMX and then use the command line option.

 

HTH,

 

Setu

Click to view Setumadhav's profile Aficionado 183 posts since
Jul 11, 2008

Yes, thats the way to do it. Provide the complete path.

Click to view Ralph Palomar's profile Dabbler 5 posts since
Feb 14, 2010

works for me.. if the location of your project is outside your workspace, you can specify the relative path to the amx project, but you need to have that project imported without copyinng it into your workspace..I think you need not install Business Studio, just copy the folder .metadata and it will work..

 

for example::

java -jar %TIBCO_HOME%\BusinessStudio\startup.jar -refresh -application
com.tibco.matrix.ant.task.service.jbi.assembly.AMXCreateDeployableArchive -data C:\SIA -saf
"/SessionManagementService/Deployment Packages/Utilities/eCommerce/SessionManagement/SessionManagement.saf"
-archive "%AMXADMIN_HOME%\samples\SessionManagement\SessionManagement.zip"



More Like This

  • Retrieving data ...