假設我有一個看起來像這樣的JAX-RS資源類: @Path("/nodes")
public class NodeResource {
//Temp - those injections should work
@EJB
ListNodesLocal nodeList;
//stuff
}
,我想某種生命週期的回調,所以我可以手動通過JNDI查找該領
這就是我想要做的事: @Path("/finder")
public class Finder {
@Path("/{name}")
public Proxy find(@PathParam("name") String name) {
Object found = /* some object found by name */
return new Pr