Hi guys

I am still having a problem with using the local interfaces to my simple demo bean. I 
know this is an easy task but I can work it out and have looked around for quite a bit 
now.

I have an .ear file with a .war and a .jar file.

The .jar file has an entity bean and a session bean. The session bean can use the 
local interface to the entity bean just fine using @ejb.ejb-ref.

The trouble is accessing the session bean through the servlet. I can do this using the 
remote interfaces using the tags below:

* @web.ejb-ref name="ejb/DemoBean"
 *                                                      type="Session"
 *                                                      home="testXdoc.DemoBeanHome"
 *                                                      
remote="testXdoc.DemoBeanRemote"
 *                                                      link="ejb/DemoBean"
 *
 * @jboss.ejb-ref-jndi ref-name="ejb/DemoBean"
*                       jndi-name="ejb/DemoBean"

But I can't it to work with the local interfaces

I have tried to use @web.ejb-local-ref with several other tags:
@jboss.ejb-ref-jndi
@ejb.ejb-ref
But I always get a mismatch in the web.xml and the jboss-web.xml.
(jboss-web.xml has a <ejb-ref> where as the web.xml has a <ejb-local-ref>)

I have also tried just using @ejb.ejb-ref and @ejb.ejb-external-ref as others on the 
list have recommended but still no joy. I just get a null pointer exception.

Can anyone give me a pointer?

Cheers for any light.

Tim


-----Original Message-----
From:   Bryce Fischer [mailto:[EMAIL PROTECTED]
Sent:   Mon 28/07/2003 15:27
To:     [EMAIL PROTECTED]
Cc:     
Subject:        [Xdoclet-user] RE: @web.ejb-local-ref and @jboss.ejb-ref-jndi
Jboss doesn't require it. Just use the @ejb.ejb-external-ref.

For example, here's what I've got for a Session Façade:

* @ejb.ejb-external-ref
 *                         view-type = "local"
 *                         link = "SysUser"
 *                         ref-name = "ejb/SysUserLocalHome"
 *                         type = "Entity"
 *                         home =
"com.berzerkersoft.bisweb.db.interfaces.SysUserLocalHome"
 *                         business =
"com.berzerkersoft.bisweb.db.interfaces.SysUserLocal"

Vincent Bryce Fischer



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



<<winmail.dat>>

Reply via email to