beehive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Schoettger" <chad.schoett...@gmail.com>
Subject Re: Specify contextEnv as a property in EJB Control
Date Mon, 24 Mar 2008 20:27:37 GMT
In addition to the method Ben described, you can also override the
value of the annotation in your control client when you declare your
EJB control, below is a fragment of code which does that.

.
.
.
@Control
@JNDIContextEnv(providerURL=<new value here>)
private MyEJBControl _ejbControl;
.
.
.


  - Hope this helps
     Chad


On Mon, Mar 24, 2008 at 12:39 PM, Khanzode, Sandeep
<Sandeep.Khanzode@rci.com> wrote:
> Hello,
>
>
>
>  Is there any way to parameterize the providerURL in JNDIContextEnv? This
>  URL will be different in dev/test/prod env, and the value should be read
>  from a properties/xml file. Can the EJBControl be used this way? Or is
>  it intended to use only EJBs deployed on the host application server? Or
>  is there a different mechanism to access EJB deployed on a different
>  application server using EJBControl? Appreciate your response,
>
>
>
>  ========================================================================
>  ==
>
>  package controls;
>
>
>
>  import org.apache.beehive.controls.system.ejb.SessionEJBControl;
>
>  import org.apache.beehive.controls.system.ejb.EJBControl.EJBHome;
>
>  import org.apache.beehive.controls.system.ejb.EJBControl.JNDIContextEnv;
>
>  import org.apache.beehive.controls.api.bean.ControlExtension;
>
>
>
>  @ControlExtension
>
>  @EJBHome(jndiName = "com.services.order.ejb.OrderService")
>
>  @JNDIContextEnv(
>
>         contextFactory="weblogic.jndi.WLInitialContextFactory",
>
>         providerURL="t3://1.2.3.4:7001")
>
>  public interface SRKNextEJBControl extends
>
>             com.services.order.ejb.OrderServiceHome, // home interface
>
>             com.services.order.ejb.OrderService, // business interface
>
>             SessionEJBControl // control interface
>
>  {
>
>       static final long serialVersionUID = 1L;
>
>  }
>
>  ========================================================================
>  ==
>
>
>
>
>
>
>
>  Thanks n Regards
>
>  Sandeep Khanzode
>
>  RCI - Enhanced Weeks
>
>  7 Sylvan Way, Parsippany
>
>  (O): (973) 753 - 6855
>
>
>
>
>  "The information in this electronic mail ("e-mail") message may contain information
that is confidential and/or privileged, or may otherwise be protected by work product or other
legal rules.
>  It is solely for the use of the individual(s) or the entity(ies) originally intended.
 Access to this electronic mail message by anyone else is unauthorized.
>  If you are not the intended recipient, be advised that any unauthorized review, disclosure,
copying, distribution or use of this information,
>  or any action taken or omitted to be taken in reliance on it, is prohibited and may
be unlawful.
>  Please notify the sender immediately if you have received this electronic message by
mistake, and destroy all copies of the original message.
>
>  The sender believes that this e-mail and any attachments were free of any virus, worm,
Trojan horse, malicious code and/or other contaminants when sent.
>  E-mail transmissions cannot be guaranteed to be secure or error-free, so this message
and its attachments could have been infected, corrupted or made incomplete during transmission.
>  By reading the message and opening any attachments, the recipient accepts full responsibility
for any viruses or other defects that may arise, and for taking remedial action relating to
such viruses and other defects.
>  Neither Wyndham Worldwide Corporation nor any of its affiliated entities is liable for
any loss or damage arising in any way from, or for errors or omissions in the contents of,
this message or its attachments."
>
>

Mime
View raw message