Posts

Showing posts from May, 2007

google-guice

Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 5 and above, brought to you by Google. http://code.google.com/p/google-guice/

Putting simple text message on a jms queue

        try {             String jndi_pref = "java:comp/env/";             String qConnectionFactoryJndi = "qConnectionFactoryJndi";             String qJndi = "qJndi" ;             InitialContext context = new InitialContext();             QueueConnectionFactory qConnectionFactory = (QueueConnectionFactory) context.lookup(qConnectionFactoryJndi);             Queue queue = (Queue) context.lookup(qJndi);             logger.debug("Resource " + queue.getQueueName() + " obtained");                ...