12.07.2015 Views

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ INDEX element (HTML), 333listBooks.jsp page, 310listBooks.xhtml page, 290–91listeners, 172–76@Local annotation, 215local transactions, 254–55local view for bean class, 215@LocalBean annotation, 219@Lock annotation, 211locking, 162optimistic, 164pessimistic, 166logical operators in JPQL queries, 148logMethod() method, 244LongRangeValidator, 366lookup() method (MessageDrivenContext), 404lookup() method (SessionContext), 222■ MMain classrunning <strong>with</strong> application clientcontainer, 197persistence unit for, 53running <strong>with</strong> Derby, 56–57writing, 52–53managed beans, 351–62how to write, 351life cycle and callback annotations, 356@ManagedProperty annotation, 355message handling, 361–62model, 352and navigation, 281–82, 356–60scopes, 353for web application, 285@ManagedBean annotation, 281, 287, 351, 352@ManyToMany annotation, 93, 104cascade attribute, 141@ManyToOne annotation, 93cascade attribute, 141MapMessage interface, 392mapped superclass, 120mappedBy element for bidirectionalrelationships, 96, 97, 105@MappedSuperclass annotation, 120mapping, 123. See also relationship mappingattributes to primary key, 123basics, 64inheritance, 110–21tables, 65<strong>with</strong> XML, 84–86,mapping entities, 61–64 tag, 86maps for data storage, 83marked for deletion, 13marshalling, 422, 423@MatrixParam annotation, 467Maven, 21–26artifacts, 22commands, 26compiling and packaging CardValidatorweb service, 443compiling and packaging <strong>with</strong>, 194–96, 293,411, 481compiling <strong>with</strong>, 54–55dependencies, 24directory structure, 50, 285generating consumer’s artifacts andpackaging, 447history, 21installing, 26plug-ins and life cycle, 25project descriptor, 22project modularity, 24MERGE cascade type, 141merge() method (EntityManager), 132merging entity, 139 element (WSDL), 429message handling for managed beans, 361–62message time-to-live, 397, 398499

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!