Just an example of how to pull this type of value from an embedded XML document in a SQL Server database table column… select top 100 * from Transactions with (nolock) where trn_xml.value(‘(/Transaction/RetailStoreId)[1]’, ‘int’) = 2401
Listing queues and topics in ActiveMQ
This will provide the list of queues and topics managed by an ActiveMQ broker… import javax.jms.*; import java.io.*; import java.util.*; import org.apache.activemq.*; import org.apache.activemq.command.*; import org.apache.activemq.advisory.*; public class GetDestinations { private static String url = ActiveMQConnection.DEFAULT_BROKER_URL; public static void main(String[]…
Does a command retain open file handles when the output of the pipe is aggregated?
We had 90,000 open awk file handles owned by a single shell process, and didn’t know if a command such as what is below would result in each file handle being retained even after its output was processed and the…
Simple JBOSS Fuse/Karaf Camel route deployment
To get started with Camel for routing, you can simply drop a file in the deploy directory under your Fuse installation. However, in a production environment, it is advisable to have more controlled process for deploying routes. That is the…
Where is my bundle in Karaf?
You can find the bundle by: * performing an osgi:list in the karaf shell * Take the bundle ID * navigate to the FUSE_BASE_DIR/data/cache/bundle${ID_ABOVE}/version* * jar -tvf bundle.jar This will show you the contents of the bundle, with which you…
Unexpected end of file from server
The “java.net.SocketException: Unexpected end of file from server” exception is thrown in the HTTPClient class, as well as others. This article simply provides an example of how to generate it for testing purposes. We start with a client class that…