This example does two things: 1) Changes a GET request from the client to a POST 2) Captures the request headers from the client and converts them to a body for POST to the upstream server Note we have underscores…
Category: Middleware
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…
Is a JMS MessageConsumer truly asynchronous/non-blocking?
Yes. The code tree is as follows: Receive call on the ActiveMQMessageConsumer class, which implements the javax.jms.MessageConsumer interface… public javax.jms.Message receive() throws JMSException { checkClosed(); checkMessageListener(); sendPullCommand(0L); MessageDispatch md = dequeue(-1L); if (md == null) { return null; } beforeMessageIsConsumed(md);…
WLST script to take thread dumps
Quick wlst script to take thread dumps inside the running container… connect (‘weblogic’,’welcome1′,’t3://localhost:7001′) counter = 0 sleepTime = 5000 for counter in range(10): serverName = ‘AdminServer’ java.lang.Thread.sleep(sleepTime) fileName = ‘dump’ + serverName + counter + ‘.dmp’ threadDump(‘true’, fileName, serverName)
Parsing ODI logs for scenario run time
Pretty random, but I needed this earlier this morning to troubleshoot a heap sizing issue in the ODI domain. This will print the scenario, the tid associated (needed if the same scenario is run more than once concurrently), and the…