Opened 13 years ago

Closed 13 years ago

#12 closed task (worksforme)

Implement lib.remote

Reported by: smoser Owned by: smoser
Priority: major Milestone:
Component: Architecture Version:
Keywords: Cc: dgermann

Description

A generic mechanism to abstract remoting with an easy option to insert mocked services.

Change History (1)

comment:1 Changed 13 years ago by smoser

Resolution: worksforme
Status: newclosed

A first version is implemented. It works quite simple, you need

  • the interface for the service in an api jar module
  • the service implementation in its own ejb module
  • optional: a mock implementation of your service in the api module
  • a service descriptor implementing IServiceDescriptor in your api module
  • a dependency to lib.remote in the calling module

Then you call the service from the calling module with ServiceLocator?.lookup(...).

lib.remote is configurated at runtime to choose the mocked implementation, you can set a system property to -DTestService=mock. Note: the system property will change to the full jndi name in a later implementation.

Note: See TracTickets for help on using tickets.