A servlett uses a remote sessionbean and in the session bean I want to reference a 
local entity bean.
Is this possible or do I make bullshit ?
Here are the xdoclett tags I used to solve this problem:

This is the entity bean, which is referenced by the session bean:
 @ejb.bean 
        name = "User"
        display-name = "User EJB"
        local-jndi-name = "tutorial.ejb.UserLocal"
                ....
        view-type = "local"

This is the session bean, which refence a local user entity:
@ejb.bean  name = "UserManager"
           display-name = "UserManager EJB"
           description = "EJB that manages users"
           view-type = "remote"
           type = "Stateful"
           jndi-name = "ejb/tutorial/UserManager"
 
@ejb.ejb-ref ejb-name = "User"
                        ref-name = "ejb/UserLocal"
                        view-type = "local"
 
@jboss.ejb-ref-jndi jndi-name = "tutorial.ejb.UserLocal"
                                 ref-name = "UserLocal"

This leads to a jboss.xml:
....

  <ejb-name>UserManager</ejb-name>
  <jndi-name>ejb/tutorial/UserManager</jndi-name>
  <ejb-ref>
      <ejb-ref-name>ejb/UserLocal</ejb-ref-name>
      <jndi-name>tutorial.ejb.UserLocal</jndi-name>
  </ejb-ref>

......
and a ejb-jar.xml:

    <![CDATA[EJB that manages users]]>
    <display-name>UserManager EJB</display-name>
    <ejb-name>UserManager</ejb-name>
        .....
    <ejb-local-ref >
       <ejb-ref-name>ejb/UserLocal</ejb-ref-name>
       <ejb-ref-type>Entity</ejb-ref-type>
       <local-home>tutorial.interfaces.UserLocalHome</local-home>
       tutorial.interfaces.UserLocal
       <ejb-link>User</ejb-link>
    </ejb-local-ref>
        .....


When I try to deploy the Jboss appserver says:
21:37:58,452 ERROR [XmlFileLoader] failed to load jboss.xml.  There could be a syntax 
error.
org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean UserManager: 
ejb-ref ejb/UserLocal found in jboss.xml but not in ejb-jar.xml

But this message is not true, there are two identical ejb-ref-name tags, one in the 
jboss.xml file and the other in ejb-jar.xml.

I spent now several hours on this problem and I am walking up the walls in my office.
The first issue that the fileloader can not load the jboss.xml file is a secret for me.
I would be pleased about help in this point
Kindly regards helmut.


 

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827744#3827744";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827744>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to