rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
sb.append("</ul>");
sb.append("</table>");
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
sb.append("<hr />");
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background...
xhtml.setDocument(getClass().getResource("main.xhtml"));
xhtml.setDocument(getClass().getResource("main.xhtml").toExternalForm());
public void createComponents() throws Exception { xhtml = new XHTMLPanel(); Uu.p("url = " + getClass().getResource("main.xhtml")); xhtml.setDocument(getClass().getResource("main.xhtml")); filelistmodel = new FileListModel(); filelist = new JList(filelistmodel); }
updateReferenceCount = sqlProperties.getProperty("UPDATE_REF_COUNT", updateReferenceCount);
updateReferenceCount = sqlProperties.getProperty("UPDATE_REF_COUNT", updateReferenceCount); rollbackNonPreparedTx1 = sqlProperties.getProperty("ROLLBACK_TX1", rollbackNonPreparedTx1); rollbackNonPreparedTx2 = sqlProperties.getProperty("ROLLBACK_TX2", rollbackNonPreparedTx2); deleteNonPreparedTx = sqlProperties.getPrope...
protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ...
performRecovery = sqlProperties.getProperty("PERFORM_NONXA_RECOVERY", "false").equalsIgnoreCase("true");
protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ...
if (performRecovery) { resolveAllUncommitedTXs(); }
public void start() throws Exception { log.debug("starting JDBCPersistenceManager"); initSqlProperties(); InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup("java:/DefaultDS"); mgr = (TransactionManager)ic.lookup("java:/TransactionManager"); i...
String nodeId = serverPeer.getServerPeerID();
int nodeId = serverPeer.getServerPeerID();
protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ServerPeer...
double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, y);
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
if (h * page > height) { return Printable.NO_SUCH_PAGE; } int trans = (int) (-h * page); g2.translate(0, trans);
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
Dimension dim = new Dimension((int) w, (int) h); g2r.layout(g2, dim); Rectangle rect = g2r.getMinimumSize(); height = (int) rect.getHeight();
g2r.layout(g2, null); g2r.getPanel().assignPagePaintingPositions(g2, 0); } if (page >= g2r.getPanel().getRootLayer().getPages().size()) { return Printable.NO_SUCH_PAGE;
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
g2r.render(g2);
g2r.getPanel().paintPage(g2, page);
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
assertNotNull(cm.getConnection(remotingSessionId));
assertTrue(cm.containsSession(remotingSessionId));
public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = localServer.getServerPeer().getConnector(); ConnectionManager cm =...
assertNull(cm.getConnection(remotingSessionId));
assertFalse(cm.containsSession(remotingSessionId));
public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = localServer.getServerPeer().getConnector(); ConnectionManager cm =...
this.payload = null; this.bodyReadOnly = false;
public void clearBody() throws JMSException { //this.messageWritable = true; //this.bodyWritable = true; }
propertiesWritable = true;
propertiesReadOnly = false;
public void clearProperties() throws JMSException { properties.clear(); propertiesWritable = true; }
if (isCorrelationIDBytes)
if (this.correlationIDBytes != null)
public String getJMSCorrelationID() throws JMSException { if (isCorrelationIDBytes) { throw new JMSException("CorrelationID is a byte[] for this message"); } return correlationID; }
if (!isCorrelationIDBytes)
if (this.correlationIDBytes == null)
public byte[] getJMSCorrelationIDAsBytes() throws JMSException { if (!isCorrelationIDBytes) { throw new JMSException("CorrelationID is a String for this message"); } return correlationIDBytes; }
jmsType = readString(in); propertiesWritable = in.readBoolean();
jmsType = readString(in);
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ...
isCorrelationIDBytes = in.readBoolean(); if (isCorrelationIDBytes)
int length = in.readInt(); if (length == -1)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ...
int length = in.readInt(); if (length == -1) { correlationIDBytes = null; } else { correlationIDBytes = new byte[length]; in.readFully(correlationIDBytes); }
correlationIDBytes = null;
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ...
correlationID = readString(in);
correlationIDBytes = new byte[length]; in.readFully(correlationIDBytes);
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ...
correlationID = readString(in);
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = (Destination) in.readObject(); replyToDestination = (Destination) in.readObject(); jmsType = readString(in); propertiesWritable = in.readBoolean(); properties = ...
if (!propertiesWritable)
if (propertiesReadOnly)
public void setBooleanProperty(String name, boolean value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setByteProperty(String name, byte value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setDoubleProperty(String name, double value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setFloatProperty(String name, float value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setIntProperty(String name, int value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); }
isCorrelationIDBytes = false;
correlationIDBytes = null;
public void setJMSCorrelationID(String correlationID) throws JMSException { this.correlationID = correlationID; isCorrelationIDBytes = false; }
isCorrelationIDBytes = true;
correlationID = null;
public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException { if (correlationID == null || correlationID.length == 0) { throw new JMSException("Please specify a non-zero length byte[]"); } correlationIDBytes = correlationID; isCorrelationIDBytes = true; }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setLongProperty(String name, long value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setObjectProperty(String name, Object value) throws JMSException { if (!propertiesWritable) { throw new MessageNotWriteableException("Properties are read-only"); } checkProperty(name, value); if (value instanceof Boolean) { properties.put(name, value); ...
if (!propertiesWritable)
if (propertiesReadOnly)
public void setShortProperty(String name, short value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); }
if (!propertiesWritable)
if (propertiesReadOnly)
public void setStringProperty(String name, String value) throws JMSException { if (!propertiesWritable) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); }
out.writeBoolean(propertiesWritable);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre...
out.writeBoolean(isCorrelationIDBytes); if (isCorrelationIDBytes)
if (correlationIDBytes == null)
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre...
if (correlationIDBytes == null) { out.writeInt(-1); } else { out.writeInt(correlationIDBytes.length); out.write(correlationIDBytes); }
out.writeInt(-1);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre...
writeString(out, correlationID);
out.writeInt(correlationIDBytes.length); out.write(correlationIDBytes);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre...
writeString(out, correlationID);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(destination); out.writeObject(replyToDestination); writeString(out, jmsType); out.writeBoolean(propertiesWritable); writeMap(out, properties); out.writeBoolean(isCorre...
connState.getResourceManager().commitLocal((LocalTxXid)state.getXAResource().getCurrentTxID());
connState.getResourceManager().commitLocal((LocalTxXid)state.getCurrentTxId(), conn);
public Object handleCommit(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (state.isXA()) { throw...
state.getXAResource().setCurrentTxID(xid);
state.setCurrentTxId(xid);
public Object handleCommit(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (!state.isTransacted()) { throw new IllegalStateException("Cannot commit a non-transacted session"); } if (state.isXA()) { throw...
Object txID = state.getXAResource().getCurrentTxID();
Object txID = state.getCurrentTxId();
public Object handlePreDeliver(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); if (state.isTransacted()) { MethodInvocation mi = (MethodInvocation)invocation; String messageID = (String)mi.getArguments()[0]; ...
SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate();
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ...
connState.getResourceManager().rollbackLocal((LocalTxXid)state.getXAResource().getCurrentTxID());
connState.getResourceManager().rollbackLocal((LocalTxXid)state.getCurrentTxId(), conn);
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ...
state.getXAResource().setCurrentTxID(xid);
state.setCurrentTxId(xid);
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ...
String asfConsumerID = state.getAsfConsumerID(); if (log.isTraceEnabled()) { log.trace("Calling sessiondelegate.cancelAllDeliveries()"); } sessDelegate.cancelDeliveries(asfConsumerID);
public Object handleRollback(Invocation invocation) throws Throwable { SessionState state = (SessionState)getState(invocation); SessionDelegate sessDelegate = (SessionDelegate)state.getDelegate(); if (!state.isTransacted()) { throw new IllegalStateException("Cannot ...
Object txID = sessState.getXAResource().getCurrentTxID();
Object txID = sessState.getCurrentTxId();
public Object handleSend(Invocation invocation) throws Throwable { ProducerState state = (ProducerState)getState(invocation); SessionState sessState = (SessionState)state.getParent(); if (sessState.isTransacted()) { //Session is transacted - so we add messa...
valid = new Boolean(DIGEST0.equals(Util.toString(new Haval().digest())));
valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Haval().digest())));
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new Haval().digest()))); } return valid.booleanValue(); }
public CreateConnectionResult(ConnectionDelegate del)
public CreateConnectionResult(ConnectionDelegate delegate)
public CreateConnectionResult(ConnectionDelegate del) { this.delegate = del; }
this.delegate = del;
this(delegate, Integer.MIN_VALUE);
public CreateConnectionResult(ConnectionDelegate del) { this.delegate = del; }
throw new InvalidDestinationException("null clientID");
throw new JMSException("null clientID on connection");
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
private ResourceManager()
public ResourceManager(ConnectionDelegate connection)
private ResourceManager() { }
this.connection = connection;
private ResourceManager() { }
public void addAck(Object Xid, Object ack)
public void addAck(Object Xid, AckInfo ackInfo)
public void addAck(Object Xid, Object ack) { LocalTx tx = getTx(Xid); tx.addAck(ack); }
LocalTx tx = getTx(Xid); tx.addAck(ack);
TxInfo tx = getTx(Xid); tx.addAck(ackInfo);
public void addAck(Object Xid, Object ack) { LocalTx tx = getTx(Xid); tx.addAck(ack); }
LocalTx tx = getTx(Xid);
TxInfo tx = getTx(Xid);
public void addMessage(Object Xid, Message m) { LocalTx tx = getTx(Xid); tx.addMessage(m); }
public Object commit(Object Xid, SessionDelegate sd) throws JMSException
public Object commit(Object Xid) throws JMSException
public Object commit(Object Xid, SessionDelegate sd) throws JMSException { log.debug("Committing tx: " + Xid); LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transact...
LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transactions.remove(Xid);
try { TxInfo tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); connection.sendTransaction(tx); } } catch (Throwable t) { log.error("Failed to commit tx", t); throw new TransactionRolledBackException("Failed to commit tx: " + t.getMessage()); } finally { ...
public Object commit(Object Xid, SessionDelegate sd) throws JMSException { log.debug("Committing tx: " + Xid); LocalTx tx = getTx(Xid); if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0) { log.debug("There is stuff to send"); sd.sendTransaction(tx); } transact...
LocalTx tx = new LocalTx(getNextTxId());
TxInfo tx = new TxInfo(getNextTxId());
public Object createLocalTx() { LocalTx tx = new LocalTx(getNextTxId()); transactions.put(tx.getId(), tx); return tx.getId(); }
private LocalTx getTx(Object Xid)
private TxInfo getTx(Object Xid)
private LocalTx getTx(Object Xid) { LocalTx tx = (LocalTx) transactions.get(Xid); if (tx == null) throw new IllegalArgumentException("No such Xid:" + Xid); return tx; }
LocalTx tx = (LocalTx) transactions.get(Xid);
TxInfo tx = (TxInfo) transactions.get(Xid);
private LocalTx getTx(Object Xid) { LocalTx tx = (LocalTx) transactions.get(Xid); if (tx == null) throw new IllegalArgumentException("No such Xid:" + Xid); return tx; }
LocalTx tx = getTx(Xid);
TxInfo tx = getTx(Xid);
public Object rollback(Object Xid) { log.debug("Rolling back tx: " + Xid); LocalTx tx = getTx(Xid); transactions.remove(Xid); return createLocalTx(); }
protected Message createMessage(int i) throws Exception
protected Message createMessage(byte i) throws Exception
protected Message createMessage(int i) throws Exception { Map headers = generateFilledMap(true); Message m = new CoreMessage(new GUID().toString(), true, System.currentTimeMillis() + 1000 * 60 * 60, System.currentTimeMillis(), i, header...
messages[i] = createMessage(i);
messages[i] = createMessage((byte)i);
protected Message[] createMessages() throws Exception { //Generate some messages with a good range of attribute values Message[] messages = new Message[10]; for (int i = 0; i < 10; i++) { messages[i] = createMessage(i); } return messages; }
Message m1 = createMessage(4); Message m2 = createMessage(4); Message m3 = createMessage(4); Message m4 = createMessage(4); Message m5 = createMessage(4);
Message m1 = createMessage((byte)4); Message m2 = createMessage((byte)4); Message m3 = createMessage((byte)4); Message m4 = createMessage((byte)4); Message m5 = createMessage((byte)4);
protected void nonXARecovery(boolean guid, boolean storeXid) throws Exception { JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.setTxIdGuid(guid); Properties props; if (guid) { props = getConfigTablesForGUID(); tl.set...
Message m6 = createMessage(4); Message m7 = createMessage(4); Message m8 = createMessage(4);
Message m6 = createMessage((byte)4); Message m7 = createMessage((byte)4); Message m8 = createMessage((byte)4);
protected void nonXARecovery(boolean guid, boolean storeXid) throws Exception { JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.setTxIdGuid(guid); Properties props; if (guid) { props = getConfigTablesForGUID(); tl.set...
int priority,
byte priority,
public CoreMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, int priority, Map headers, Serializable payload) { super(messageID, reliable, expiration, ...
if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); }
if (trace) { log.trace(this + " referencing " + m); }
public MessageReference reference(Message m) { MessageReference ref = super.reference(m); if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } if (m.isReliable()) { try { storeMessage(m); } catch (Exception e) { ...
if (log.isTraceEnabled()) { log.trace("stored " + m + " on disk"); }
if (trace) { log.trace("stored " + m + " on disk"); }
public MessageReference reference(Message m) { MessageReference ref = super.reference(m); if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } if (m.isReliable()) { try { storeMessage(m); } catch (Exception e) { ...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(selectReferenceCount, id) + " returned " + (referenceCount == 0 ? "no rows" : Integer.toString(referenceCount))); }
if (trace) { log.trace(JDBCUtil.statementToString(selectReferenceCount, id) + " returned " + (referenceCount == 0 ? "no rows" : Integer.toString(referenceCount))); }
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
ps.setInt(5, m.getPriority());
ps.setByte(5, m.getPriority());
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
String connectionID = null;
int connectionID = -1;
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
ps.setString(16, connectionID);
ps.setInt(16, connectionID);
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(insertMessage, id) + " inserted " + result + " row(s)"); }
if (trace) { log.trace(JDBCUtil.statementToString(insertMessage, id) + " inserted " + result + " row(s)"); }
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(updateReferenceCount, new Integer(referenceCount), id) + " executed successfully"); }
if (trace) { log.trace(JDBCUtil.statementToString(updateReferenceCount, new Integer(referenceCount), id) + " executed successfully"); }
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(insertMessage, id) + " failed"); }
if (trace) { log.trace(JDBCUtil.statementToString(insertMessage, id) + " failed"); }
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count from the da...
if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); }
if (trace) { log.trace("Retreived it from persistent storage:" + m); }
public Message retrieveMessage(String messageId) throws Exception { Message m = super.retrieveMessage(messageId); if (m == null) { m = getMessage(messageId); if (m != null) { super.addMessage(m); if (log.isTraceEnabled()) { log...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(selectReferenceCount, messageID) + " returned " + (referenceCount == 0 ? "no rows" : Integer.toString(referenceCount))); }
if (trace) { log.trace(JDBCUtil.statementToString(selectReferenceCount, messageID) + " returned " + (referenceCount == 0 ? "no rows" : Integer.toString(referenceCount))); }
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare...
if (log.isTraceEnabled()) { log.trace("no message " + messageID + " to delete in the database"); }
if (trace) { log.trace("no message " + messageID + " to delete in the database"); }
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(deleteMessage, messageID) + " deleted " + rows + " row(s)"); }
if (trace) { log.trace(JDBCUtil.statementToString(deleteMessage, messageID) + " deleted " + rows + " row(s)"); }
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare...
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(updateReferenceCount, new Integer(referenceCount), messageID) + " executed successfully"); }
if (trace) { log.trace(JDBCUtil.statementToString(updateReferenceCount, new Integer(referenceCount), messageID) + " executed successfully"); }
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.prepare...
StringBuffer sb = new StringBuffer("ClusteredConnFactoryDelegate[");
StringBuffer sb = new StringBuffer("ClusteredConnectionFactoryDelegate[");
public String toString() { StringBuffer sb = new StringBuffer("ClusteredConnFactoryDelegate["); sb.append(id).append("]["); if (delegates == null) { sb.append("-]"); } else { for(int i = 0; i < delegates.length; i++) { sb.append(delegates[i].get...
org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentElement(), "
NodeList nl = doc.getChildNodes();
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentEleme...
org.w3c.dom.Node piNode = nl.item(i); String pi = piNode.getNodeValue();
String pi = piNode.getData();
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentEleme...
Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) {
Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; for (int i = 0; i < p.length; i++)
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
return getInstance(algorithm, provs[i]);
return getInstance(algorithm, p[i]);
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
catch (NoSuchAlgorithmException nsae)
catch (NoSuchAlgorithmException x)
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
msg = nsae.getMessage(); }
lastException = x;
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
throw new NoSuchAlgorithmException(msg);
if (lastException != null) throw lastException; throw new NoSuchAlgorithmException(algorithm);
public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); String msg = algorithm; for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } ca...
JoinDescriptor descriptor = (JoinDescriptor)getDescriptor(); conditionsModel.setList(descriptor.getConditions());
JoinDescriptor descriptor = (JoinDescriptor)getDescriptor(); if(descriptor.getConditions().size() == 0) { ConditionsDescriptor conditions = DescriptorFactory.getFactory().createConditionsDescriptor(); descriptor.getConditions().add(conditions); } conditionsModel.setList(((ConditionsDescriptor)descriptor.getConditions()...
protected void updateView() { JoinDescriptor descriptor = (JoinDescriptor)getDescriptor(); conditionsModel.setList(descriptor.getConditions()); connector.setSource(descriptor); // if (cell.getJoinDescriptor().getResult() != null) { // List list = new ArrayList(); // list.add(cell.getJoinDescri...
WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { throw new IllegalArgumentException("No such workflow id " + id); } if (entry.getState() != WorkflowEntry.ACTIVATED) { log.debug("--> state is " + entry.getState()); return new int[0]; } WorkflowDescriptor wf = ge...
return getAvailableActions(id, new HashMap());
public int[] getAvailableActions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { throw new IllegalArgumentException("No such workflow id " + id); } if (entry.getState() != Workfl...
postmodify(i);
postmodify(rows[i]);
private void postmodify() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postmodify(i); } }
postModel.remove(i);
postModel.remove(rows[i]);
private void postremove() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postModel.remove(i); } }
premodify(i);
premodify(rows[i]);
private void premodify() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { premodify(i); } }
preModel.remove(i);
preModel.remove(rows[i]);
private void preremove() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { preModel.remove(i); } }
sb.append("-box(" + x + "," + y + ")-(" + width + "Xx" + height + ")");
sb.append("-box(" + x + "," + y + ")-(" + width + "x" + height + ")");
public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ...
/*if (getContent() == null) {
if (content == null) {
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append(" (" + x + "," + y + ")->(" + width + " Xx " + height + ")");
String nm = content.getClass().getName(); nm = nm.substring(nm.lastIndexOf('.')+1,nm.length()); sb.append(nm); sb.append("-"); if(content.getElement() != null) { sb.append(content.getElement().getNodeName()); } } sb.append(" (" + x + "," + y + ")->(" + width + " x " + height + ")");
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
sb.append(" color: " + color + " background-color: " + background_color + " ");
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append...
throw new JBossJMSException("Failed to create connection stub", e);
throw new MessagingJMSException("Failed to create connection stub", e);
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurityManager().authenticate(username, password); // see if there is ...
throw new JBossJMSException("Failed to get id block", e);
throw new MessagingJMSException("Failed to get id block", e);
public IdBlock getIdBlock(int size) throws JMSException { try { return serverPeer.getMessageIdManager().getIdBlock(size); } catch (Exception e) { throw new JBossJMSException("Failed to get id block", e); } }