All Examples This Package JMS Examples
examples.jms.topic.TopicSend
public static final String JNDI_FACTORYJMS_FACTORY
public static final String JMS_FACTORYTOPIC
public static final String TOPICtconFactory
protected TopicConnectionFactory tconFactorytcon
protected TopicConnection tcontsession
protected TopicSession tsessiontpublisher
protected TopicPublisher tpublishertopic
protected Topic topicmsg
protected TextMessage msg
public TopicSend()
public void init(Context ctx, String topicName) throws NamingException, JMSException
public void send(String message) throws JMSException
public void close() throws JMSException
public static void main(String args[]) throws ExceptionreadAndSend
protected static void readAndSend(TopicSend ts) throws IOException, JMSExceptiongetInitialContext
protected static InitialContext getInitialContext(String url) throws NamingException
All Examples This Package JMS Examples