This does not create SQS Queue. This method is only to create JMS Queue Object.
Make sure the queue exists corresponding to the queueName.
@param queueName
@return a queue destination
@throws JMSException
If session is closed or invalid queue is provided
964678
@Override
    public Queue createQueue(String queueName) throws JMSException {
        checkClosed();
        return new SQSQueueDestination(queueName, amazonSQSClient.getQueueUrl(queueName).getQueueUrl());
    }
1279036
public static QueuedMessage createSIBQueuedMessage(SIMPQueuedMessageControllable qmc) {

        String id = null;
        int jsApproximateLength = 0;
        String name = null;
        String state = null;
        String transactionId = null;
        String type = null;
        String busSystemMessageId = null;

        id = qmc.getId();
        name = qmc.getName();
        state = null;
        transactionId = null;

        try {
            if (qmc.getState() != null) {
                state = qmc.getState().toString();
            }
            transactionId = qmc.getTransactionId();
        } catch (SIMPException e) {
            // No FFDC code needed
        }

        try {
            JsMessage jsMessage = qmc.getJsMessage();
            jsApproximateLength = jsMessage.getApproximateLength();
            busSystemMessageId = jsMessage.getSystemMessageId();
            type = jsMessage.getJsMessageType().toString();
        } catch (SIMPControllableNotFoundException e) {
            // No FFDC code needed
        } catch (SIMPException e) {
            // No FFDC code needed
        }

        return new QueuedMessage(id, name, jsApproximateLength, state, transactionId, type, busSystemMessageId);
    }
1193237
public final void checkTemporaryDestinationScope( Destination destination ) throws JMSException
    {
    	if (destination instanceof LocalQueue)
    	{
    		LocalQueue localQueue = (LocalQueue)destination; 
	        if (localQueue.isTemporary() && !connection.isRegisteredTemporaryQueue(localQueue.getQueueName()))
	       		throw new IllegalStateException("Temporary queue does not belong to session's connection.");
    	}
    	else
    	if (destination instanceof LocalTopic)
    	{	
    		LocalTopic localTopic = (LocalTopic)destination; 
	        if (localTopic.isTemporary() && !connection.isRegisteredTemporaryTopic(localTopic.getTopicName()))
	       		throw new IllegalStateException("Temporary topic does not belong to session's connection.");
    	}
    	else
    		throw new FFMQException("Unexpected destination type : "+destination,"INTERNAL_ERROR");
    }
331167
@Override
    public void setTemporaryQueueNamePrefix(final String prefix)
                    throws JMSException {
         
          temporaryQueueNamePrefix = prefix;
         // defect 99056
        _properties.put(JmsraConstants.TEMP_QUEUE_NAME_PREFIX, prefix);

        if ((prefix != null) && (prefix.length() > 12)) {

            final JMSException exception = new JMSException(NLS
                            .getFormattedMessage(("DESTINATION_PREFIX_LONG_CWSJR1025"),
                                                 new Object[] { prefix }, null));
            if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
                SibTr.exception(this, TRACE, exception);
            }
            throw exception;
        }

    }
756298
private void purgeQueue(Queue queue, Session session) throws JMSException {
        purgeDestination(queue, session, queue.getQueueName());
    }
3956
private Controllable createQueueMBean(Controllable c) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "createQueuePointMBean", new Object[] { c });
        JsQueue qp = new JsQueue(_me, c);
        controllableMap.put(c, qp);

        try {
            Dictionary<String, Object> properties = new Hashtable<String, Object>();
            properties.put("service.vendor", "IBM");
            String cName = c.getName();
            properties.put("jmx.objectname", "WebSphere:feature=wasJmsServer,type=Queue,name=" + cName);
            ServiceRegistration<QueueMBean> qMbean = (ServiceRegistration<QueueMBean>) bcontext.registerService(QueueMBean.class.getName(), qp, properties);
            serviceObjects.put(cName, qMbean);
        } catch (Exception e) {
            SibTr.exception(tc, e);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "createQueuePointMBean", new Object[] { qp });
        return qp;

    }
1276405
private void purgeQueue(String queueName, Session session) throws JMSException {
        purgeDestination(getDestination(session, queueName), session, queueName);
    }
506502
private static com.enioka.jqm.api.Queue getQueue(Queue queue)
    {
        com.enioka.jqm.api.Queue q = new com.enioka.jqm.api.Queue();

        q.setDescription(queue.getDescription());
        q.setId(queue.getId());
        q.setName(queue.getName());

        return q;
    }
