~~NOTOC~~
====== How to deploy a jSeduite BPEL Process ======
BPEL processes are bundled into JBI components, and deployed as JBI assemblies. Assemblies life cycle is particular:
* After deployment, you'll have to ''Start'' an assembly before using it.
* Before un-deployment, you'll have to shut it down (''Shutdown'', not ''Stop'' or ''Disable'').
===== Using Glassfish Console Interface =====
If ''asadmin'' can be reached from your ''$PATH'' environment variable, you can use it to deploy and then start a jbi service assembly using the following commands:
asadmin deploy-jbi-service-assembly JBIComponent.zip
asadmin start-jbi-service-assembly JBIComponent
For example, to deploy the ''FeedReader'' BPEL process, use the following commands:
asadmin deploy-jbi-service-assembly FeedReaderComponent-v1.0.zip
asadmin start-jbi-service-assembly FeedReaderComponent
===== Using Glassfish Admin WebApp =====
* Click on ''JBI'' and then ''Service Assemblies'' on the left panel
* Choose ''Deploy''
* Fill the first form by choosing the zip file you want to upload
{{ :cookbook:deploy_jbi_step1.png |}}
* Click ''Next'' and then ''Finish''.