5 Replies Latest reply on Mar 28, 2007 3:39 PM by gavin.king

    Seam + jBPM + JNDI

    viniciuscarvalho

      I have another (totally confusing) topic regarding this, let me rephrase in a at least human readable form...
      I need to use jbpm with Seam, but I need to use a configuration registred on the JNDI, I won't be including my jpdl inside my ear.
      So I start digging seam code and found the BusinessProcessInterceptor->BusnessProcess->ManagedJbpmContext->Jbpm
      all under org/jboss/seam/core
      Reading thoses classes I got a good view of how does seam binds the process into its context. I've seen a

      protected void setJbpmConfigurationJndiName(String jbpmConfigurationJndiName)
       {
       this.jbpmConfigurationJndiName = jbpmConfigurationJndiName;
       }
      


      So here's what I'd like to know: Is it possible to point to a different jbpmConfiguration instead of providing the jpdls and jbpm.cfg?

      Regards

        • 1. Re: Seam + jBPM + JNDI
          gavin.king

          You can deploy your jPDL anyhoo you like. Seam doesn't need to know anything about it (jBPM reads it from the process definitions from the database).

          • 2. Re: Seam + jBPM + JNDI
            viniciuscarvalho

             

            "gavin.king@jboss.com" wrote:
            You can deploy your jPDL anyhoo you like. Seam doesn't need to know anything about it (jBPM reads it from the process definitions from the database).

            Thanks Gavin. Just another one (this might be more a jbpm question, but since you seem to be a kind of oracle (matrix way, not the evil company) I wonder if you might help me out).
            Ok, so let's suppose I have a jar with my process and 2 seam ears application. The applications interact with the process where each one is responsible for certain tasks.
            Considering that seam uses the jbpm context reading the process from the database, does it means that all 3 applications must be pointing to the same DB?
            Another thing that I did not understand (sorry for the stupid mode=on) is
            The most important thing to notice here is that jBPM transaction control is disabled. Seam or EJB3 should control the JTA transactions.

            So I'll have 3 independent jbpm contexts on my JBoss at a same time?

            All this mess is because I wanna show in a presentation the SOA stack with JBoss, and having a process defined where many applications can interact plus the jbpm console showing the exact place of the execution will cause a really, really nice impression of JBoss SOA stack within our customers

            Regards

            • 3. Re: Seam + jBPM + JNDI
              gavin.king

              I don't follow you.

              • 4. Re: Seam + jBPM + JNDI
                viniciuscarvalho

                 

                "gavin.king@jboss.com" wrote:
                I don't follow you.

                Me neither... Sorry for the mess
                Ok, simple way:

                I have "n" seam applications with separate persistence units.
                I have one process deployed through jbpmconsole with its own persistence unit

                How can those seam applications interact with the process? Is it possible to have one application start the process and others end/trigger actions?

                Regards


                • 5. Re: Seam + jBPM + JNDI
                  gavin.king

                  yes. they just need to share the same database.