/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing a * <CODE>URL</CODE> which points to some network addressible BLOB. * * @param url the network addressable URL used to pass directly to the * consumer * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(URL url) throws JMSException { return createBlobMessage(url, false); }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing a * <CODE>URL</CODE> which points to some network addressible BLOB. * * @param url the network addressable URL used to pass directly to the * consumer * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(URL url) throws JMSException { return createBlobMessage(url, false); }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing a * <CODE>URL</CODE> which points to some network addressible BLOB. * * @param url the network addressable URL used to pass directly to the * consumer * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(URL url) throws JMSException { return createBlobMessage(url, false); }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing a * <CODE>URL</CODE> which points to some network addressible BLOB. * * @param url the network addressable URL used to pass directly to the * consumer * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(URL url) throws JMSException { return createBlobMessage(url, false); }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing a * <CODE>URL</CODE> which points to some network addressible BLOB. * * @param url the network addressable URL used to pass directly to the * consumer * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(URL url) throws JMSException { return createBlobMessage(url, false); }
blobMessage = amqSession.createBlobMessage(new MimeMessageInputStream(mail.getMessage()));
@Override protected Message copy(Session session, Message m) throws JMSException { if (m instanceof ActiveMQBlobMessage) { ActiveMQBlobMessage b = (ActiveMQBlobMessage) m; ActiveMQBlobMessage copy = (ActiveMQBlobMessage) getAMQSession(session).createBlobMessage(b.getURL()); try { copy.setProperties(b.getProperties()); } catch (IOException e) { throw JMSExceptionSupport.create("Unable to copy message " + m, e); } return copy; } else { return super.copy(session, m); } }