References

References are defined in one module (EJB, Web, client) to access EJBs and resources contained in other modules (or in the same module).

References are basically of these types:

  • EJB reference— For remote access to EJBs

  • EJB local reference— For local access to EJBs in the same module or in the same JVM

  • Resource reference— Access to external resources, such as databases and connection factories (for example, JMS)

  • Resource environment reference— Access to an administered object accessed from an EJB (for example, JMS queue)

EJB references

Clients should access EJBs using references instead of the real JNDI name. References can be defined for remote access (EjbRef—remote EJB reference) and for local access (EjbLocalRef—local EJB reference). ...

Get EJB 2.0 Development with WebSphere Studio Application Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.