uCosminexus Service Platform, Basic Development Guide
This subsection describes the application scope of service components that use SessionBean.
Service components that use SessionBean must be created according to the EJB 2.0 specifications.
Only service components deployed on Cosminexus can be used as service components that use SessionBean.
Service components that use SessionBean must be created according to the following conditions:
Table 2-13 Java data type usability
Data type in Java | Usability as an argument or return value of a method | ||
---|---|---|---|
When used directly | When used as an array | When used as a member variable of a user-defined data class | |
boolean | Y | Y | Y |
javax.xml.rpc.holders.BooleanHolder | Y | -- | -- |
byte | Y | Y | Y |
javax.xml.rpc.holders.ByteHolder | Y | -- | -- |
byte[] | Y | Y | Y |
javax.xml.rpc.holders.ByteArrayHolder | Y | -- | -- |
double | Y | Y | Y |
javax.xml.rpc.holders.DoubleHolder | Y | -- | -- |
float | Y | Y | Y |
javax.xml.rpc.holders.FloatHolder | Y | -- | -- |
int | Y | Y | Y |
javax.xml.rpc.holders.IntHolder | Y | -- | -- |
long | Y | Y | Y |
javax.xml.rpc.holders.LongHolder | Y | -- | -- |
short | Y | Y | Y |
javax.xml.rpc.holders.ShortHolder | Y | -- | -- |
java.lang.Byte | Y | Y | Y |
javax.xml.rpc.holders.ByteWrapperHolder | Y | -- | -- |
java.lang.Byte[] | Y | Y | Y |
java.lang.Double | Y | Y | Y |
javax.xml.rpc.holders.DoubleWrapperHolder | Y | -- | -- |
java.lang.Float | Y | Y | Y |
javax.xml.rpc.holders.FloatWrapperHolder | Y | -- | -- |
java.lang.Integer | Y | Y | Y |
javax.xml.rpc.holders.IntegerWrapperHolder | Y | -- | -- |
java.lang.Long | Y | Y | Y |
javax.xml.rpc.holders.LongWrapperHolder | Y | -- | -- |
java.lang.Object | -- | -- | -- |
javax.xml.rpc.holders.ObjectHolder | -- | -- | -- |
java.lang.Object[] | -- | -- | -- |
java.lang.Short | Y | Y | Y |
javax.xml.rpc.holders.ShortWrapperHolder | Y | -- | -- |
java.lang.String | Y | Y | Y |
javax.xml.rpc.holders.StringHolder | Y | -- | -- |
java.math.BigDecimal | Y | Y | Y |
javax.xml.rpc.holders.BigDecimalHolder | Y | -- | -- |
java.math.BigInteger | Y | Y | Y |
javax.xml.rpc.holders.BigIntegerHolder | Y | -- | -- |
java.util.Date | Y | Y | Y |
javax.xml.namespace.QName | Y | Y | Y |
javax.xml.rpc.holders.QNameHolder | Y | -- | -- |
java.lang.Boolean | Y | Y | Y |
javax.xml.rpc.holders.BooleanWrapperHolder | Y | -- | -- |
java.util.Calendar | Y | Y | Y |
javax.xml.rpc.holders.CalendarHolder | Y | -- | -- |
Table 2-14 Specification of the transaction attribute in service components
Transaction mode of the service component | Tx attribute | Usability |
---|---|---|
BMT | N/A | Y |
CMT | Required | -- |
RequiresNew | Y | |
Supports | -- | |
NotSupported | Y | |
Mandatory | -- | |
Never | -- |
The schema used in a service component in which SessionBean is used must satisfy the conditions explained in 2.6.5 Scoping of XML schema. For details on schema conditions, see "2.6.5 Scoping of XML schema".
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.