Book description
Nothing is as constant as change, and this is as true in enterprise computing as anywhere else. Since Java Enterprise in a Nutshell was first published in September of 1999, a dozen or more new APIs have been added to the platform, reflecting the new and different ways developers implement their enterprise objectives. And now developers are being called on to add even greater, more complex levels of interconnectivity to their applications, as the concepts behind Web Services solidify and implementation decisions need coding. Java developers today need a clear understanding of the new APIs, tools, capabilities and pitfalls in J2EE 2.0 so they can plan a technology and implementation strategy for new enterprise projects. Fortunately, this is exactly what they get with the new Java Enterprise in a Nutshell, 2nd edition! Completely revised and updated for the new 2.0 version of Sun Microsystems Java Enterprise Edition software, Java Enterprise in a Nutshell 2nd edition covers all of the J2EE APIs, including RMI, Java IDL, JDBC, JNDI, Java Servlet, and Enterprise JavaBeans, with a fast-paced tutorial and compact reference on each technology. Then Java Enterprise in a Nutshell goes even further, providing a classic O'Reilly-style quick reference for all of the classes in the various packages that comprise the Enterprise APIs - covering the core enterprise APIs as well as numerous standard extensions.
Table of contents
-
Java Enterprise in a Nutshell, 2nd Edition
- Preface
-
I. Introducing the Java Enterprise APIs
-
1. Introduction
- Enterprise Computing Defined
- Enterprise Computing Demystified
-
The Java Enterprise APIs
- JDBC: Working with Databases
- RMI: Remote Method Invocation
- Java IDL: CORBA Distributed Objects
- JAXP: XML Parsing and Messaging
- JNDI: Accessing Naming and Directory Services
- JMS: Enterprise Messaging
- JavaMail: Email-Based Messaging
- Enterprise JavaBeans: Distributed Components
- Servlets and JavaServer Pages (JSPs): Web-Based Components/UIs
- JTA: Managing Distributed Transactions
- Enterprise Computing Scenarios
- Other Enterprise APIs
- 2. JDBC
-
3. Remote Method Invocation
- Introduction to RMI
- Defining Remote Objects
- Creating the Stubs and Skeletons
- Accessing Remote Objects as a Client
- Dynamically Loaded Classes
- Remote Object Activation
- RMI and Native Method Calls
- RMI Over IIOP
- 4. Java IDL (CORBA)
- 5. Java Servlets
- 6. JavaServer Pages
-
7. JNDI
- JNDI Architecture
- A Simple Example
- Introducing the Context
- Looking Up Objects in a Context
- The NamingShell Application
- Listing the Children of a Context
- Creating and Destroying Contexts
- Binding Objects
- Accessing Directory Services
- Modifying Directory Entries
- Creating Directory Entries
- Searching a Directory
- Event Notification
-
8. Enterprise JavaBeans (EJB)
- A Note on Evolving Standards
- EJB Roles
- Implementing a Basic EJB
- Using Enterprise JavaBeans
- Implementing Session Beans
- Implementing Entity Beans
- Implementing Message-Driven Beans
- Transaction Management
- 9. Java and XML
- 10. Java Message Service
- 11. JavaMail
-
1. Introduction
-
II. Enterprise Reference
- 12. SQL Reference
- 13. RMI Tools
- 14. IDL Reference
-
15. CORBA Services Reference
- Collection Service
- Concurrency Service
- Enhanced View of Time Service
- Event Service
- Externalization Service
- Licensing Service
- Life Cycle Service
- Naming Service
- Notification Service
- Persistent Object Service
- Property Service
- Query Service
- Relationship Service
- Security Service
- Time Service
- Trading Object Service
- Transaction Service
- 16. Java IDL Tools
- 17. Enterprise JavaBeans Query Language Syntax
-
III. API Quick Reference
-
18. java.rmi
- Package java.rmi
- AccessException
- AlreadyBoundException
- ConnectException
- ConnectIOException
- MarshalException
- MarshalledObject
- Naming
- NoSuchObjectException
- NotBoundException
- Remote
- RemoteException
- RMISecurityException
- RMISecurityManager
- ServerError
- ServerException
- ServerRuntimeException
- StubNotFoundException
- UnexpectedException
- UnknownHostException
- UnmarshalException
-
19. java.rmi.activation
- Package java.rmi.activation
- Activatable
- ActivateFailedException
- ActivationDesc
- ActivationException
- ActivationGroup
- ActivationGroup_Stub
- ActivationGroupDesc
- ActivationGroupDesc.CommandEnvironment
- ActivationGroupID
- ActivationID
- ActivationInstantiator
- ActivationMonitor
- ActivationSystem
- Activator
- UnknownGroupException
- UnknownObjectException
- 20. java.rmi.dgc
- 21. java.rmi.registry
-
22. java.rmi.server
- Package java.rmi.server
- ExportException
- LoaderHandler
- LogStream
- ObjID
- Operation
- RemoteCall
- RemoteObject
- RemoteRef
- RemoteServer
- RemoteStub
- RMIClassLoader
- RMIClassLoaderSpi
- RMIClientSocketFactory
- RMIFailureHandler
- RMIServerSocketFactory
- RMISocketFactory
- ServerCloneException
- ServerNotActiveException
- ServerRef
- Skeleton
- SkeletonMismatchException
- SkeletonNotFoundException
- SocketSecurityException
- UID
- UnicastRemoteObject
- Unreferenced
-
23. java.sql
- Package java.sql
- Array
- BatchUpdateException
- Blob
- CallableStatement
- Clob
- Connection
- DatabaseMetaData
- DataTruncation
- Date
- Driver
- DriverManager
- DriverPropertyInfo
- ParameterMetaData
- PreparedStatement
- Ref
- ResultSet
- ResultSetMetaData
- Savepoint
- SQLData
- SQLException
- SQLInput
- SQLOutput
- SQLPermission
- SQLWarning
- Statement
- Struct
- Time
- Timestamp
- Types
-
24. javax.ejb and javax.ejb.spi
- Package javax.ejb
- AccessLocalException
- CreateException
- DuplicateKeyException
- EJBContext
- EJBException
- EJBHome
- EJBLocalHome
- EJBLocalObject
- EJBMetaData
- EJBObject
- EnterpriseBean
- EntityBean
- EntityContext
- FinderException
- Handle
- HomeHandle
- MessageDrivenBean
- MessageDrivenContext
- NoSuchEntityException
- NoSuchObjectLocalException
- ObjectNotFoundException
- RemoveException
- SessionBean
- SessionContext
- SessionSynchronization
- TransactionRequiredLocalException
- TransactionRolledbackLocalException
- Package javax.ejb.spi
- HandleDelegate
-
25. javax.jms
- Package javax.jms
- BytesMessage
- Connection
- ConnectionConsumer
- ConnectionFactory
- ConnectionMetaData
- DeliveryMode
- Destination
- ExceptionListener
- IllegalStateException
- InvalidClientIDException
- InvalidDestinationException
- InvalidSelectorException
- JMSException
- JMSSecurityException
- MapMessage
- Message
- MessageConsumer
- MessageEOFException
- MessageFormatException
- MessageListener
- MessageNotReadableException
- MessageNotWriteableException
- MessageProducer
- ObjectMessage
- Queue
- QueueBrowser
- QueueConnection
- QueueConnectionFactory
- QueueReceiver
- QueueRequestor
- QueueSender
- QueueSession
- ResourceAllocationException
- ServerSession
- ServerSessionPool
- Session
- StreamMessage
- TemporaryQueue
- TemporaryTopic
- TextMessage
- Topic
- TopicConnection
- TopicConnectionFactory
- TopicPublisher
- TopicRequestor
- TopicSession
- TopicSubscriber
- TransactionInProgressException
- TransactionRolledBackException
- XAConnection
- XAConnectionFactory
- XAQueueConnection
- XAQueueConnectionFactory
- XAQueueSession
- XASession
- XATopicConnection
- XATopicConnectionFactory
- XATopicSession
-
26. javax.mail and Subpackages
- Package javax.mail
- Address
- AuthenticationFailedException
- Authenticator
- BodyPart
- FetchProfile
- FetchProfile.Item
- Flags
- Flags.Flag
- Folder
- FolderClosedException
- FolderNotFoundException
- Header
- IllegalWriteException
- Message
- Message.RecipientType
- MessageAware
- MessageContext
- MessageRemovedException
- MessagingException
- MethodNotSupportedException
- Multipart
- MultipartDataSource
- NoSuchProviderException
- Part
- PasswordAuthentication
- Provider
- Provider.Type
- ReadOnlyFolderException
- SendFailedException
- Service
- Session
- Store
- StoreClosedException
- Transport
- UIDFolder
- UIDFolder.FetchProfileItem
- URLName
- Package javax.mail.event
- ConnectionAdapter
- ConnectionEvent
- ConnectionListener
- FolderAdapter
- FolderEvent
- FolderListener
- MailEvent
- MessageChangedEvent
- MessageChangedListener
- MessageCountAdapter
- MessageCountEvent
- MessageCountListener
- StoreEvent
- StoreListener
- TransportAdapter
- TransportEvent
- TransportListener
- Package javax.mail.internet
- AddressException
- ContentDisposition
- ContentType
- HeaderTokenizer
- HeaderTokenizer.Token
- InternetAddress
- InternetHeaders
- MailDateFormat
- MimeBodyPart
- MimeMessage
- MimeMessage.RecipientType
- MimeMultipart
- MimePart
- MimePartDataSource
- MimeUtility
- NewsAddress
- ParameterList
- ParseException
- SharedInputStream
- Package javax.mail.search
- AddressStringTerm
- AddressTerm
- AndTerm
- BodyTerm
- ComparisonTerm
- DateTerm
- FlagTerm
- FromStringTerm
- FromTerm
- HeaderTerm
- IntegerComparisonTerm
- MessageIDTerm
- MessageNumberTerm
- NotTerm
- OrTerm
- ReceivedDateTerm
- RecipientStringTerm
- RecipientTerm
- SearchException
- SearchTerm
- SentDateTerm
- SizeTerm
- StringTerm
- SubjectTerm
-
27. javax.naming
- Package javax.naming
- AuthenticationException
- AuthenticationNotSupportedException
- BinaryRefAddr
- Binding
- CannotProceedException
- CommunicationException
- CompositeName
- CompoundName
- ConfigurationException
- Context
- ContextNotEmptyException
- InitialContext
- InsufficientResourcesException
- InterruptedNamingException
- InvalidNameException
- LimitExceededException
- LinkException
- LinkLoopException
- LinkRef
- MalformedLinkException
- Name
- NameAlreadyBoundException
- NameClassPair
- NameNotFoundException
- NameParser
- NamingEnumeration
- NamingException
- NamingSecurityException
- NoInitialContextException
- NoPermissionException
- NotContextException
- OperationNotSupportedException
- PartialResultException
- RefAddr
- Reference
- Referenceable
- ReferralException
- ServiceUnavailableException
- SizeLimitExceededException
- StringRefAddr
- TimeLimitExceededException
-
28. javax.naming.directory
- Package javax.naming.directory
- Attribute
- AttributeInUseException
- AttributeModificationException
- Attributes
- BasicAttribute
- BasicAttributes
- DirContext
- InitialDirContext
- InvalidAttributeIdentifierException
- InvalidAttributesException
- InvalidAttributeValueException
- InvalidSearchControlsException
- InvalidSearchFilterException
- ModificationItem
- NoSuchAttributeException
- SchemaViolationException
- SearchControls
- SearchResult
- 29. javax.naming.event
- 30. javax.naming.ldap
- 31. javax.naming.spi
- 32. javax.resource
- 33. javax.resource.cci
-
34. javax.resource.spi and javax.resource.spi.security
- Package javax.resource.spi
- ApplicationServerInternalException
- CommException
- ConnectionEvent
- ConnectionEventListener
- ConnectionManager
- ConnectionRequestInfo
- EISSystemException
- IllegalStateException
- LocalTransaction
- LocalTransactionException
- ManagedConnection
- ManagedConnectionFactory
- ManagedConnectionMetaData
- ResourceAdapterInternalException
- ResourceAllocationException
- SecurityException
- Package javax.resource.spi.security
- GenericCredential
- PasswordCredential
- 35. javax.rmi and javax.rmi.CORBA
-
36. javax.servlet
- Package javax.servlet
- Filter
- FilterChain
- FilterConfig
- GenericServlet
- RequestDispatcher
- Servlet
- ServletConfig
- ServletContext
- ServletContextAttributeEvent
- ServletContextAttributeListener
- ServletContextEvent
- ServletContextListener
- ServletException
- ServletInputStream
- ServletOutputStream
- ServletRequest
- ServletRequestWrapper
- ServletResponse
- ServletResponseWrapper
- SingleThreadModel
- UnavailableException
-
37. javax.servlet.http
- Package javax.servlet.http
- Cookie
- HttpServlet
- HttpServletRequest
- HttpServletRequestWrapper
- HttpServletResponse
- HttpServletResponseWrapper
- HttpSession
- HttpSessionActivationListener
- HttpSessionAttributeListener
- HttpSessionBindingEvent
- HttpSessionBindingListener
- HttpSessionContext
- HttpSessionEvent
- HttpSessionListener
- HttpUtils
- 38. javax.servlet.jsp
- 39. javax.sql
-
40. javax.transaction and javax.transaction.xa
- Package javax.transaction
- HeuristicCommitException
- HeuristicMixedException
- HeuristicRollbackException
- InvalidTransactionException
- NotSupportedException
- RollbackException
- Status
- Synchronization
- SystemException
- Transaction
- TransactionManager
- TransactionRequiredException
- TransactionRolledbackException
- UserTransaction
- Package javax.transaction.xa
- XAException
- XAResource
- Xid
-
41. org.omg.CORBA and Subpackages
- Package org.omg.CORBA
- _IDLTypeStub
- _PolicyStub
- Any
- AnyHolder
- AnySeqHelper
- AnySeqHolder
- ARG_IN
- ARG_INOUT
- ARG_OUT
- BAD_CONTEXT
- BAD_INV_ORDER
- BAD_OPERATION
- BAD_PARAM
- BAD_POLICY
- BAD_POLICY_TYPE
- BAD_POLICY_VALUE
- BAD_TYPECODE
- BooleanHolder
- BooleanSeqHelper
- BooleanSeqHolder
- Bounds
- ByteHolder
- CharHolder
- CharSeqHelper
- CharSeqHolder
- COMM_FAILURE
- CompletionStatus
- CompletionStatusHelper
- Context
- ContextList
- CTX_RESTRICT_SCOPE
- Current
- CurrentHelper
- CurrentHolder
- CurrentOperations
- CustomMarshal
- DATA_CONVERSION
- DataInputStream
- DataOutputStream
- DefinitionKind
- DefinitionKindHelper
- DomainManager
- DomainManagerOperations
- DoubleHolder
- DoubleSeqHelper
- DoubleSeqHolder
- DynamicImplementation
- DynAny
- DynArray
- DynEnum
- DynFixed
- DynSequence
- DynStruct
- DynUnion
- DynValue
- Environment
- ExceptionList
- FieldNameHelper
- FixedHolder
- FloatHolder
- FloatSeqHelper
- FloatSeqHolder
- FREE_MEM
- IdentifierHelper
- IDLType
- IDLTypeHelper
- IDLTypeOperations
- IMP_LIMIT
- INITIALIZE
- INTERNAL
- INTF_REPOS
- IntHolder
- INV_FLAG
- INV_IDENT
- INV_OBJREF
- INV_POLICY
- INVALID_TRANSACTION
- IRObject
- IRObjectOperations
- LocalObject
- LongHolder
- LongLongSeqHelper
- LongLongSeqHolder
- LongSeqHelper
- LongSeqHolder
- MARSHAL
- NamedValue
- NameValuePair
- NameValuePairHelper
- NO_IMPLEMENT
- NO_MEMORY
- NO_PERMISSION
- NO_RESOURCES
- NO_RESPONSE
- NVList
- OBJ_ADAPTER
- Object
- OBJECT_NOT_EXIST
- ObjectHelper
- ObjectHolder
- OctetSeqHelper
- OctetSeqHolder
- OMGVMCID
- ORB
- ParameterMode
- ParameterModeHelper
- ParameterModeHolder
- PERSIST_STORE
- Policy
- PolicyError
- PolicyErrorCodeHelper
- PolicyErrorHelper
- PolicyErrorHolder
- PolicyHelper
- PolicyHolder
- PolicyListHelper
- PolicyListHolder
- PolicyOperations
- PolicyTypeHelper
- Principal
- PrincipalHolder
- PRIVATE_MEMBER
- PUBLIC_MEMBER
- RepositoryIdHelper
- Request
- ServerRequest
- ServiceDetail
- ServiceDetailHelper
- ServiceInformation
- ServiceInformationHelper
- ServiceInformationHolder
- SetOverrideType
- SetOverrideTypeHelper
- ShortHolder
- ShortSeqHelper
- ShortSeqHolder
- StringHolder
- StringSeqHelper
- StringSeqHolder
- StringValueHelper
- StructMember
- StructMemberHelper
- SystemException
- TCKind
- TRANSACTION_REQUIRED
- TRANSACTION_ROLLEDBACK
- TRANSIENT
- TypeCode
- TypeCodeHolder
- ULongLongSeqHelper
- ULongLongSeqHolder
- ULongSeqHelper
- ULongSeqHolder
- UnionMember
- UnionMemberHelper
- UNKNOWN
- UnknownUserException
- UnknownUserExceptionHelper
- UnknownUserExceptionHolder
- UNSUPPORTED_POLICY
- UNSUPPORTED_POLICY_VALUE
- UserException
- UShortSeqHelper
- UShortSeqHolder
- ValueBaseHelper
- ValueBaseHolder
- ValueMember
- ValueMemberHelper
- VersionSpecHelper
- VisibilityHelper
- VM_ABSTRACT
- VM_CUSTOM
- VM_NONE
- VM_TRUNCATABLE
- WCharSeqHelper
- WCharSeqHolder
- WrongTransaction
- WrongTransactionHelper
- WrongTransactionHolder
- WStringSeqHelper
- WStringSeqHolder
- WStringValueHelper
- Package org.omg.CORBA.DynAnyPackage
- Invalid
- InvalidSeq
- InvalidValue
- TypeMismatch
- Package org.omg.CORBA.ORBPackage
- InconsistentTypeCode
- InvalidName
- Package org.omg.CORBA.TypeCodePackage
- BadKind
- Bounds
- Package org.omg.CORBA.portable
- ApplicationException
- BoxedValueHelper
- CustomValue
- Delegate
- IDLEntity
- IndirectionException
- InputStream
- InvokeHandler
- ObjectImpl
- OutputStream
- RemarshalException
- ResponseHandler
- ServantObject
- Streamable
- StreamableValue
- UnknownException
- ValueBase
- ValueFactory
- 42. org.omg.CORBA_2_3 and org.omg.CORBA_2_3.portable
-
43. org.omg.CosNaming and Subpackages
- Package org.omg.CosNaming
- _BindingIteratorImplBase
- _BindingIteratorStub
- _NamingContextExtStub
- _NamingContextImplBase
- _NamingContextStub
- Binding
- BindingHelper
- BindingHolder
- BindingIterator
- BindingIteratorHelper
- BindingIteratorHolder
- BindingIteratorOperations
- BindingIteratorPOA
- BindingListHelper
- BindingListHolder
- BindingType
- BindingTypeHelper
- BindingTypeHolder
- IstringHelper
- NameComponent
- NameComponentHelper
- NameComponentHolder
- NameHelper
- NameHolder
- NamingContext
- NamingContextExt
- NamingContextExtHelper
- NamingContextExtHolder
- NamingContextExtOperations
- NamingContextExtPOA
- NamingContextHelper
- NamingContextHolder
- NamingContextOperations
- NamingContextPOA
- Package org.omg.CosNaming.NamingContextExtPackage
- AddressHelper
- InvalidAddress
- InvalidAddressHelper
- InvalidAddressHolder
- StringNameHelper
- URLStringHelper
- Package org.omg.CosNaming.NamingContextPackage
- AlreadyBound
- AlreadyBoundHelper
- AlreadyBoundHolder
- CannotProceed
- CannotProceedHelper
- CannotProceedHolder
- InvalidName
- InvalidNameHelper
- InvalidNameHolder
- NotEmpty
- NotEmptyHelper
- NotEmptyHolder
- NotFound
- NotFoundHelper
- NotFoundHolder
- NotFoundReason
- NotFoundReasonHelper
- NotFoundReasonHolder
-
44. org.omg.PortableServer and Subpackages
- Package org.omg.PortableServer
- _ServantActivatorStub
- _ServantLocatorStub
- AdapterActivator
- AdapterActivatorOperations
- Current
- CurrentHelper
- CurrentOperations
- DynamicImplementation
- ForwardRequest
- ForwardRequestHelper
- ID_ASSIGNMENT_POLICY_ID
- ID_UNIQUENESS_POLICY_ID
- IdAssignmentPolicy
- IdAssignmentPolicyOperations
- IdAssignmentPolicyValue
- IdUniquenessPolicy
- IdUniquenessPolicyOperations
- IdUniquenessPolicyValue
- IMPLICIT_ACTIVATION_POLICY_ID
- ImplicitActivationPolicy
- ImplicitActivationPolicyOperations
- ImplicitActivationPolicyValue
- LIFESPAN_POLICY_ID
- LifespanPolicy
- LifespanPolicyOperations
- LifespanPolicyValue
- POA
- POAHelper
- POAManager
- POAManagerOperations
- POAOperations
- REQUEST_PROCESSING_POLICY_ID
- RequestProcessingPolicy
- RequestProcessingPolicyOperations
- RequestProcessingPolicyValue
- Servant
- SERVANT_RETENTION_POLICY_ID
- ServantActivator
- ServantActivatorHelper
- ServantActivatorOperations
- ServantActivatorPOA
- ServantLocator
- ServantLocatorHelper
- ServantLocatorOperations
- ServantLocatorPOA
- ServantManager
- ServantManagerOperations
- ServantRetentionPolicy
- ServantRetentionPolicyOperations
- ServantRetentionPolicyValue
- THREAD_POLICY_ID
- ThreadPolicy
- ThreadPolicyOperations
- ThreadPolicyValue
- Package org.omg.PortableServer.CurrentPackage
- NoContext
- NoContextHelper
- Package org.omg.PortableServer.POAManagerPackage
- AdapterInactive
- AdapterInactiveHelper
- State
- Package org.omg.PortableServer.POAPackage
- AdapterAlreadyExists
- AdapterAlreadyExistsHelper
- AdapterNonExistent
- AdapterNonExistentHelper
- InvalidPolicy
- InvalidPolicyHelper
- NoServant
- NoServantHelper
- ObjectAlreadyActive
- ObjectAlreadyActiveHelper
- ObjectNotActive
- ObjectNotActiveHelper
- ServantAlreadyActive
- ServantAlreadyActiveHelper
- ServantNotActive
- ServantNotActiveHelper
- WrongAdapter
- WrongAdapterHelper
- WrongPolicy
- WrongPolicyHelper
- Package org.omg.PortableServer.ServantLocatorPackage
- CookieHolder
- Package org.omg.PortableServer.portable
- Delegate
- Class, Method, and Field Index
-
18. java.rmi
- Index
- Colophon
Product information
- Title: Java Enterprise in a Nutshell, Second Edition
- Author(s):
- Release date: April 2002
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596001520
You might also like
book
Java Enterprise in a Nutshell, Third Edition
Nothing is as constant as change, and this is as true in enterprise computing as anywhere …
book
Beginning Java with WebSphere
provides a step-by-step guide for creating and installing both client- and server-based Java applications using Rapid …
book
Flex on Java
Together, Flex and Java make a powerful web development platform—they blend the strengths of Java on …
video
Great Java
Great Java: Level 1 will teach you the fundamentals of Java, from the basics of compilation …