TradeEJBs
Trade Session EJB manages all Trading services
TradeEJB
TradeEJB
com.ibm.websphere.samples.trade.ejb.TradeHome
com.ibm.websphere.samples.trade.ejb.Trade
com.ibm.websphere.samples.trade.ejb.TradeBean
Stateless
Container
orderBySQLSupported
java.lang.Boolean
true
updateQuotePrices
java.lang.Boolean
true
publishQuotePriceChange
java.lang.Boolean
true
ejb/Trade
Session
com.ibm.websphere.samples.trade.ejb.TradeHome
com.ibm.websphere.samples.trade.ejb.Trade
TradeEJB
ejb/Quote
Entity
com.ibm.websphere.samples.trade.ejb.LocalQuoteHome
com.ibm.websphere.samples.trade.ejb.LocalQuote
QuoteEJB
ejb/Account
Entity
com.ibm.websphere.samples.trade.ejb.LocalAccountHome
com.ibm.websphere.samples.trade.ejb.LocalAccount
AccountEJB
ejb/Holding
Entity
com.ibm.websphere.samples.trade.ejb.LocalHoldingHome
com.ibm.websphere.samples.trade.ejb.LocalHolding
HoldingEJB
ejb/Order
Entity
com.ibm.websphere.samples.trade.ejb.LocalOrderHome
com.ibm.websphere.samples.trade.ejb.LocalOrder
OrderEJB
ejb/KeySequence
Session
com.ibm.websphere.samples.trade.ejb.LocalKeySequenceHome
com.ibm.websphere.samples.trade.ejb.LocalKeySequence
KeySequenceEJB
ejb/AccountProfile
Entity
com.ibm.websphere.samples.trade.ejb.LocalAccountProfileHome
com.ibm.websphere.samples.trade.ejb.LocalAccountProfile
AccountProfileEJB
jms/QueueConnectionFactory
javax.jms.QueueConnectionFactory
Application
Shareable
jms/TopicConnectionFactory
javax.jms.TopicConnectionFactory
Application
Shareable
jdbc/TradeDataSource
javax.sql.DataSource
Container
Shareable
jms/TradeBrokerQueue
javax.jms.Queue
Produces
TradeBrokerQueue
jms/TradeStreamerTopic
javax.jms.Topic
Produces
TradeStreamerTopic
HoldingEJB
HoldingEJB
com.ibm.websphere.samples.trade.ejb.LocalHoldingHome
com.ibm.websphere.samples.trade.ejb.LocalHolding
com.ibm.websphere.samples.trade.ejb.HoldingBean
Container
java.lang.Integer
false
2.x
Holding
purchasePrice
holdingID
quantity
purchaseDate
holdingID
ejbSelectQuoteFromSymbol
java.lang.String
Local
SELECT OBJECT(q) from Quote q WHERE q.symbol = ?1
findAll
Local
SELECT OBJECT(h) from Holding h
findByUserID
java.lang.String
Local
SELECT OBJECT(h) FROM Holding h WHERE
h.account.profile.userID = ?1
findByAccountID
java.lang.Integer
Local
SELECT OBJECT(h) FROM Holding h WHERE
h.account.accountID = ?1
findByPrimaryKeyForUpdate
java.lang.Integer
Local
SELECT OBJECT(h) FROM Holding h WHERE
h.holdingID = ?1
TradeBrokerMDB
TradeBrokerMDB
com.ibm.websphere.samples.trade.ejb.TradeBrokerMDB
Container
javax.jms.Queue
TradeBrokerQueue
statInterval
java.lang.Integer
100
ejb/Trade
Session
com.ibm.websphere.samples.trade.ejb.TradeHome
com.ibm.websphere.samples.trade.ejb.Trade
TradeEJB
AccountProfileEJB
AccountProfileEJB
com.ibm.websphere.samples.trade.ejb.LocalAccountProfileHome
com.ibm.websphere.samples.trade.ejb.LocalAccountProfile
com.ibm.websphere.samples.trade.ejb.AccountProfileBean
Container
java.lang.String
false
2.x
AccountProfile
address
passwd
userID
email
creditCard
fullName
userID
findAll
Local
SELECT OBJECT(a) FROM AccountProfile a
findByPrimaryKeyForUpdate
java.lang.String
Local
SELECT OBJECT(a) FROM AccountProfile a where
a.userID = ?1
Stock price quotes including current, open, high, low, etc.
QuoteEJB
QuoteEJB
com.ibm.websphere.samples.trade.ejb.QuoteHome
com.ibm.websphere.samples.trade.ejb.Quote
com.ibm.websphere.samples.trade.ejb.LocalQuoteHome
com.ibm.websphere.samples.trade.ejb.LocalQuote
com.ibm.websphere.samples.trade.ejb.QuoteBean
Container
java.lang.String
false
2.x
Quote
low
open
volume
price
high
companyName
symbol
change
symbol
findAll
Local
SELECT OBJECT(q) FROM Quote q
findQuotes
java.lang.String
Local
SELECT OBJECT(q) FROM Quote q
findOne
Local
SELECT OBJECT(q) FROM Quote q where q.symbol = 's:0'
findTSIAQuotesOrderByChange
Local
SELECT OBJECT(q) FROM Quote q WHERE q.symbol LIKE 's:1__' ORDER BY q.change DESC
ejbSelectTotalVolume
Local
SELECT q.volume FROM Quote q
findTSIAQuotes
Local
SELECT OBJECT(q) FROM Quote q WHERE q.symbol LIKE 's:1__'
findByPrimaryKeyForUpdate
java.lang.String
Local
SELECT OBJECT(q) FROM Quote q where q.symbol = ?1
KeySequenceEJB
KeySequenceEJB
com.ibm.websphere.samples.trade.ejb.LocalKeySequenceHome
com.ibm.websphere.samples.trade.ejb.LocalKeySequence
com.ibm.websphere.samples.trade.ejb.KeySequenceBean
Stateless
Container
ejb/KeyGen
Entity
com.ibm.websphere.samples.trade.ejb.LocalKeyGenHome
com.ibm.websphere.samples.trade.ejb.LocalKeyGen
KeyGenEJB
KeyGenEJB
KeyGenEJB
com.ibm.websphere.samples.trade.ejb.LocalKeyGenHome
com.ibm.websphere.samples.trade.ejb.LocalKeyGen
com.ibm.websphere.samples.trade.ejb.KeyGenBean
Container
java.lang.String
false
2.x
KeyGen
keyVal
keyName
keyName
findByPrimaryKeyForUpdate
java.lang.String
Local
SELECT OBJECT(kg) FROM KeyGen kg where
kg.keyName = ?1
AccountEJB
AccountEJB
com.ibm.websphere.samples.trade.ejb.LocalAccountHome
com.ibm.websphere.samples.trade.ejb.LocalAccount
com.ibm.websphere.samples.trade.ejb.AccountBean
Container
java.lang.Integer
false
2.x
Account
creationDate
openBalance
logoutCount
balance
accountID
lastLogin
loginCount
accountID
ejb/AccountProfile
Entity
com.ibm.websphere.samples.trade.ejb.LocalAccountProfileHome
com.ibm.websphere.samples.trade.ejb.LocalAccountProfile
AccountProfileEJB
findByUserID
java.lang.String
SELECT OBJECT(a) FROM Account a WHERE
a.profile.userID = ?1
findAll
SELECT OBJECT(a) FROM Account a
findByUserIDForUpdate
java.lang.String
Local
SELECT OBJECT(a) FROM Account a WHERE
a.profile.userID = ?1
ejbSelectClosedOrders
java.lang.Integer
SELECT o.orderID FROM Orders o WHERE
o.orderStatus = 'closed' AND o.account.accountID = ?1
findByPrimaryKeyForUpdate
java.lang.Integer
Local
SELECT OBJECT(a) FROM Account a where
a.accountID = ?1
OrderEJB
OrderEJB
com.ibm.websphere.samples.trade.ejb.LocalOrderHome
com.ibm.websphere.samples.trade.ejb.LocalOrder
com.ibm.websphere.samples.trade.ejb.OrderBean
Container
java.lang.Integer
false
2.x
Orders
orderFee
completionDate
orderType
orderStatus
price
quantity
openDate
orderID
orderID
findAll
Local
SELECT OBJECT(o) FROM Orders o
findClosedOrders
java.lang.String
Local
SELECT OBJECT(o) FROM Orders o WHERE
o.orderStatus = 'closed' AND
o.account.profile.userID = ?1
findByUserID
java.lang.String
Local
SELECT OBJECT(o) FROM Orders o WHERE
o.account.profile.userID = ?1 ORDER BY o.orderID DESC
findByPrimaryKeyForUpdate
java.lang.Integer
Local
SELECT OBJECT(o) FROM Orders o WHERE o.orderID = ?1
findClosedOrdersForUpdate
java.lang.String
Local
SELECT OBJECT(o) FROM Orders o WHERE
o.orderStatus = 'closed' AND
o.account.profile.userID = ?1
TradeStreamerMDB
com.ibm.websphere.samples.trade.ejb.TradeStreamerMDB
Container
javax.jms.Topic
TradeStreamerTopic
statInterval
java.lang.Integer
100
Account-Orders
AccountEJB
One
AccountEJB
orders
java.util.Collection
Order-Has-Account
Many
OrderEJB
account
Account-AccountProfile
Account-Has-AccountProfile
One
AccountEJB
profile
AccountProfileEJB
One
AccountProfileEJB
account
Account-Holdings
AccountEJB
One
AccountEJB
holdings
java.util.Collection
Holding-Has-Account
Many
HoldingEJB
account
Quote-Holdings
Holding-Has-Quote
Many
HoldingEJB
quote
QuoteEJB
One
QuoteEJB
Quote-Orders
Order-Has-Quote
Many
OrderEJB
quote
QuoteEJB
One
QuoteEJB
orders
java.util.Collection
Order-Holding
Order-Has-Holding
One
OrderEJB
holding
HoldingEJB
One
HoldingEJB
UncheckedPermission:+:Unchecked method permission
AccountEJB
*
AccountProfileEJB
*
HoldingEJB
*
KeyGenEJB
*
KeySequenceEJB
*
OrderEJB
*
QuoteEJB
*
TradeEJB
*
TradeEJB
Remote
publishQuotePriceChange
com.ibm.websphere.samples.trade.QuoteDataBean
java.math.BigDecimal
java.math.BigDecimal
double
TradeEJB
Remote
cancelOrderOnePhase
java.lang.Integer
TradeEJB
Remote
completeOrderOnePhaseDirect
java.lang.Integer
TradeEJB
Remote
queueOrderOnePhase
java.lang.Integer
RequiresNew
TradeEJB
Remote
cancelOrderOnePhaseDirect
java.lang.Integer
TradeEJB
Remote
completeOrderOnePhaseDirect
java.lang.Integer
TradeEJB
Remote
resetTrade
boolean
NotSupported
AccountEJB
*
AccountProfileEJB
*
HoldingEJB
*
KeyGenEJB
*
KeySequenceEJB
*
OrderEJB
*
QuoteEJB
*
TradeBrokerMDB
*
TradeEJB
*
TradeStreamerMDB
*
Required
TradeBrokerQueue
TradeStreamerTopic