rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
registerMap.put(type, classname);
public static void registerEditorKitForContentType(String type, String classname) { // TODO: Implement this properly. }
super.replaceSelection(content);
public void replaceSelection(String content) { // TODO: Implement this properly. }
editorMap.put(type, k);
public void setEditorKitForContentType(String type, EditorKit k) { // FIXME: editorKitCache.put(type, kit); }
super.setText(t);
try { Document doc = getDocument(); doc.remove(0, doc.getLength()); if (t == null || t == "") return; getEditorKit().read(new StringReader(t), doc, 0);
public void setText(String t) { super.setText(t); }
catch (BadLocationException ble) { } catch (IOException ioe) { } }
public void setText(String t) { super.setText(t); }
if (c.debugDrawBoxes()) {
if (c.debugDrawBoxes() || Configuration.isTrue("xr.renderer.debug.box-outlines", true)) {
public void paint(Context c, Box box) { //Uu.p("BoxRenderer.paint " + box); Box block = (Box) box; //set the current style CascadedStyle hoverStyle = null; if (block.content.getStyle() != null) { c.pushStyle(block.content.getStyle()); if (block.hover) { ...
out.print(LINE_SEPARATOR);
public void endDocument() throws SAXException { out.flush(); out.close(); }
sessions = new HashMap(); temporaryDestinations = new HashSet();
sessions = new ConcurrentReaderHashMap(); temporaryDestinations = Collections.synchronizedSet(new HashSet());
public ServerConnectionDelegate(ServerPeer serverPeer, String clientID, String username, String password) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); ...
synchronized(sessions) { return (ServerSessionDelegate)sessions.get(sessionID); }
return (ServerSessionDelegate)sessions.get(sessionID);
public ServerSessionDelegate getSessionDelegate(String sessionID) { synchronized(sessions) { return (ServerSessionDelegate)sessions.get(sessionID); } }
synchronized(sessions) { return (ServerSessionDelegate)sessions.put(sessionID, d); }
return (ServerSessionDelegate)sessions.put(sessionID, d);
public ServerSessionDelegate putSessionDelegate(String sessionID, ServerSessionDelegate d) { synchronized(sessions) { return (ServerSessionDelegate)sessions.put(sessionID, d); } }
bodyReadOnly = in.readBoolean();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); bodyReadOnly = in.readBoolean(); isByteArray = in.readBoolean(); int length = in.readInt(); if (length < 0) { payload = null; } else { payload =...
out.writeBoolean(bodyReadOnly);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(bodyReadOnly); out.writeBoolean(isByteArray); if (payload == null) { out.writeInt(-1); } else { out.writeInt(((byte[])payload).length); out.wri...
g.setColor(graph.getHighlightColor());
g.setColor(highlightColor);
public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; // g.setColor(Color.lightGray); if(super.isOpaque()) { g.setColor(super.getBackground()); g.fillRect(b - 1, b - 1, d.width - b, d.height - b); }...
TransactionRepository txRep = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));
IdManager idm = new IdManager("TRANSACTION_ID", 10, pm); idm.start(); TransactionRepository txRep = new TransactionRepository(pm, idm);
protected void doTransactionCommit(boolean xa, boolean batch) throws Throwable { doSetup(batch, 100); Channel channel = new SimpleChannel(0, ms); TransactionRepository txRep = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm)); txRep.start(); log.debug("transaction log ...
TransactionRepository txRep = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));
IdManager idm = new IdManager("TRANSACTION_ID", 10, pm); idm.start(); TransactionRepository txRep = new TransactionRepository(pm, idm);
protected void doTransactionRollback(boolean xa, boolean batch) throws Throwable { doSetup(batch, 100); Channel channel = new SimpleChannel(0, ms); TransactionRepository txRep = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm)); txRep.start(); Message[] messages = cre...
if (ContentUtil.mayHaveFirstLine(_style)) {
c.pushStyle(_style); if (ContentUtil.mayHaveFirstLine(c.getCurrentStyle())) {
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is fir...
if (ContentUtil.mayHaveFirstLetter(_style)) {
if (ContentUtil.mayHaveFirstLetter(c.getCurrentStyle())) {
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is fir...
c.popStyle();
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is fir...
focusCycleRoot = true;
Window() { visible = false; setLayout(new BorderLayout()); }
KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window activeWindow = manager.getActiveWindow (); if (activeWindow == this) return manager.getFocusOwner ();
public Component getFocusOwner() { // FIXME return null; }
if (resized) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } if (moved) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); }
void setBoundsCallback (int x, int y, int w, int h) { if (this.x == x && this.y == y && width == w && height == h) return; invalidate(); this.x = x; this.y = y; width = w; height = h; }
KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.setGlobalFocusedWindow (this); if (!shown) { FocusTraversalPolicy policy = getFocusTraversalPolicy (); Component initialFocusOwner = null; if (policy != null) initialFocusOwner = policy.getInitialComponent (this); if (init...
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).g...
if (! c.isInteractive()) { box.component.paint(c.getGraphics()); }
public static void paintBlockContext(Context c, Box box, boolean restyle) { //if (box.getBlockFormattingContext() != null) c.pushBFC(box.getBlockFormattingContext()); c.translate(box.x, box.y); if (box.getBlockFormattingContext() != null) { c.pushBFC(box.getBlockFormattingContext());...
Rectangle2D oldclip = (Rectangle2D) c.getGraphics().getClip();
Shape oldclip = (Shape) c.getGraphics().getClip();
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false))...
- bfc.getMaster().totalRightPadding(); ;
- bfc.getMaster().totalRightPadding();
public void positionAbsoluteChild(Context c, Box child_box) { //u.p("modifying it"); BlockFormattingContext bfc = c.getBlockFormattingContext(); // u.p("bfc = " + bfc); // u.p("child = " + child_box); // u.p("parent = " + child_box.getParent()); // u.p("width = " + bfc.getW...
if (log.isTraceEnabled()) { log.trace("In AddMessageSynchronization.beforeCompletion()"); }
public void beforeCompletion() { try { // this call is executed with the transaction context of the transaction // that is being committed Transaction crtTransaction = tm.getTransaction(); if (crtTransaction.getStatus() == Status.STATUS_MARKED_ROLLB...
enableTransactedMessages(txID);
private void commit(String txID) throws SystemException { enableTransactedMessages(txID); channel.deliver(); }
if (log.isTraceEnabled()) { log.trace("Enabling transacted messages"); }
protected void enableTransactedMessages(String txID) throws SystemException { List l = (List)transactedMessages.remove(txID); if (l == null) { // may happen if all undelivered are reliable return; } messages.addAll(l); }
boolean shutdown(String nodeId) throws Exception;
boolean shutdown(int nodeId) throws Exception;
boolean shutdown(String nodeId) throws Exception;
boolean startup(String nodeId) throws Exception;
boolean startup(int nodeId) throws Exception;
boolean startup(String nodeId) throws Exception;
String text = stripWhitespace(style, prev, content.getText());
String text = content.getText();
public static InlineBox createInline(Context c, TextContent content, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.content = content; CalculatedStyle style = c.getCurrentStyle(); inline.whitespace = getWhitespace(style);...
boolean collapseNext = stripWhitespace(c.getCurrentStyle(), collapse, tc); if (tc.getText().equals("")) { continue; } else { stripped.addAll(pendingStylePushes); pendingStylePushes.clear(); stripped.add(tc); collapse = collapseNext; continue;
CalculatedStyle style = c.getCurrentStyle(); boolean collapseNext = stripWhitespace(style, collapse, tc); if (!tc.isRemovableWhitespace()) { allWhitespace = false;
public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Object o = i.next(); if (o inst...
if(isAllWhitespace(stripped)) {
if (allWhitespace) {
public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Object o = i.next(); if (o inst...
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) {
static boolean stripWhitespace(CalculatedStyle style, boolean collapseLeading, TextContent tc) {
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //Uu.p("stripWhitespace: text = -" + text + "-"); //Uu.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
String whitespace = getWhitespace(style);
String whitespace = style.getStringProperty(CSSName.WHITE_SPACE); String text = tc.getText();
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //Uu.p("stripWhitespace: text = -" + text + "-"); //Uu.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
text = linefeed_space_collapse.matcher(text).replaceAll(SPACE);
text = linefeed_space_collapse.matcher(text).replaceAll(EOL);
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //Uu.p("stripWhitespace: text = -" + text + "-"); //Uu.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
(prev != null) && (prev.whitespace.equals("normal") || prev.whitespace.equals("nowrap") || prev.whitespace.equals("pre-line")) && (prev.getSubstring().endsWith(SPACE))) {
collapseLeading) {
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //Uu.p("stripWhitespace: text = -" + text + "-"); //Uu.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
return text;
boolean collapseNext = (text.endsWith(SPACE) && (whitespace.equals("normal") || whitespace.equals("nowrap") || whitespace.equals("pre-line"))); tc.setText(text); if (text.trim().equals("")) { if (whitespace.equals("normal") || whitespace.equals("nowrap")) { tc.setRemovableWhitespace(true); } else if (whitespace.equals...
public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //Uu.p("stripWhitespace: text = -" + text + "-"); //Uu.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
NoSuchAlgorithmException lastException = null;
public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ...
{
public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ...
catch (NoSuchAlgorithmException e)
catch (NoSuchAlgorithmException x)
public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ...
}
lastException = x;
public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ...
if (lastException != null) throw lastException;
public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ...
if (box.isAbsolute()) {
if (box.absolute) {
public static boolean isOutsideNormalFlow(Box box) { if (box.fixed) { return true; } if (box.isAbsolute()) { //u.p("box is abs: " + box); return true; } if (box.floated) { return true; } return false; }
val = getColorHex( ident );
val = getColorHex(ident); if (val == null) { String fallback = CSSName.initialValue(cssName); if (fallback.startsWith("=")) fallback = CSSName.initialValue(CSSName.getByPropertyName(fallback.substring(1))); val = getColorHex(fallback); }
public static String convertIdent( CSSName cssName, String ident ) { String val = ident; if ( cssName == CSSName.FONT_SIZE ) { String size = (String)FONT_SIZES.get( ident ); val = ( size == null ? ident : size ); } else if ( cssName == CSSName.FONT_WEIGHT ) { St...
String retval = (String)COLOR_MAP.get( value.toLowerCase() ); if ( retval == null ) { if ( value.indexOf( "rgb" ) >= 0 ) {
String retval = (String) COLOR_MAP.get(value.toLowerCase()); if (retval == null) { if (value.trim().startsWith("rgb(")) {
public static String getColorHex( String value ) { if ( value == null ) { throw new XRRuntimeException( "value is null on getColorHex()" ); } String retval = (String)COLOR_MAP.get( value.toLowerCase() ); if ( retval == null ) { if ( value.indexOf( "rgb" ) >= 0 ) { ...
log.info("Removing all non-reliable message references");
log.debug("Removing all non-reliable message references");
protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); log.trace("Resetting message data. This may take several m...
log.info("Updating all reliable references to not loaded");
log.debug("Updating all reliable references to not loaded");
protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); log.trace("Resetting message data. This may take several m...
protected void setUp() throws Exception
public void setUp() throws Exception
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("TestTopic"); Se...
drainDestination(cf, queue);
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("TestTopic"); Se...
protected void tearDown() throws Exception
public void tearDown() throws Exception
protected void tearDown() throws Exception { ServerManagement.undeployTopic("TestTopic"); ServerManagement.undeployQueue("TestQueue"); super.tearDown(); }
int index = e.getCells().length; Object lastModified = e.getCells()[index - 1]; if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge)
Object lastAdded = null; for(int i = e.getCells().length-1; i >= 0; i--) { if(e.isAddedCell(i)) { lastAdded = e.getCells()[i]; break; } } if(lastAdded instanceof WorkflowCell || lastAdded instanceof WorkflowEdge)
public void valueChanged(GraphSelectionEvent e) { int index = e.getCells().length; Object lastModified = e.getCells()[index - 1]; if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge) { if(e.isAddedCell(index - 1)) { showDetails(lastModified); } } el...
if(e.isAddedCell(index - 1)) { showDetails(lastModified); }
showDetails(lastAdded);
public void valueChanged(GraphSelectionEvent e) { int index = e.getCells().length; Object lastModified = e.getCells()[index - 1]; if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge) { if(e.isAddedCell(index - 1)) { showDetails(lastModified); } } el...
else if(lastModified != null)
else if(lastAdded != null)
public void valueChanged(GraphSelectionEvent e) { int index = e.getCells().length; Object lastModified = e.getCells()[index - 1]; if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge) { if(e.isAddedCell(index - 1)) { showDetails(lastModified); } } el...
log.debug("unhandled selection:" + lastModified.getClass());
log.debug("unhandled selection:" + lastAdded.getClass());
public void valueChanged(GraphSelectionEvent e) { int index = e.getCells().length; Object lastModified = e.getCells()[index - 1]; if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge) { if(e.isAddedCell(index - 1)) { showDetails(lastModified); } } el...
ServerInvocationHandler addInvocationHandler(String s, ServerInvocationHandler h)
ServerInvocationHandler addInvocationHandler(String subsystem, ServerInvocationHandler h)
ServerInvocationHandler addInvocationHandler(String s, ServerInvocationHandler h) throws Exception;
void removeInvocationHandler(String s) throws Exception;
void removeInvocationHandler(String subsystem) throws Exception;
void removeInvocationHandler(String s) throws Exception;
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
public void test_Simple_NTNP_LA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = ...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_NTNP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
public void test_Simple_NTNP_LD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 0, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 0, true) };
public void test_Simple_NTNP_LT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons =...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 0, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 0, true) };
public void test_Simple_NTNP_LX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
public void test_Simple_NTNP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons =...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_NTNP_NLCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer con...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
public void test_Simple_NTNP_NLD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer con...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_NTNP_NLT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons ...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_NTNP_NLX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceiv...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
public void test_Simple_NTP_LA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = s...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_NTP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons ...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
public void test_Simple_NTP_LD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons ...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_NTP_LT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = ...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_NTP_LX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive....
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
public void test_Simple_NTP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = ...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_NTP_NLCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
public void test_Simple_NTP_NLD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_NTP_NLT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons =...
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Sender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_NTP_NLX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
public void test_Simple_TNP_LA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = ...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_TNP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
public void test_Simple_TNP_LD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_TNP_LT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons =...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_TNP_LX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
public void test_Simple_TNP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons =...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_TNP_NLCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer con...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
public void test_Simple_TNP_NLD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer con...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_TNP_NLT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons ...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_TNP_NLX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceiv...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
public void test_Simple_TP_LA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = s...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_TP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons ...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
public void test_Simple_TP_LD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons ...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_TP_LT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = ...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 20, 3, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 20, 3, true) };
public void test_Simple_TP_LX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive....
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
public void test_Simple_TP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = ...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_TP_NLCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
public void test_Simple_TP_NLD() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_TP_NLT() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons =...
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_TP_NLX() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
public void test_Simple_XNP_LA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = sessReceive....
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_XNP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sessRecei...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
public void test_Simple_XNP_LD() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons = sessRecei...