AnsweredAssumed Answered

Deploying from database

Question asked by hmandic on Dec 14, 2011
Hi, newbie here…  :)

So, here's my first question: is there a way to "manually" deploy business archive (.bar) from the database?

The way it works (as I see it) is that the first time I load the archive with

repositoryService.createDeployment().addZipInputStream(new ZipInputStream(new FileInputStream(barFile))).deploy();

it gets stored in the database. After that I don't need to load that same file again as it will be deployed from the database the first time a process is needed (called by runtimeService). But I would like to deploy it before that, ie. when my app server starts, so I dont have to wait for all the process definitions and rules to load.

Outcomes