-
15. Re: EJB local refs and links
mkerry Jul 18, 2003 3:26 PM (in response to mkerry)As I thought, the final versions are basically those posted above, however I noticed one discrepency: in ejb-jar.xml above, the <ejb-local-ref> tag for Bean2 (in the CallerBean session section) has an empty tag...not sure why. My final version has that filled in, as in the Bean1 case.
-
16. Re: EJB local refs and links
vashistvishal Jul 21, 2003 1:47 AM (in response to mkerry)
Hi Michael,
Can you attach yr ear file for this example as I want to see how you resolved the linking of two beans in different jars, as I am trying to do this and is causing linking problems at deployment time.
As Bean-1 in 1.jar cannot link at Bean-2 in 2.jar at deployment time.
That will be of great help.
Cheers..... -
17. Re: EJB local refs and links
mkerry Jul 22, 2003 6:23 PM (in response to mkerry)Well, I will have to rebuild the ear, as I don't have it handy anymore. However, I know that I had two jars in the ear:
jar1.jar contained CallerBean and Bean1
jar2.jar contained Bean2
CallerBean used local interfaces to access each of the two beans. In the ejb-jar.xml for jar1.jar, in the CallerBean section, there were two <ejb-local-ref> sections, one for Bean1 and one for Bean2. Each <ejb-local-ref> section had an <ejb-link> element, as well. The XDoclet you and jonlee described did the trick there.
Does that help? I will try to rebuild the ear file and post it if not. -
18. Re: EJB local refs and links
vashistvishal Jul 22, 2003 6:41 PM (in response to mkerry)Thanks for replying Michael.
Actually I am aware of all these tags, but what i am reallly interested in is ear file as I want to see how you stuctured yr jar files in it.
Because currently the isssue I am facing is I create the this ear file with these two jars in it and it fails to deploy.
And each jar has its ejb-jar.xml and jboss.xml file and in the hirearchy I have application.xml file.
But what i am not sure is with jar1 which as two beans, does it need to have the class file for the bena in other jars and vice versa.
Because I can deploy my two jars succesfully but jar1 can't see the bean in jar 2 from JNDI perscpective, and this is where it fails.
So it will be of great help if you can post yr working ear file and i can compare whats going on.
Cheers... -
19. Re: EJB local refs and links
mkerry Jul 23, 2003 4:20 PM (in response to mkerry)OK, here is my ear file, and 2 jar files with my source...let me know if this works for you.
-
20. Re: EJB local refs and links
vashistvishal Jul 23, 2003 6:09 PM (in response to mkerry)Thanks Michael, this will help me sort out the matters and will post my results asap .