|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Specify contextEnv as a property in EJB ControlHello,
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." |
|
|
RE: Specify contextEnv as a property in EJB ControlThere are two ways: One is in the class that uses the control, you can
do: ((SRKNextEJBControlBean) myEJBControl).setProviderURL("t3://1.2.3.4:7001"); Another way would be to write your own context factory class which looks up and sets the provider URL. Ben -----Original Message----- From: Khanzode, Sandeep [mailto:Sandeep.Khanzode@...] Sent: Monday, March 24, 2008 2:40 PM To: Beehive Users Subject: Specify contextEnv as a property in EJB Control Importance: High 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." ******************************************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ******************************************************************************************** |
|
|
Re: Specify contextEnv as a property in EJB ControlIn 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@...> 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." > > |
|
|
RE: Specify contextEnv as a property in EJB ControlThanks Ben. Will try that.
-----Original Message----- From: Burgess, Benjamin [mailto:BBurgess@...] Sent: Monday, March 24, 2008 3:17 PM To: Beehive Users Subject: RE: Specify contextEnv as a property in EJB Control There are two ways: One is in the class that uses the control, you can do: ((SRKNextEJBControlBean) myEJBControl).setProviderURL("t3://1.2.3.4:7001"); Another way would be to write your own context factory class which looks up and sets the provider URL. Ben -----Original Message----- From: Khanzode, Sandeep [mailto:Sandeep.Khanzode@...] Sent: Monday, March 24, 2008 2:40 PM To: Beehive Users Subject: Specify contextEnv as a property in EJB Control Importance: High 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." ************************************************************************ ******************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************************ ******************** "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." |
| Free Forum Powered by Nabble | Forum Help |