I have a queue in a glassfish server, I need to put messages on it and receive messages from it. I'm reading the JMS tutorial but it doesn't have how to configure the connectionFactory object, I was google about it but I only get example with ActiveMQ.

I need an example with Glassfish, how to configure the connectors and connectionFactories.

Thanks you for your help.