cancel
Showing results for 
Search instead for 
Did you mean: 

tomcat/engine usage - how do i write & deploy web apps(Java)

activiti-admin
Champ in-the-making
Champ in-the-making
How do i take an example & make it web app ?

or how do i write my own Web App that creates&deploys a process?

how do i deply java web apps into tomcat/activiti engine?

help!
5 REPLIES 5

activiti-admin
Champ in-the-making
Champ in-the-making
RTFM:

http://www.catb.org/~esr/faqs/smart-questions.html#rtfm

Oh, the freaking manual is missing that point?

Well, then ask at the discussion board. And make sure you're asking the same question five times, at least. :mrgreen:

- Seriously again, Activiti currently does not really provide information on that issue: Apparently, they do suppose their users to deploy .bar files (containing BPMN process definitions) to the Activiti Explorer, only.

jbarrez
Star Contributor
Star Contributor
Activiti is a plain jar. Adding it to a webapp should is as easy as adding any other jar.

The Activiti Explorer is an example of such an application, but we are not mandating our end-users use Explorer.
Activiti can be used withing any Java environment (Swing, Tomcat, JBoss, WebLogic, etc.) - that's the power of Activiti.

activiti-admin
Champ in-the-making
Champ in-the-making
1. activiti.jar - i don't find any such file!
which jar are you talking about?
   are u talking about activiti-engine-init.war (servlet) ?

2.
sorry, i confused the explorer with the engine.

3.
still, could you list steps whereby i can write a tomcat-servlet application, that uses the
Activiti engine?

thanks.

ccappuccino
Champ in-the-making
Champ in-the-making
1. activiti.jar - i don't find any such file!
which jar are you talking about?
   are u talking about activiti-engine-init.war (servlet) ?
No, my brother, we ARE NOT talking about ctiviti-engine-init.war.
activiti.jar just IS activiti.jar.
You NEED run this command: 'ant cfg.create' and you will find the activiti.jar at this path: '${activiti.home}/setup/build/activiti-cfg.jar'.
And my suggestion is: you can read this code in build.xml and then you will understand many more.
[size=150]<target name="cfg.create">
  <mkdir dir="${activiti.home}/setup/build/activiti-cfg" />
  <copy todir="${activiti.home}/setup/build/activiti-cfg" overwrite="true">
      <filterset filtersfile="build.${db}.properties" />
   <fileset dir="files/cfg.activiti/${tx}" />
  </copy>
  <jar destfile="${activiti.home}/setup/build/activiti-cfg.jar">
   <fileset dir="${activiti.home}/setup/build/activiti-cfg" />
  </jar>
</target>
[/size]

2.
sorry, i confused the explorer with the engine.
Oh, my God, Almost I have noting to say, Hehe.
The 'Explorer with Engine', just like 'Oracle DB (Engine) with its Enterprise Management Console';
You can use the 'Enterprise Management Console' to view/operate/monitor the information coming from Oracle DB (Engine)…;
But you also CAN NOT use 'Enterprise Management Console', you can choose PLSQL/Toad or other tools to view/operate/monitor the DB's information.
So, this is the relationship between Explorer and Engine!!!
If you wanna, you can write your self's Explorer to replace the default explorer for End-User (Start/claim/complete the tasks and other complex functions……….i.e. not only can integrate a form and some variables but also……………….. incredible)

3.
still, could you list steps whereby i can write a tomcat-servlet application, that uses the
Activiti engine?

thanks.
Sorry, I could not.
But I have a suggestion, you can refer to 'org.activiti.impl.servlet.ProcessEnginesServlet'.
:evil:  :twisted: Sorry, I can't attache that Java Class. You'd better download it from the SVN

jamesmartin057
Champ in-the-making
Champ in-the-making
Can some one tell me more detail about how to deploy <a href="http://www.cygnismedia.com/web-application/">web application</a>(Java) because i am developing an app on java and i need more information to learn and develop web app.