- 1 - jini in the enterprise o'reilly conference on java scott oaks sun microsystems...

13
- 1 Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems ([email protected] )

Upload: elizabeth-ford

Post on 27-Mar-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 1 -

Jini in the EnterpriseO'Reilly Conference on Java

Scott OaksSun Microsystems

([email protected])

Page 2: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 2 -

Agenda

Canonical Jini Jini Basics Using Jini in the enterprise

Page 3: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 3 -

Canonical Jini

Jini Network

Page 4: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 4 -

Another look

Print Service

Print Client

Print Service

Print Service

Service Network

Paycheck Svc

Page 5: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 5 -

Just anotherservice-based network

That adapts to service changes dynamically That can handle network failures gracefully That can substitute service implementations

transparently dynamically automatically

Page 6: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 6 -

Jini Basics

Jini provides A collection of services for

Lookup and discovery of servicesTransactionsData sourcingJini helper services

A set of APIs for distributed programming

Page 7: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 7 -

The Jini Lookup Service

Holds all service registrations on the (local) network

Actively manages those registrations Services place objects into the lookup service Clients download objects from the lookup service

Page 8: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 8 -

The Jini Lookup Service

JLS

Jini Network

Payroll Svc.

Payroll Client

Page 9: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 9 -

Lookup in the Enterprise

Default lookup is limited to a multicast radius 1.1 Discovery services can extend this to the

enterprise

Page 10: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 10 -

Lookup Integration

Any serializable object can be stored in the lookup service

Corba ObjectsRMI Remote ObjectsEJBs (of course...)Proprietary

Page 11: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 11 -

Jini APIs

Leasing APIs A login application A chargeback application ...

Remote Events A billing application A management application ...

Page 12: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 12 -

Java Spaces

The data source for distributed applications (enterprise and otherwise)

JavaSpace

Employee Manager Controller

Page 13: - 1 - Jini in the Enterprise O'Reilly Conference on Java Scott Oaks Sun Microsystems (scott.oaks@sun.com)scott.oaks@sun.com

- 13 -

Why Jini in the Enterprise

Dynamic maintenance of services Supports any service Useful APIs Encourage good programming practices