rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (messageReadWrite)
if (bodyWriteOnly)
public short readShort() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is ...
if (messageReadWrite)
if (bodyWriteOnly)
public String readString() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) { position++; return...
messageReadWrite = false;
bodyWriteOnly = false;
public void reset() throws JMSException { messageReadWrite = false; position = 0; size = content.size(); offset = 0; }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeBoolean(boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(Primitives.valueOf(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeByte(byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Byte(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeBytes(byte[] value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(value.clone()); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeChar(char value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Character(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeDouble(double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Double(value)); }
out.writeBoolean(bodyWriteOnly);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(content); out.writeInt(position); out.writeInt(offset); out.writeInt(size); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeFloat(float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Float(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeInt(int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Integer(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeLong(long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Long(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeObject(Object value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else if (value instanceof Boolean) content.add(value); else if (value instance...
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeShort(short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); content.add(new Short(value)); }
if (!messageReadWrite)
if (!bodyWriteOnly)
public void writeString(String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) content.add(null); else content.add(value); }
updateAllReliableRefs = sqlProperties.getProperty("UPDATE_ALL_RELIABLE_REFS", updateAllReliableRefs);
updateReliableRefsNotLoaded = sqlProperties.getProperty("UPDATE_RELIABLE_REFS_NOT_LOADED", updateReliableRefsNotLoaded);
protected void initSqlProperties() { //Message Reference createMessageReference = sqlProperties.getProperty("CREATE_MESSAGE_REF", createMessageReference); createIdxMessageRefTx = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_TX", createIdxMessageRefTx); createIdxMessageRefOrd = sqlPropertie...
ps.close(); ps = null; log.debug("Updating all reliable references to not loaded"); ps = conn.prepareStatement(updateAllReliableRefs); rows = ps.executeUpdate(); if (trace) { log.trace(JDBCUtil.statementToString(updateAllReliableRefs) + " updated " + rows + " rows"); } ps.close();
ps.close();
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...
ms = new PagingMessageStore("s33");
ms = new SimpleMessageStore("s33");
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); tl = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)tl).start(); ms = new PagingMessageStore("s33"); }
public List doRemoteBrowse(Filter filter)
List doRemoteBrowse(Filter filter)
public List doRemoteBrowse(Filter filter) { if (log.isTraceEnabled()) { log.trace(this + " remote browse" + (filter == null ? "" : ", filter = " + filter)); } RpcServerCall rpcServerCall = new RpcServerCall(queue.getName(), "remoteBrowse", new Object[] {getPeerIden...
long actionId = DataUtil.getLong((Long) value);
long actionId = DataUtil.getInt((Integer) value);
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
return true;
expressionResult = true; break;
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
return false;
break;
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
return false;
if (expression.isNegate()) { return !expressionResult; } else { return expressionResult; }
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
long actionId = DataUtil.getLong((Long) value);
long actionId = DataUtil.getInt((Integer) value);
private boolean queryEquals(Long entryId, int field, int type, Object value) { List steps; if (type == WorkflowQuery.CURRENT) { steps = (List) currentStepsCache.get(entryId); } else { steps = (List) historyStepsCache.get(entryId); } switch (field) { ca...
if (!(content instanceof ReplacedContent)) {
if (!(content instanceof InlineBlockContent)) {
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
if (content instanceof ReplacedContent) {
if (content instanceof InlineBlockContent) {
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text...
public CalculatedStyle getStyle() { return _style;
public CascadedStyle getStyle() { return null;
public CalculatedStyle getStyle() { return _style; }
log.debug("deleted " + rows);
log.debug("JMS_MESSAGE_REFERENCE: deleted " + rows);
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
log.debug("deleted " + rows);
log.debug("JMS_MESSAGE: deleted " + rows);
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
log.debug("deleted " + rows);
log.debug("JMS_TRANSACTION: deleted " + rows);
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
log.debug("deleted " + rows);
log.debug("JMS_COUNTER: deleted " + rows);
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
log.debug("deleted " + rows);
log.debug("JMS_USER: deleted " + rows);
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
log.debug("done with the database");
protected void deleteAllData() throws Exception { try { log.info("DELETING ALL DATA FROM DATABASE!"); InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lo...
log.debug("loaded JNDI context");
public void start() throws Exception { try { readConfigurationFile(); configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails be...
ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq);
org.jboss.messaging.core.local.Queue q = (org.jboss.messaging.core.local.Queue)cm.getCoreDestination(jbq);
public int getMessageCount() throws JMSException { if (!started) { log.warn("Queue is stopped."); return 0; } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); return q.getMessageCount(); }
ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq);
org.jboss.messaging.core.local.Queue q = (org.jboss.messaging.core.local.Queue)cm.getCoreDestination(jbq);
public List listMessages(String selector) throws JMSException { if (!started) { log.warn("Queue is stopped."); return new ArrayList(); } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); try { return q...
return q.getMessages(trimSelector(selector));
List msgs; if (selector == null) { msgs = q.browse(); } else { msgs = q.browse(new Selector(selector)); } return msgs;
public List listMessages(String selector) throws JMSException { if (!started) { log.warn("Queue is stopped."); return new ArrayList(); } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); try { return q...
ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq);
org.jboss.messaging.core.local.Queue q = (org.jboss.messaging.core.local.Queue)cm.getCoreDestination(jbq);
public void removeAllMessages() throws JMSException { if (!started) { log.warn("Queue is stopped."); return; } JBossQueue jbq = new JBossQueue(name); ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq); q.removeAllMessages(); }
if ((file != null) && (file.indexOf('/') > -1)) {
if (file != null && file.indexOf('/') > -1) {
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId == null) { return null; } URL url = new URL(systemId); String file = url.getFile(); if ((file != null) && (file.indexOf('/') > -1)) { file = fil...
if ("www.opensymphony.com".equals(url.getHost())) {
if ("www.opensymphony.com".equals(url.getHost()) && systemId.endsWith(".dtd")) {
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (systemId == null) { return null; } URL url = new URL(systemId); String file = url.getFile(); if ((file != null) && (file.indexOf('/') > -1)) { file = fil...
c.getGraphics().translate( box.x, box.y );
c.translate( box.x, box.y );
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
c.getGraphics().translate( -box.x, -box.y );
c.translate( -box.x, -box.y );
public static void paintInlineContext( Context c, Box box ) { BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.getGraphics().translate( box.x, box.y ); // for each line box c.getGraphics().setColor( Color.black...
}
for (int i = 0; i < mime_strings.length; i++) mime_types.put(mime_strings[i][0], mime_strings[i][1]); try { String file = SystemProperties.getProperty("gnu.classpath.mime.types.file"); if (file != null) fillFromFile(mime_types, file); } catch (IOException ignore) { } }
public MimeTypeMapper() { // Do nothing here. }
throws NotImplementedException
protected void installKeyboardActions(JScrollPane sp) { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. }
throws NotImplementedException
protected void uninstallKeyboardActions(JScrollPane sp) { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. }
public Dimension minimumLayoutSize(Container parent) { return null; }
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension colum...
public Dimension minimumLayoutSize(Container parent) { return null; // TODO } // minimumLayoutSize()
propertyChangeListener = new PropertyChangeHandler();
public BasicMenuItemUI() { mouseInputListener = createMouseInputListener(menuItem); menuDragMouseListener = createMenuDragMouseListener(menuItem); menuKeyListener = createMenuKeyListener(menuItem); itemListener = new ItemHandler(); }
menuItem.setOpaque(true);
protected void installDefaults() { String prefix = getPropertyPrefix(); LookAndFeel.installBorder(menuItem, prefix + ".border"); LookAndFeel.installColorsAndFont(menuItem, prefix + ".background", prefix + ".foreground", prefix + ".font"); menuItem.setMargin(UIManager.g...
InputMap focusedWindowMap = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (focusedWindowMap == null) focusedWindowMap = new ComponentInputMapUIResource(menuItem); focusedWindowMap.put(menuItem.getAccelerator(), "doClick"); SwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOC...
protected void installKeyboardActions() { // FIXME: Need to implement }
menuItem.addPropertyChangeListener(propertyChangeListener);
protected void installListeners() { menuItem.addMouseListener(mouseInputListener); menuItem.addMouseMotionListener(mouseInputListener); menuItem.addMenuDragMouseListener(menuDragMouseListener); menuItem.addMenuKeyListener(menuKeyListener); menuItem.addItemListener(itemListener); }
installKeyboardActions();
public void installUI(JComponent c) { super.installUI(c); menuItem = (JMenuItem) c; installDefaults(); installComponents(menuItem); installListeners(); }
Dimension size = getPreferredSize(menuItem); Color foreground = g.getColor(); g.setColor(bgColor); g.drawRect(0, 0, size.width, size.height); g.setColor(foreground);
ButtonModel mod = menuItem.getModel(); if ((menuItem.isSelected() && checkIcon == null) || (mod != null && mod.isArmed()) && (menuItem.getParent() instanceof MenuElement)) { if (menuItem.isContentAreaFilled()) { g.setColor(selectionBackground); g.fillRect(0, 0, menuItem.getWidth(), menuItem.getHeight()); } }
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { Dimension size = getPreferredSize(menuItem); Color foreground = g.getColor(); g.setColor(bgColor); g.drawRect(0, 0, size.width, size.height); g.setColor(foreground); }
ButtonModel mod = m.getModel(); if ((m.isSelected() && checkIcon == null) || (mod != null && mod.isArmed()) && (m.getParent() instanceof MenuElement)) { if (m.isContentAreaFilled()) { g.setColor(selectionBackground); g.fillRect(br.x, br.y, br.width, br.height); } } else { if (m.isContentAreaFilled()) { g.setColor(m.get...
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
SwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW, null);
protected void uninstallKeyboardActions() { // FIXME: need to implement }
menuItem.removePropertyChangeListener(propertyChangeListener);
protected void uninstallListeners() { menuItem.removeMouseListener(mouseInputListener); menuItem.removeMenuDragMouseListener(menuDragMouseListener); menuItem.removeMenuKeyListener(menuKeyListener); menuItem.removeItemListener(itemListener); }
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y) { g.drawString(text, x, y); }
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y) { int index = -1; if ((underlinedChar >= 0) || (underlinedChar <= 0xffff)) index = text.toLowerCase().indexOf( Character.toLowerCase((char) underlinedChar)); drawStringUnderlineCharAt(g, text, index, x, y); }
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y) { g.drawString(text, x, y); }
overall.translate(PAGE_PAINTING_CLEARANCE - 1, PAGE_PAINTING_CLEARANCE - 1); overall.width -= PAGE_PAINTING_CLEARANCE*2 - 1; overall.height -= PAGE_PAINTING_CLEARANCE*2 - 1; g.drawRect(overall.x, overall.y, overall.width, overall.height);
g.drawRect(overall.x - 1, overall.y - 1, overall.width + 1, overall.height + 1);
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
int top = page.getPaintingTop() + PAGE_PAINTING_CLEARANCE
int top = page.getPaintingTop()
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
g.setClip(working); page.paintAlternateFlows(c, root, PAGE_PAINTING_CLEARANCE); page.paintBorder(c, PAGE_PAINTING_CLEARANCE);
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test1PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
Message m3 = cons.receive(3000);
Message m3 = cons.receive(1000);
public void test1PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test1PCReceiveRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); Session sessProducer = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); ...
TextMessage m3 = (TextMessage)cons.receive(3000);
TextMessage m3 = (TextMessage)cons.receive(1000);
public void test1PCReceiveRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); Session sessProducer = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); ...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test1PCSendCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); tm.begin(); XASession sess = conn.createXASession...
Message m2 = cons.receive(3000);
Message m2 = cons.receive(1000);
public void test1PCSendRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); tm.begin(); XASession sess = conn.createXASession(); ...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test2PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
Message m3 = cons.receive(3000);
Message m3 = cons.receive(1000);
public void test2PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Sessio...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test2PCReceiveRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); Session sessProducer = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); ...
TextMessage m3 = (TextMessage)cons.receive(3000);
TextMessage m3 = (TextMessage)cons.receive(1000);
public void test2PCReceiveRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); Session sessProducer = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); ...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test2PCSendCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); tm.begin(); XASession sess = conn.createXASession...
Message m2 = cons.receive(3000);
Message m2 = cons.receive(1000);
public void test2PCSendRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); tm.begin(); XASession sess = conn.createXASession(); ...
return new JBossSession(this.delegate, sessionDelegate, isXA,
return new JBossSession(sessionDelegate, isXA,
protected JBossSession createSessionInternal(boolean transacted, int acknowledgeMode, boolean isXA, int type) throws JMSException { SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode); return new JBossSession(this.de...
{ return null; }
{ return c.getAccessibleContext().getAccessibleChild(i); }
public Accessible getAccessibleChild(JComponent c, int i) { //Return the nth Accessible child of the object. return null; }
{ return 0; }
{ return c.getAccessibleContext().getAccessibleChildrenCount(); }
public int getAccessibleChildrenCount(JComponent c) { //Returns the number of accessible children in the object. return 0; }
Connector server = null;
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; int count = 0; Connector server = null; ...
String serializationType = null;
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; int count = 0; Connector server = null; ...
callbackServerURI = "sslsocket: CALLBACK_SERVER_PARAMS + "&useClientMode=true"; }
callbackServerURI = "sslsocket: "&" + SSLSocketBuilder.REMOTING_SERVER_SOCKET_USE_CLIENT_MODE + "=true"; }
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; int count = 0; Connector server = null; ...
return !channel().isOpen();
return channel().isOpen();
public boolean isValid () { return !channel().isOpen(); }
if (started)
try
public synchronized void start() throws Exception { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); JDBCPersistenceManager jpm = new JDBCPersistenceManager()...
return;
if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); JDBCPersistenceManager jpm = new JDBCPersistenceManager(); jpm.start(); pm = jpm; txRepository = new TransactionRepository(pm); txRepository.loadPreparedTransactions(); ms = new ...
public synchronized void start() throws Exception { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); JDBCPersistenceManager jpm = new JDBCPersistenceManager()...
loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); JDBCPersistenceManager jpm = new JDBCPersistenceManager(); jpm.start(); pm = jpm; txRepository = new TransactionRepository(pm); ms = new PersistentMessageStore(serverPeerID, pm); clientManager = new Clie...
catch (Exception e) { log.error("Failed to start", e); }
public synchronized void start() throws Exception { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); JDBCPersistenceManager jpm = new JDBCPersistenceManager()...
public boolean doAccessibleAction(int value0) throws NotImplementedException
public boolean doAccessibleAction(int actionIndex)
public boolean doAccessibleAction(int value0) throws NotImplementedException { return false; // TODO }
return false;
boolean retVal = false; if (actionIndex == 0) { doClick(); retVal = true; } return retVal;
public boolean doAccessibleAction(int value0) throws NotImplementedException { return false; // TODO }
throws NotImplementedException
public AccessibleAction getAccessibleAction() throws NotImplementedException { return null; // TODO }
return null;
return this;
public AccessibleAction getAccessibleAction() throws NotImplementedException { return null; // TODO }
return 0;
return 1;
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO }
public String getAccessibleActionDescription(int value0) throws NotImplementedException
public String getAccessibleActionDescription(int actionIndex)
public String getAccessibleActionDescription(int value0) throws NotImplementedException { return null; // TODO }
return null;
String descr = null; if (actionIndex == 0) { descr = UIManager.getString("AbstractButton.clickText"); } return descr;
public String getAccessibleActionDescription(int value0) throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public AccessibleIcon[] getAccessibleIcon() throws NotImplementedException { return null; // TODO }
return null;
AccessibleIcon[] ret = null; Icon icon = getIcon(); if (icon instanceof Accessible) { AccessibleContext ctx = ((Accessible) icon).getAccessibleContext(); if (ctx instanceof AccessibleIcon) { ret = new AccessibleIcon[]{ (AccessibleIcon) ctx }; } } return ret;
public AccessibleIcon[] getAccessibleIcon() throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public AccessibleRelationSet getAccessibleRelationSet() throws NotImplementedException { // TODO: What should be modified here? return super.getAccessibleRelationSet(); }
return super.getAccessibleRelationSet();
AccessibleRelationSet relations = super.getAccessibleRelationSet(); ButtonModel model = getModel(); if (model instanceof DefaultButtonModel) { ButtonGroup group = ((DefaultButtonModel) model).getGroup(); if (group != null) { Object[] target = new Object[group.getButtonCount()]; Enumeration els = group.getElements(); f...
public AccessibleRelationSet getAccessibleRelationSet() throws NotImplementedException { // TODO: What should be modified here? return super.getAccessibleRelationSet(); }
throws NotImplementedException
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return null; // TODO }
return null;
AccessibleStateSet state = super.getAccessibleStateSet(); if (getModel().isArmed()) state.add(AccessibleState.ARMED); if (getModel().isPressed()) state.add(AccessibleState.PRESSED); if (isSelected()) state.add(AccessibleState.CHECKED); return state;
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public AccessibleText getAccessibleText() throws NotImplementedException { return null; // TODO }
return null;
AccessibleText accessibleText = null; if (getClientProperty(BasicHTML.propertyKey) != null) accessibleText = this; return accessibleText;
public AccessibleText getAccessibleText() throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public AccessibleValue getAccessibleValue() throws NotImplementedException { return null; // TODO }
return null;
return this;
public AccessibleValue getAccessibleValue() throws NotImplementedException { return null; // TODO }
throws NotImplementedException
public int getCaretPosition() throws NotImplementedException { return 0; // TODO }
return 0;
return -1;
public int getCaretPosition() throws NotImplementedException { return 0; // TODO }