Ejb-ref is bound to java:comp/env so getting an ejbHome is
ctx.lookup("java:comp/env/" + name); where
name is enclosed in ejb-ref-name tag.
But you can retrieve an ejbHome from global jndi without prefixing with
"java:comp/env/"

in your caller : home = ctx.lookup(name);

for the called in jboss.xml <session> ... <jndi-name>name<jndi-name> ...
</session>

therefore you don't have to redeploy you caller each time.

----- Original Message -----
From: "Duarte Nuno Loreto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 4:10 PM
Subject: [JBoss-user] Question about B2B and <ejb-ref>


> Hello!
>
> On the project I'm working on, we have several EJBs that constitute the
main
> application ("core" from now one). We also have other EJBs that contain
> business logic ("add-ons" from now on). We are using
> JBoss2.4.6_Tomcat-4.0.3.
>
> One of the EJBs on the core has code to dinamically call EJBs on the
> add-ons. The core EJB reads from a XML file the name of the add-on class,
> the method and necessary parameters and calls it.
>
> The purpose of the application includes adding new add-on EJBs and call
them
> just by adding entries to the configuration XML file (that is not
deployed,
> it resides on the $JBOSS_DIS/conf/<project-name> directory).
>
> Now we have a problem. We are packing the core EJBs and add-on EJBs on the
> same .ear. We want to break up this in to applications and deploy them
> separatly. So that more add-on EJBs can be deployed without having to
> redeploy the core. But we are facing a problem...
>
> The descriptor of the core EJB that makes the dynamic invocations seems to
> need the <ejb-ref> tag for each one of the add-on EJBs. So, adding a new
EJB
> to the add-on group would always force us to redeploy the core module with
> the new descriptor.
>
> Is this really necessary? Is there any way we can deploy core with no
> ejb-refs and make core know about the new EJBs as we deploy them?
>
> I thank you for reading my question. Hope to hear from you.
>
> Duarte Loreto
>
> --------------------------------------------------------------------------
--
>                    Bringing you mounds of caffeinated joy
>                    >>>     http://thinkgeek.com/sf    <<<
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

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

Reply via email to