javaee / ejb-spec

See javax.ejb project for API. Contains legacy issues only.
https://github.com/javaee/javax.ejb
6 stars 1 forks source link

Flexible Connector Scanning #115

Open glassfishrobot opened 10 years ago

glassfishrobot commented 10 years ago

After #60 empowered connectors to fully reflect on the bean they create, the tt>@javax.ejb.MessageDriven</tt annotation and the marker interface (e.g. tt>@javax.jms.MessageListener</tt) are still demanded by the JCA, but a more flexible model would simplify and enable connectors even more.

The model could be similar to remote EJB discovery: The application programmer annotates a bean class or a business interface with an annotation that is defined by the connector (e.g. tt>@Remote</tt). The container then discovers those beans resp. all implementations of that interface and asks the connector to instantiate and bind them.

There are options about where this scanning could be done:

It looks as if this could, in the long run, be used to implement other bindings as connectors as well: Next to JMS and remote EJBs, JAX-RS comes to my mind; maybe more?

Affected Versions

[3.2]

glassfishrobot commented 10 years ago

Reported by rdohna

glassfishrobot commented 9 years ago

@nigeldeakin said: See also #126 (Allow listener method to always be determined at runtime by resource adapter)

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA EJB_SPEC-115