|
From: Todd Y. <tod...@me...> - 2008-09-29 18:33:34
|
Just for followup in case anyone else has a similar question down the road, I found what I needed using the LocalBinding annotation. @LocalBinding(jndiBinding="myBinding") I realize now I was also confusing local vs remote with local vs global. Like I said, not really a RESTEasy issue at all, just something a beginner like myself might get stuck on. Bill Burke wrote: > Should be whatever JNDI you can reach the EJB at. That could be > java:comp/env/WhateverYouBoundTo, or the global JNDI name of the EJB. > > Really anything bound in JNDI will work. Doesn't have to be an EJB. > > Todd Yocum wrote: >> Ok, looking at the actual EJB example included in the source, I see >> it also includes the name of the EAR in the JNDI name, so it would >> look like its a documentation bug, is that right? >> >> Todd Yocum wrote: >>> Hello, >>> >>> I am working with beta-6 of RESTEasy, and have had an issue with the >>> JNDI lookup of an EJB resource. I've setup my EAR to match how the >>> RESTEasy documentation recommends, but am getting an error trying to >>> find the EJB unless I fully qualify the name with the name of the >>> EAR, which is not what the RESTEasy docs show. >>> >>> I'm guessing the problem isn't really specific to RESTEasy, but how >>> I have configured my EJB, since I'm relatively new to >>> EJB/JBoss/Java. I've stepped through the RESTEasy code in eclipse, >>> but couldn't spot anything. >>> >>> Anybody know what I'm doing wrong? >>> >>> Thanks! >>> >> >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Resteasy-developers mailing list >> Res...@li... >> https://lists.sourceforge.net/lists/listinfo/resteasy-developers > |