Package net.timewalker.ffmq3

Examples of net.timewalker.ffmq3.FFMQException


            return null;
        if (value instanceof Number)
            return ArithmeticUtils.normalize((Number)value);
       
        throw new FFMQException("Expected a numeric but got : "+value.toString(),"INVALID_SELECTOR_EXPRESSION");
    }
View Full Code Here


            return null;
       
        if (value instanceof String)
            return (String)value;
       
        throw new FFMQException("Expected a string but got : "+value.toString(),"INVALID_SELECTOR_EXPRESSION");
    }
View Full Code Here

     */
    public final void setDeliveryMode(int deliveryMode) throws JMSException
    {
        if (deliveryMode != DeliveryMode.PERSISTENT &&
            deliveryMode != DeliveryMode.NON_PERSISTENT)
            throw new FFMQException("Invalid delivery mode : "+deliveryMode,"INVALID_DELIVERY_MODE");
       
        this.defaultDeliveryMode = deliveryMode;
    }
View Full Code Here

     * @see javax.jms.MessageProducer#setPriority(int)
     */
    public final void setPriority(int priority) throws JMSException
    {
        if (priority < 0 || priority > 9)
            throw new FFMQException("Invalid priority value : "+priority,"INVALID_PRIORITY");
       
        this.defaultPriority = priority;
    }
View Full Code Here

            {
                return createSSLContext().getSocketFactory().createSocket();
            }
            catch (IOException e)
            {
                throw new FFMQException("Cannot create SSL socket","TRANSPORT_ERROR",e);
            }
        }
        else
            return new Socket();
    }
View Full Code Here

           
            return sslContext;
        }
        catch (Exception e)
        {
            throw new FFMQException("Cannot create SSL context","TRANSPORT_ERROR",e);
        }
    }
View Full Code Here

        {
          return SerializationTools.fromByteArray(body);
        }
        catch (Exception e)
        {
          throw new FFMQException("Cannot deserialize object message body","MESSAGE_ERROR",e);
        }
    }
View Full Code Here

        {
          body = SerializationTools.toByteArray(object);
        }
        catch (Exception e)
        {
          throw new FFMQException("Cannot serialize object message body","MESSAGE_ERROR",e);
        }
    }
View Full Code Here

     * @see javax.jms.MapMessage#getObject(java.lang.String)
     */
    public Object getObject(String name) throws JMSException
    {
        if (name == null || name.length() == 0)
            throw new FFMQException("Object name cannot be null or empty","INVALID_OBJECT_NAME");
           
        return body != null ? body.get(name) : null;
    }
View Full Code Here

     * @see javax.jms.MapMessage#itemExists(java.lang.String)
     */
    public boolean itemExists(String name) throws JMSException
    {
        if (name == null || name.length() == 0)
            throw new FFMQException("Object name cannot be null or empty","INVALID_OBJECT_NAME");
       
        return body != null ? body.containsKey(name) : false;
    }
View Full Code Here

TOP

Related Classes of net.timewalker.ffmq3.FFMQException

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.