SolvedHello I'm having this problem, I hope that someone would be so kind to explain to me what's appening.
I'm working on an application that I developed. I was using it with success, but now it doesn't bound to ejb.
Looking at jndi-view I see this
java:comp namespace of the CustomerSession bean:
+- env (class: org.jnp.interfaces.NamingContext) | +- security (class: org.jnp.interfaces.NamingContext) | | +- subject[link -> java:/jaas/appointmentsApp/subject] (class: javax.naming.LinkRef) | | +- security-domain[link -> java:/jaas/appointmentsApp] (class: javax.naming.LinkRef) | +- mywebappointments (class: org.jnp.interfaces.NamingContext) | | +- CustomerCf[link -> ejb/webappointments/CustomerCf] (class: javax.naming.LinkRef) | | +- CustomerCsan[link -> ejb/webappointments/CustomerCsan] (class: javax.naming.LinkRef) | | +- CustomerPiva[link -> ejb/webappointments/CustomerPiva] (class: javax.naming.LinkRef) | | +- Customer[link -> ejb/webappointments/Customer] (class: javax.naming.LinkRef)
java:comp namespace of the Customer bean:
+- env (class: org.jnp.interfaces.NamingContext) | +- CustomerSequenceName (class: java.lang.String) | +- ejb (class: org.jnp.interfaces.NamingContext) | | +- SequenceGenerator[link -> ejb/webappointments/SequenceGenerator] (class: javax.naming.LinkRef) | +- security (class: org.jnp.interfaces.NamingContext) | | +- subject[link -> java:/jaas/appointmentsApp/subject] (class: javax.naming.LinkRef) | | +- security-domain[link -> java:/jaas/appointmentsApp] (class: javax.naming.LinkRef)
then at least:
+- ejb (class: org.jnp.interfaces.NamingContext) | +- mgmt (class: org.jnp.interfaces.NamingContext) | | +- MEJB (proxy: $Proxy28 implements interface javax.management.j2ee.ManagementHome,interface javax.ejb.Handle) | +- webappointments (class: org.jnp.interfaces.NamingContext) | | +- CustomerPiva (proxy: $Proxy66 implements interface com.wingstech.webappointments.interfaces.CustomerPivaLocalHome) | | +- Activity (proxy: $Proxy68 implements interface com.wingstech.webappointments.interfaces.ActivityLocalHome) | | +- Role (proxy: $Proxy73 implements interface com.wingstech.webappointments.interfaces.RoleLocalHome) | | +- User (proxy: $Proxy62 implements interface com.wingstech.webappointments.interfaces.UserLocalHome) | | +- CustomerCsan (proxy: $Proxy57 implements interface com.wingstech.webappointments.interfaces.CustomerCsanLocalHome) | | +- CalendarSession (proxy: $Proxy78 implements interface com.wingstech.webappointments.interfaces.CalendarSessionHome,interface javax.ejb.Handle) | | +- Customer (proxy: $Proxy64 implements interface com.wingstech.webappointments.interfaces.CustomerLocalHome) | | +- ActivitySession (proxy: $Proxy80 implements interface com.wingstech.webappointments.interfaces.ActivitySession
So in my code I write
try {
// Get User Entity Remote Interface
Context lContext = new InitialContext();
UserLocalHome lHome = (UserLocalHome) PortableRemoteObject.narrow(
lContext.lookup(
"java:comp/env/ejb/mywebappointments/User"
),
UserLocalHome.class
); but an ejb not bound is thrown.
Please help!!!!
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user .
ref-name was "mywebappointments/User" now I wrote "ejb/mywebappointments/User"
I think this changed with latest xdoclet cvs...
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user