Unless I'm missing something...

We seem to have lost the list of containers for an
application. An ejb-link to another jar in the
same application doesn't work.

Can this be fixed by holding a shared list of
(application) containers in EjbModule for ejb-ref lookups
seperate from the containers that are in the EjbModule?

Also in EJB2.0 there is a new ejb-link format (we
don't seem to have it).
See section 20.3.2 bullet point 2
[pre]
<ejb-link>../products/product.jar#ProductEJB</ejb-link>
[/pre]

Regards,
Adrian

> Bugs item #525412, was opened at 2002-03-04 01:47
> You can respond by visiting: 
> http://sourceforge.net/tracker/?func=detail&atid=37668
> &aid=525412&group_id=22866
> 
> Category: None
> Group: v3.0 Rabbit Hole
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Peter Luttrell (objec)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: EAR Deployment Problem with <ejb-link>
> 
> Initial Comment:
> 
> According to the dtd for an ejb-jar,
> (http://java.sun.com/dtd/ejb-jar_2_0.dtd), the value
> of
> the <ejb-link> element must be <omitted>. or in
> another
> ejb-jar file in the same J2EE application unit.
> 
> I take this to mean that you can use the name of a
> bean
> in another ejb-jar within an ear. In my attached
> example, the Titan.ear file contains 2 ejb jars:
> CabinEJB.jar and TravelAgentEJB.jar. In the
> deployment
> descriptor for TravelAgentEJB, I have an
> <ejb-link>CabinEJB</ejb-link>. "CabinEJB" is the name
> of the entity bean within CabinEJB.jar.
> 
> If I deploy this ear on JBoss3.0.0beta, deployment
> fails because "CabinEJB" is not found. Based on my
> intrepetation of the spec, I expect it to deploy
> without a problem.
> 
> Note that if I rearrange my deployment, such that
> both
> ejbs are in the same jar file with the same
> deployment
> descriptor, JBoss3.0.0beta deploys it perfectly. 
> 
> JBoss dist: JBoss3.0.0 + Tomcat 4.0.2 posted to
> sourceforge on 2002-02-22
> OS: Redhat7.2
> jdk: 1.3.1
> 
> To run the sample, which illistrates the problem:
> open
> up the build script and set your jboss install dir,
> then run the deploy-as-an-ear target. If you want to
> see it work as an ejb jar run deploy-as-a-single-jar
> target.
> 
> Here's the first exception caused by this problem:
> 
> <datestamp> ERROR [StatelessSessionContainer]
> Exception
> in service lifecycle operation: create
> org.jboss.deployment.DeploymentException: Bean
> CabinEJB
> not found within this applicaion.
> at
> org.jboss.ejb.Container.setupEnvironment(Continer.java
> 906)
> 
> 
> Note that the sample code is from Richard
> Monson-Haefel's book titled Enterprise JavaBeans.
> 
> 
> ------------------------------------------------------
> ---------------
> 
> You can respond by visiting: 
> http://sourceforge.net/tracker/?func=detail&atid=37668
> &aid=525412&group_id=22866
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-dev
> lopment


_________________________________________________________
View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=10112

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to