eclipse - Separate JSF and EJB apps -


how use deployed ejb app separate jsf application?

i'm attempting separate 2 applications , access ejb through remote interface. have 2 eclipse projects - 1 contains ejb , persistence logic, tested independently , works. created jsf project references ejb project (so gain access remote interface), fails when attempting either inject ejb instance or lookup jndi name (i've tried several variants no avail). jsf backing bean contains:

@ejb(lookup="java:global/locejb/localityejb!com.ame.business.localityejbremote") private localityejbremote locality;

this on glassfish, , referencing ejb project , not packaging jsf project. when latter, receive error initializing ejb container problems on jsf project. so, how access remote ejb , way i'm approaching make sense?

thanks in advance!

your jsf application has know ejb interfaces (at least did on ejb 2.0). you're using proxy pattern hide fact remote component jsf client.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -