Skip to content

Instantly share code, notes, and snippets.

View paulrobinson's full-sized avatar

Paul Robinson paulrobinson

  • Red Hat
  • Whitley Bay, UK
View GitHub Profile
Gemfile
Gemfile.lock
README.md
Rakefile
_brms-quickstarts
_brms-quickstarts/.git
_brms-quickstarts/.gitignore
_brms-quickstarts/business-resource-planner
_brms-quickstarts/business-resource-planner/pom.xml
_brms-quickstarts/business-resource-planner/README.md
#!/bin/bash
git remote | grep origin > /dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo This script assumes you have origin set as the repo to create reqs in
exit
fi
upstreamname=`git remote -v | grep upstream | grep fetch | sed "s#upstream.*github.com[:/]\(.*\)/.*#\1#"`
reponame=`git remote -v | grep origin | grep push | sed "s#.*/\(.*\)\.git.*#\1#g"`
myname=`git remote -v | grep origin | grep fetch | sed "s#origin.*github.com[:/]\(.*\)/.*#\1#"`
#!/bin/bash
git remote | grep upstream > /dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo This script assumes you have upstream set as the repo to hand reqs in
exit
fi
if [ ! -d .git ]; then
echo This script assumes you are in the root of a repo clone
exit
@paulrobinson
paulrobinson / wsat-ssl.asciidoc
Last active December 19, 2015 21:18
Instructions for how to configure XTS to use SSL.

tab 1

unzip ~/Downloads/jboss-eap-6.1.0.zip
mv jboss-eap-6.1 jboss-eap-6.1-client
cp -r jboss-eap-6.1-client jboss-eap-6.1-server
git clone git://github.com/jboss-jdf/jboss-as-quickstart.git
cd jboss-as-quickstart/wsat-simple/

Now use the following instructions to replace http urls with https urls, and change the destination IP.

@paulrobinson
paulrobinson / 1_OnServiceRequest.java
Created June 5, 2012 12:58
@CompensatedBy discussion
@AT
class MyService
{
@ServiceRequest
@ATTriggers({ @ATTrigger(lifecycleEvent=ATLifecycleEvent.PRPEARE,
methodName="prpeareBooking")
@ATTrigger(lifecycleEvent=ATLifecycleEvent.COMMIT,
methodName="commitBooking")
@ATTrigger(lifecycleEvent=ATLifecycleEvent.ROLLBACK,
methodName="rollbackBooking") })
@paulrobinson
paulrobinson / BistroImpl.java
Created June 5, 2012 12:17
WSBA -> JTA Bridging with TXFramework (params)
@BA
@Stateless @Remote(Bistro.class) @WebService()
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class BistroImpl implements Bistro
{
@PersistenceContext protected EntityManager em;
@WebMethod
@ServiceRequest
public void bookSeats(int howMany) {
@paulrobinson
paulrobinson / BistroImpl.java
Created May 31, 2012 10:47
WSBA -> JTA Bridging with TXFramework
@BA
@Stateless @Remote(Bistro.class) @WebService()
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class BistroImpl implements Bistro
{
@DataManagement private Map txDataMap;
@PersistenceContext protected EntityManager em;
@WebMethod
@ServiceRequest
@BA
@WebService(serviceName = "OrderServiceBAService", portName = "OrderServiceBA", name = "OrderServiceBA", targetNamespace = "http://www.jboss.com/as/quickstarts/helloworld/wsba/participantcompletion/order")
@SOAPBinding(style = SOAPBinding.Style.RPC)
@WebServlet("/OrderServiceBA")
public class OrderServiceBAImpl implements OrderServiceBA {
@WebMethod @ServiceRequest
@CompensatedBy(compensationMethod = "cancelOrder", confirmMethod = "confirmMethod2")
public void placeOrder(String item) throws OrderServiceException {
}
@paulrobinson
paulrobinson / RestaurantServiceATImpl.java
Created May 16, 2012 08:46
REST-AT with TXFramework
@AT(bridgeType=BridgeType.NONE)
@Path("/")
public class RestaurantServiceATImpl implements RestaurantServiceAT {
@POST
@ServiceRequest
public void makeBooking() {
MockRestaurantManager.makeBooking();
}
@paulrobinson
paulrobinson / BistroImpl.java
Created May 16, 2012 08:38
Bridging with TXFramework
@AT //By default bridge to JTA
@Stateless @Remote(Bistro.class)
@WebService()
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class BistroImpl implements Bistro
{
@PersistenceContext protected EntityManager em;
@WebMethod
@ServiceRequest