Package org.jbpm.pvm.internal.wire.descriptor

Examples of org.jbpm.pvm.internal.wire.descriptor.JndiDescriptor


  }

  public Object parse(Element element, Parse parse, Parser parser) {
    if (element.hasAttribute("jndi-name")) {
      String jndiName = element.getAttribute("jndi-name");
      return new JndiDescriptor(jndiName);

    } else {
      parse.addProblem("jndi requires attribute 'jndi-name'", element);
    }
View Full Code Here


      objectDescriptor.setClassName(JmsMessageSession.class.getName());
      objectDescriptor.addInjection("dbSession", new ContextTypeRefDescriptor(DbSession.class));
     
      if (element.hasAttribute("session-jndi")) {
        String jmsSessionJndiName = element.getAttribute("session-jndi");
        JndiDescriptor jndiDescriptor = new JndiDescriptor(jmsSessionJndiName);
        objectDescriptor.addInjection("jmsSession", jndiDescriptor);
      } else {
        parse.addProblem("attribute <"+XmlUtil.getTagLocalName(element)+" session-jndi=\"...\" is required when target=\"jms\"", element);
      }
     
      if (element.hasAttribute("destination-jndi")) {
        String jmsDestinationJndiName = element.getAttribute("destination-jndi");
        JndiDescriptor jndiDescriptor = new JndiDescriptor(jmsDestinationJndiName);
        objectDescriptor.addInjection("jmsDestination", jndiDescriptor);
      } else {
        parse.addProblem("attribute <"+XmlUtil.getTagLocalName(element)+" destination-jndi=\"...\" is required when target=\"jms\"", element);
      }
View Full Code Here

    Element homeElement = XmlUtil.element(element, "home");
    if (homeElement != null && homeElement.hasAttribute("jndi-name")) {
      homeJndiName = homeElement.getAttribute("jndi-name");
    }
    // inject home name
    descriptor.addInjection("commandExecutorHome", new JndiDescriptor(homeJndiName));
    return descriptor;
  }
View Full Code Here

    super("ejb-timer-session");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    ObjectDescriptor descriptor = new ObjectDescriptor(EjbTimerSession.class);
    descriptor.addInjection("timerHome", new JndiDescriptor(
        "java:comp/env/ejb/LocalTimer"));
    return descriptor;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.wire.descriptor.JndiDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.