678090
protected final void deleteQueue( String queueName ) throws JMSException
    {
    	transactionSet.removeUpdatesForQueue(queueName);
        engine.deleteQueue(queueName);
    }
743688
@Override
    public Queue getQueue() throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getQueue");
        Queue q = (Queue) theDestination;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getQueue", q);
        return q;
    }
403567
public QueueDefinition createQueueDefinition( String queueName , boolean temporary )
    {
        QueueDefinition def = new QueueDefinition();
        def.setName(queueName);
        def.setTemporary(temporary);
        copyAttributesTo(def);
        
        return def;
    }
875377
public Destination getDestination(String destName)
            throws MessagingException {
        Destination destination = null;
        JMSDestination jmsDest = getJMSDestination(destName);
        if(jmsDest != null) {
            destination = jmsDest.destination;
        }
        return destination;
    }
320570
public QueueModel create() throws IOException {
        String url = "queues/" + name;
        IronReader reader = client.put(url, "{}");
        QueueContainer container = gson.fromJson(reader.reader, QueueContainer.class);
        reader.close();
        return container.getQueue();
    }
1104935
@Override
    public JmsTopic createTopic(String name) throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "createTopic", name);
        JmsTopic topic = null;

        // if name string is null throw exception
        if (name == null) {
            throw (InvalidDestinationException) JmsErrorUtils.newThrowable(
                                                                           InvalidDestinationException.class,
                                                                           "INVALID_VALUE_CWSIA0003",
                                                                           new Object[] { "Topic name", null },
                                                                           tc
                            );
        }

        // if name is "queue://" throw exception
        if (name != null && name.startsWith(JmsQueueImpl.QUEUE_PREFIX)) {
            throw (InvalidDestinationException) JmsErrorUtils.newThrowable(
                                                                           InvalidDestinationException.class,
                                                                           "MALFORMED_DESCRIPTOR_CWSIA0047",
                                                                           new Object[] { "Topic", name },
                                                                           tc
                            );
        }

        name = name.trim();
        topic = (JmsTopic) destCreator.createDestinationFromString(name, URIDestinationCreator.DestType.TOPIC);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "createTopic", topic);
        return topic;
    }
400141
@Override
    protected Object openConnection() throws ConnectionException {
        qConnection = null;
        qSession = null;
        queue = null;
        try {
            String server_url = this.getAttributeValueSmart(SERVER_URL);
            if ("THIS_SERVER".equals(server_url)) server_url = null;
            String queue_name = this.getQueueName();
            JMSServices jmsServices = JMSServices.getInstance();
            QueueConnectionFactory qFactory = jmsServices.getQueueConnectionFactory(server_url);
            qConnection = qFactory.createQueueConnection();
            qSession = qConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
            qConnection.start();
            queue = jmsServices.getQueue(qSession, queue_name);
        } catch (Exception e) {
            logger.severeException("Exception in JmsAdapter.openConnection()" , e);
            throw new ConnectionException(ConnectionException.CONNECTION_DOWN, "Exception in invoking JmsAdapter" , e);

        }
        return qSession;
    }
690482
@Override
	protected final AbstractMessage receiveFromDestination(long timeout, boolean duplicateRequired) throws JMSException
    {
        if (closed)
            return null; // [JMS SPEC]

        // Get something from preftech queue
        return getFromPrefetchQueue(timeout);
    }
1342494
@Override
    public JmsQueue createQueue(String name) throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "createQueue", name);
        JmsQueue queue = null;

        // if name string is null, empty or just "queue://", throw exception
        if ((name == null) || ("".equals(name)) || (JmsQueueImpl.QUEUE_PREFIX.equals(name))) {
            throw (InvalidDestinationException) JmsErrorUtils.newThrowable(
                                                                           InvalidDestinationException.class,
                                                                           "INVALID_VALUE_CWSIA0003",
                                                                           new Object[] { "Queue name", name },
                                                                           tc
                            );
        }

        // if name is "topic://" throw exception
        if (name.startsWith(JmsTopicImpl.TOPIC_PREFIX)) {
            throw (InvalidDestinationException) JmsErrorUtils.newThrowable(
                                                                           InvalidDestinationException.class,
                                                                           "MALFORMED_DESCRIPTOR_CWSIA0047",
                                                                           new Object[] { "Queue", name },
                                                                           tc
                            );
        }

        name = name.trim();
        queue = (JmsQueue) destCreator.createDestinationFromString(name, URIDestinationCreator.DestType.QUEUE);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "createQueue", queue);
        return queue;
    }