[prev in list] [next in list] [prev in thread] [next in thread]
List: openorb-commits
Subject: [openorb-commits] CVS: TransactionService/src/examples/org/openorb/ots/examples/withres AccountImpl.
From: Michael Rumpf <mrumpf () users ! sourceforge ! net>
Date: 2003-02-28 14:19:51
[Download RAW message or body]
Update of /cvsroot/openorb/TransactionService/src/examples/org/openorb/ots/examples/withres
In directory sc8-pr-cvs1:/tmp/cvs-serv25173/src/examples/org/openorb/ots/examples/withres
Modified Files:
AccountImpl.java AccountResourceImpl.java
Log Message:
Fixed an infinite recursion.
Index: AccountImpl.java
===================================================================
RCS file: /cvsroot/openorb/TransactionService/src/examples/org/openorb/ots/examples/withres/AccountImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- AccountImpl.java 16 Oct 2002 14:14:35 -0000 1.1
+++ AccountImpl.java 28 Feb 2003 14:19:48 -0000 1.2
@@ -93,7 +93,7 @@
}
}
System.out.println( "Create a new resource for " + m_name );
- resource = new AccountResourceImpl( _poa(), coordinator, this, m_name );
+ resource = new AccountResourceImpl( _poa(), coordinator, this, \
m_balance, m_name ); AccountResource res = resource._this( m_orb );
coordinator.register_resource( res );
m_resources.addElement( resource );
Index: AccountResourceImpl.java
===================================================================
RCS file: /cvsroot/openorb/TransactionService/src/examples/org/openorb/ots/examples/withres/AccountResourceImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- AccountResourceImpl.java 16 Oct 2002 14:14:35 -0000 1.1
+++ AccountResourceImpl.java 28 Feb 2003 14:19:48 -0000 1.2
@@ -27,13 +27,14 @@
private org.omg.PortableServer.POA m_poa;
public AccountResourceImpl( org.omg.PortableServer.POA poa,
- org.omg.CosTransactions.Coordinator coordinator, AccountImpl account, \
String name ) + org.omg.CosTransactions.Coordinator coordinator, AccountImpl \
account, + float initial_balance, String name )
{
m_coordinator = coordinator;
m_name = name;
m_poa = poa;
m_account = account;
- m_initial_balance = account.balance();
+ m_initial_balance = initial_balance;
m_current_balance = m_initial_balance;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
openorb-commits mailing list
openorb-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openorb-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic