<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>coherentlogic.com</title>
	<atom:link href="http://www.coherentlogic.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.coherentlogic.com/wordpress</link>
	<description>Welcome to Coherent Logic</description>
	<lastBuildDate>Mon, 20 May 2013 01:12:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>TrueLicense-Extensions</title>
		<link>http://www.coherentlogic.com/wordpress/?p=1788</link>
		<comments>http://www.coherentlogic.com/wordpress/?p=1788#comments</comments>
		<pubDate>Wed, 17 Oct 2012 17:51:24 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.coherentlogic.com/wordpress/?p=1788</guid>
		<description><![CDATA[If you&#8217;re using TrueLicense, then you may be interested in the TrueLicense-Extensions project &#8212; more details below. Note that this project is an independent add-on to TrueLicense; please refer to the TrueLicense website for more information. This project includes several components, such as generate, install, and verify components, which are configured as Spring Beans. Additional [...]]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;re using TrueLicense, then you may be interested in the TrueLicense-Extensions project &#8212; more details below.</p>
<p>Note that this project is an independent add-on to TrueLicense; please refer to the <a href="http://truelicense.java.net" title="TrueLicense website" target="_blank">TrueLicense website</a> for more information. </p>
<p>This project includes several components, such as generate, install, and verify components, which are configured as Spring Beans.</p>
<p>Additional benefits include:
<ul>
<li>Unchecked exceptions are converted into runtime exceptions.</li>
<li>Log messages are written via the SLF4J logger.</li>
<li>An assembly module is included for the purposes of building a single shaded jar (individual dependencies are built in their respective modules).</li>
<li>Working examples are included as well, with readable passwords so the developer can examine how the example is configured.</li>
<li>The project has been released under the EPL, the same license TrueLicense has been released under.</li>
</ul>
<p>The project can be found on <a href="http://sourceforge.net/p/truelicenseexts/" title="SourceForge" target="_blank">SourceForge</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coherentlogic.com/wordpress/?feed=rss2&#038;p=1788</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proguard &amp; AbstractMethod Error while Shrinking a Jar</title>
		<link>http://www.coherentlogic.com/wordpress/?p=1763</link>
		<comments>http://www.coherentlogic.com/wordpress/?p=1763#comments</comments>
		<pubDate>Thu, 27 Sep 2012 19:33:39 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.coherentlogic.com/wordpress/?p=1763</guid>
		<description><![CDATA[While using Proguard we were hung up for a bit dealing with an AbstractMethodError while shrinking a jar &#8212; below is the Library option that, when selected, solved this problem.]]></description>
				<content:encoded><![CDATA[<p>While using Proguard we were hung up for a bit dealing with an AbstractMethodError while shrinking a jar &#8212; below is the Library option that, when selected, solved this problem.</p>
<div id="attachment_1764" class="wp-caption alignnone" style="width: 310px"><a href="http://www.coherentlogic.com/wordpress/wp-content/uploads/2012/09/ProguardAbstractMethodErrorShrinkLibrary.png"><img src="http://www.coherentlogic.com/wordpress/wp-content/uploads/2012/09/ProguardAbstractMethodErrorShrinkLibrary-300x238.png" alt="Proguard AbstractMethodError Solution" title="ProguardAbstractMethodErrorShrinkLibrary" width="300" height="238" class="size-medium wp-image-1764" /></a><p class="wp-caption-text">Proguard AbstractMethodError Solution</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.coherentlogic.com/wordpress/?feed=rss2&#038;p=1763</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HornetQ 2.0.0.GA Example: embedded, no jndi, configured programmatically</title>
		<link>http://www.coherentlogic.com/wordpress/?p=1674</link>
		<comments>http://www.coherentlogic.com/wordpress/?p=1674#comments</comments>
		<pubDate>Thu, 16 Aug 2012 20:10:44 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.coherentlogic.com/wordpress/?p=1674</guid>
		<description><![CDATA[The following code is based on the example provided in the hornetq-2.0.0.GA-src zip file, specifically the instantiate-connection-factory example located in the examples/jms/instantiate-connection-factory/ directory. The code below is written in Groovy and requires jboss-logging to be loaded manually, as demonstrated here: grape install org.jboss.logging jboss-logging 2.1.0.GA Once you&#8217;ve loaded the jboss-logging dependency, the code should run [...]]]></description>
				<content:encoded><![CDATA[<p>The following code is based on the example provided in the <a href="http://www.jboss.org/hornetq/downloads" title="hornetq-2.0.0.GA-src zip file" target="_blank">hornetq-2.0.0.GA-src zip file</a>, specifically the instantiate-connection-factory example located in the examples/jms/instantiate-connection-factory/ directory.</p>
<p>The code below is written in Groovy and requires jboss-logging to be loaded manually, as demonstrated here:</p>
<p><strong>grape install org.jboss.logging jboss-logging 2.1.0.GA</strong></p>
<p>Once you&#8217;ve loaded the jboss-logging dependency, the code should run as-is using the GroovyConsole.</p>
<pre><code>
@GrabResolver(name='JBoss releases', root='https://repository.jboss.org/nexus/content/repositories/releases/')
@Grab(group='org.hornetq', module='hornetq-core', version='2.0.0.GA')
@Grab(group='org.hornetq', module='hornetq-jms', version='2.0.0.GA')
@Grab(group='org.hornetq', module='hornetq-logging', version='2.0.0.GA')
@Grab(group='org.hornetq', module='hornetq-transports', version='2.0.0.GA')
@Grab(group='org.jboss.netty', module='netty', version='3.1.5.GA')
@Grab(group='org.jboss.javaee', module='jboss-jms-api', version='1.1.0.GA')
@Grab(group='org.jboss.logging', module='jboss-logging', version='2.1.0.GA')
@GrabResolver(name='Maven Central', root='http://repo1.maven.org/')
@Grab(group='jboss', module='jnpserver', version='4.2.2.GA')
@GrabConfig(systemClassLoader=true)

import java.util.HashMap
import java.util.Map
import javax.jms.Connection
import javax.jms.ConnectionFactory
import javax.jms.MessageConsumer
import javax.jms.MessageProducer
import javax.jms.Queue

import javax.jms.Session
import javax.jms.TextMessage
import org.hornetq.api.core.TransportConfiguration
import org.hornetq.api.jms.HornetQJMSClient
import org.hornetq.core.remoting.impl.invm.InVMConnectorFactory
import org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory

import org.hornetq.core.config.Configuration
import org.hornetq.core.config.impl.ConfigurationImpl
import org.hornetq.core.server.cluster.QueueConfiguration
import org.hornetq.core.server.HornetQServer
import org.hornetq.core.server.impl.HornetQServerImpl

import org.hornetq.jms.server.JMSServerManager
import org.hornetq.jms.server.impl.JMSServerManagerImpl
import org.hornetq.jms.server.config.JMSConfiguration
import org.hornetq.jms.server.config.impl.JMSConfigurationImpl
import org.hornetq.jms.server.config.QueueConfiguration
import org.hornetq.jms.server.config.impl.QueueConfigurationImpl
 
def QUEUE_NAME = "exampleQueue", JMS_QUEUE_NAME = "/queue/${QUEUE_NAME}"
 
HornetQServer server = null
Connection connection = null

try {

Configuration configuration = new ConfigurationImpl ()

configuration.setPersistenceEnabled(false)
configuration.setSecurityEnabled(false)
configuration.setClustered(false)
configuration.setClusterUser("blah")
configuration.setClusterPassword("not-used")
configuration.setJMXManagementEnabled(false)
configuration
    .getAcceptorConfigurations()
        .add(
            new TransportConfiguration(
                InVMAcceptorFactory.class.getName())
    )

server = new HornetQServerImpl (configuration)

JMSConfiguration jmsConfiguration = new JMSConfigurationImpl ()

def queueConfigurations = jmsConfiguration.getQueueConfigurations()

queueConfigurations << new QueueConfigurationImpl (QUEUE_NAME, null, false, JMS_QUEUE_NAME)

JMSServerManager jmsServerManager = new JMSServerManagerImpl(server, jmsConfiguration)

// We're not using JNDI.
jmsServerManager.setContext(null)
jmsServerManager.start()

// -----

Queue queue = HornetQJMSClient.createQueue("${QUEUE_NAME}")

TransportConfiguration transportConfiguration = new TransportConfiguration(InVMConnectorFactory.class.getName())

ConnectionFactory cf = HornetQJMSClient.createConnectionFactory(transportConfiguration)

connection = cf.createConnection()

Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)

MessageProducer producer = session.createProducer(queue)

TextMessage message = session.createTextMessage("This is a text message")

System.out.println("Sent message: " + message.getText())

producer.send(message)

MessageConsumer messageConsumer = session.createConsumer(queue)

connection.start()

TextMessage messageReceived = (TextMessage)messageConsumer.receive(5000)

System.out.println("Received message: " + messageReceived.getText())

connection.close()

} finally {
    if (connection != null) {
        connection.close ()
    }
    if (server != null) {
        server.stop ()
    }
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.coherentlogic.com/wordpress/?feed=rss2&#038;p=1674</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
