KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > jms > Session

javax.jms
Interface Session

All Superinterfaces:
Runnable
All Known Subinterfaces:
QueueSession, TopicSession, XAQueueSession, XASession, XATopicSession
See Also:
Top Examples, Source Code

public static final int AUTO_ACKNOWLEDGE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int CLIENT_ACKNOWLEDGE
See Also:
Message.acknowledge()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void close()
           throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void commit()
            throws JMSException
See Also:
IllegalStateException, TransactionRolledBackException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QueueBrowser createBrowser(Queue queue)
                           throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QueueBrowser createBrowser(Queue queue,
                                  String messageSelector)
                           throws JMSException
See Also:
InvalidSelectorException, InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BytesMessage createBytesMessage()
                                throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MessageConsumer createConsumer(Destination destination)
                               throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MessageConsumer createConsumer(Destination destination,
                                      String messageSelector)
                               throws JMSException
See Also:
InvalidSelectorException, InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MessageConsumer createConsumer(Destination destination,
                                      String messageSelector,
                                      boolean NoLocal)
                               throws JMSException
See Also:
InvalidSelectorException, InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TopicSubscriber createDurableSubscriber(Topic topic,
                                               String name)
                                        throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TopicSubscriber createDurableSubscriber(Topic topic,
                                               String name,
                                               String messageSelector,
                                               boolean noLocal)
                                        throws JMSException
See Also:
InvalidSelectorException, InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MapMessage createMapMessage()
                            throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Message createMessage()
                      throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[868]Creates a sample SOAP message using SAAJ
By Anonymous on 2004/08/25 08:49:48  Rate
/** Creates a sample SOAP message using SAAJ 
 * "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + 
 * "<soap-env:Envelope xmlns:soap-env= \ 
 * "http://schemas.xmlsoap.org/soap/envelope/\">" + 
 * "<soap-env:Header/>" + 
 * "<soap-env:Body>" + 
 * "<po:PurchaseOrder xmlns:po= 
 * \"http://www.KickJava.com/schema\">"+ 
 * "<senderid>m</senderid>"+ 
 * "</po:PurchaseOrder>"+ 
 * "</soap-env:Body>"+ 
 * "</soap-env:Envelope>" 
 * @return  String representation of the SOAP  
 * message 
 * @throws SOAPException 
 */
 
  
  
 public static SOAPMessage createSOAPMessage (  )   
   throws SOAPException  {  
   MessageFactory msgFactory =  
     MessageFactory.newInstance (  ) ; 
   // Create a message 
   SOAPMessage msg = msgFactory.createMessage (  ) ; 
   // Create an envelope in the message 
   SOAPEnvelope envelope =  
     msg.getSOAPPart (  ) .getEnvelope (  ) ; 
   // Get hold of the the body 
   SOAPBody body = envelope.getBody (  ) ; 
   body.addChildElement ( envelope.createName (  
     "PurchaseOrder", "po", 
     "http://www.KickJava.com/schema" )  )  
     .addChildElement ( envelope.createName (  
     "senderid" )  )  
     .addTextNode (  
     "myuserid@kickjava.com" ) ; 
   return msg; 
  } 


public ObjectMessage createObjectMessage()
                                  throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ObjectMessage createObjectMessage(Serializable object)
                                  throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MessageProducer createProducer(Destination destination)
                               throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Queue createQueue(String queueName)
                  throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public StreamMessage createStreamMessage()
                                  throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TemporaryQueue createTemporaryQueue()
                                    throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TemporaryTopic createTemporaryTopic()
                                    throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TextMessage createTextMessage()
                              throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TextMessage createTextMessage(String text)
                              throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Topic createTopic(String topicName)
                  throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int DUPS_OK_ACKNOWLEDGE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getAcknowledgeMode()
                       throws JMSException
See Also:
Connection.createSession(boolean, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public MessageListener getMessageListener()
                                   throws JMSException
See Also:
ServerSession, ServerSessionPool, setMessageListener(javax.jms.MessageListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getTransacted()
                      throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void recover()
             throws JMSException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void rollback()
              throws JMSException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void run()
See Also:
ServerSession, Runnable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int SESSION_TRANSACTED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setMessageListener(MessageListener listener)
                        throws JMSException
See Also:
ServerSession, ServerSessionPool, getMessageListener()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void unsubscribe(String name)
                 throws JMSException
See Also:
InvalidDestinationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags