Skip to content

Instantly share code, notes, and snippets.

swapanc

Block or report user

Report or block swapanc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View importCert.sh
#!/bin/bash
## This script expects oc to be logged in into proper cluster, where you want the root cert to be imported from
oc get secret router-ca -n openshift-ingress-operator -o jsonpath="{.data.tls\.crt}" | base64 -d > ca.crt
certutil -d sql:$HOME/.pki/nssdb -A -t CT,C,C -n $(openssl x509 -in ca.crt -text |grep Issuer| grep -o 'ingress-operator@.*') -i ca.crt
rm ca.crt
View OracleMessageListener.java
package com.sachinhandiekar.oracle.aq;
import javax.jms.Message;
import javax.jms.MessageListener;
import org.springframework.transaction.annotation.Transactional;
import oracle.jms.AQjmsAdtMessage;
import oracle.xdb.XMLType;
@swapanc
swapanc / OracleMessageListener.java
Created Mar 21, 2020 — forked from sachin-handiekar/OracleMessageListener.java
A custom Oracle AQ MessageListener (XML Type payload) for Spring JMS
View OracleMessageListener.java
package com.sachinhandiekar.oracle.aq;
import javax.jms.Message;
import javax.jms.MessageListener;
import org.springframework.transaction.annotation.Transactional;
import oracle.jms.AQjmsAdtMessage;
import oracle.xdb.XMLType;
View OracleAQQueueBrowser.java
package com.sachinhandiekar.oracle.aq;
 
import java.util.Enumeration;
 
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Queue;
import javax.jms.QueueBrowser;
import javax.jms.Session;
View generatedsleeve.java
package sample.app.client;
import com.google.gwt.core.client.GWT;
import com.harmonic.electra.skel.generated.CSDChassis;
public class ChassisBuilderImpl implements sample.app.client.XmlRead.ChassisBuilder {
public static interface GEN_ extends com.google.gwt.query.client.builders.XmlBuilder{
public com.harmonic.electra.skel.generated.CSDChassis.Config getConfig();
public void setConfig(com.harmonic.electra.skel.generated.CSDChassis.Config value);
public com.harmonic.electra.skel.generated.CSDChassis.Status getStatus();
View Main-OracleAQ.java
package com.sachinhandiekar.oracle.aq;
import java.sql.Connection;
import java.sql.SQLException;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import javax.sql.DataSource;
@swapanc
swapanc / DbUtil.java
Created Mar 21, 2020 — forked from danieldbower/DbUtil.java
Extract underlying Oracle connection from Jboss Wrapped connection, and create Oracle Clob Parameter
View DbUtil.java
package com.bowerstudios.myapp.dao;
import java.io.Writer;
import java.sql.Connection;
import java.sql.SQLException;
import oracle.jdbc.OracleConnection;
import oracle.sql.CLOB;
import org.jboss.resource.adapter.jdbc.WrappedConnection;
@swapanc
swapanc / 1-integration.xml
Created Mar 21, 2020 — forked from cignextraining/1-integration.xml
Transformers - XML Unmarshalling
View 1-integration.xml
<!-- Scans within the base package of the application for @Components to
configure as beans -->
<context:component-scan base-package="com.cd.spring" />
<!-- Adapter for reading files -->
<int-file:inbound-channel-adapter id="producer-file-adapter"
channel="inboundChannel" directory="file:d://si-inbound"
prevent-duplicates="true">
<int:poller fixed-rate="5000" />
</int-file:inbound-channel-adapter>
View 0-integration.xml
<!-- Adapter for reading files -->
<int-file:inbound-channel-adapter id="producer-file-adapter"
channel="inboundChannel" directory="file:d://si-inbound"
prevent-duplicates="true">
<int:poller fixed-rate="5000" />
</int-file:inbound-channel-adapter>
<!-- a direct inbound channel -->
<int:channel id="inboundChannel" />
View Article.java
@BindType("item")
@BindXmlType(namespaces={
@BindXmlNamespace(prefix="dc",uri="http://purl.org/dc/elements/1.1/"),
@BindXmlNamespace(prefix="content",uri="http://purl.org/dc/elements/1.1/"),
})
@BindSqlType(name = "articles")
public class Article extends Entity {
public String title;
public String description;
public URL link;
You can’t perform that action at this time.