Examples of Topic


Examples of com.m4f.business.domain.Topic

        this.course_eu.setProvider(school.getProvider());
        this.sb.toString();
      } else if(COURSE_GAIAK.equals(qName)) {
        this.topics = new ArrayList<String>();
      } else if(COURSE_GAIA.equals(qName)) {
        this.topic = new Topic();
      }
      this.sb.delete(0, this.sb.length());
    }
View Full Code Here

Examples of com.quui.chat.mind.Topic

                    throw new Exception(
                            "topics-file contains faulty <chat-answer>-elements (missing frequency-attributes)");
                }
            }
            Vector<String> k = new Vector<String>();
            Topic topic = new Topic(name, k, a);
            for (Iterator iter = keys.iterator(); iter.hasNext();) {
                Element element = (Element) iter.next();
                String key = element.getText();
                k.add(key);
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Topic

          dynamicGerritProject.setBranches(branches);
        } else if (SHORTNAME_TOPIC.equals(item)) { // Topic
            if (topics == null) {
                throw new ParseException("Line " + lineNr + ": attempt to use 'Topic' before 'Project'", lineNr);
            }
            Topic topic = new Topic(type, text);
            topics.add(topic);
            dynamicGerritProject.setTopics(topics);
        } else if (SHORTNAME_FILE.equals(item)) { // FilePath
          if (filePaths == null) {
            throw new ParseException("Line " + lineNr + ": attempt to use 'FilePath' before 'Project'", lineNr);
View Full Code Here

Examples of com.sun.messaging.Topic

            Destination destObj = null;
            if (refClassName.equals(com.sun.messaging.Queue.class.getName())) {
                destObj = new Queue();
            } else {
                if (refClassName.equals(com.sun.messaging.Topic.class.getName())) {
                    destObj = new Topic();
                } else {
                    throw new MissingVersionNumberException();
                }
            }
            //version number MUST exist and it MUST be the same as AO_VERSION_STR_JMQ1
View Full Code Here

Examples of com.testdomain.Topic

    Iterator indexIterator = groupedResult.iterator();
    while (indexIterator.hasNext()) {
      ArticleIndex articleIndex = (ArticleIndex) indexIterator.next();
      Iterator topicIterator = articleIndex.getTopics().iterator();
      while (topicIterator.hasNext()) {
        Topic topic = (Topic) topicIterator.next();
        Iterator descriptionIterator = topic.getDescriptionList().iterator();
        while (descriptionIterator.hasNext()) {
          TopicDescription desc = (TopicDescription) descriptionIterator.next();

          // Put a flattened key in the hashMap
          test.put(articleIndex.getCategoryTitle() + "||" +
              topic.getTopicTitle() + "||" +
              desc.getDescription(), null);
        }
      }
    }
View Full Code Here

Examples of javax.jms.Topic

  public static void main(String[] args) throws Exception {
    System.out.println("Subscribes and listens to the topic...");

    ictx = new InitialContext();
    Topic topic = (Topic) ictx.lookup("topic");
    ConnectionFactory tcf = (ConnectionFactory) ictx.lookup("tcf");
    ictx.close();

    Connection cnx = tcf.createConnection();
    Session session = cnx.createSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
View Full Code Here

Examples of javax.jms.Topic

  static Context ictx = null;

  public static void main(String[] args) throws Exception {
   
    ConnectionFactory cf = null;
    Topic dest = null;

    if (args.length != 1)
     throw new Exception("Bad number of argument");

    ictx = new InitialContext();
View Full Code Here

Examples of javax.jms.Topic

  public static void main(String[] args) throws Exception {
    System.out.println();
    System.out.println("Listens to the monitoring topic...");

    Context ictx = new InitialContext();
    Topic topic = (Topic) ictx.lookup("MonitoringTopic");
    ConnectionFactory cf = (ConnectionFactory) ictx.lookup("cf");
    ictx.close();

    Connection cnx = cf.createConnection();
    Session sess = cnx.createSession(false, Session.AUTO_ACKNOWLEDGE);
View Full Code Here

Examples of javax.jms.Topic

      ja.start(bt);
      System.out.println("start ...");
    
      Context ictx = new InitialContext();
      Queue queue = (Queue) ictx.lookup("queue");
      Topic topic = (Topic) ictx.lookup("topic");
    
      ictx.close();

      ManagedConnectionFactoryImpl mcf = new ManagedConnectionFactoryImpl();
      mcf.setResourceAdapter(ja);
View Full Code Here

Examples of javax.jms.Topic

    props.put("java.naming.factory.initial","fr.dyade.aaa.jndi2.haclient.HANamingContextFactory");
    props.put("java.naming.provider.url","hascn://localhost:16400,localhost:16410");
   
    javax.naming.Context jndiCtx = new javax.naming.InitialContext(props);
    javax.jms.TopicConnectionFactory tcf = (javax.jms.TopicConnectionFactory) jndiCtx.lookup("tcf");
    Topic topic = (Topic) jndiCtx.lookup("topic");
    jndiCtx.close();
   
    Connection cnx = tcf.createConnection("anonymous", "anonymous");
    Session sess = cnx.createSession(false, Session.AUTO_ACKNOWLEDGE);
    MessageConsumer sub = sess.createConsumer(topic);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.