  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | EJB Versioning | EJB Versioning 2003-11-05 - By Koscho, William
Back I would like to be able to deploy multiple versions of an EJB, and have multiple clients select the version that want to use.
For example, I would like to deploy version 1.0 of Bean1 and version 1.1 of Bean1? Then have Client1 choose version 1.0 and Client2 choose version 1.1.
Can the container handle multiple versions of the same bean?
Assuming it cannot and we can only deploy a single version of the bean (i.e. version 1.1 of Bean1), then I can have an env entry in the deployment description with a "VersionNumber" variable. Then the client can check that environment variable once it receives the interface to the bean.
Once it has the version number, I am looking for a pattern to apply that will allow the client to behave differently based on that version. For example, when the client sees version 1.0 it displays the default screen, but when it sees version 1.1, it will call an additional method on the EJB and display an extra combo-box on the UI.
Any help is greatly appreciated.
Thanks,
Bill Koscho
Technical Specialist, Customer Service Development
Medco Health Solutions
Email: william_koscho@(protected)
Pager: 1-800-759-8888 PIN: 1781595
Phone: 201-269-2219
-- ---- ---- ---- ---- ---- ---- ---- --- This e-mail message and any attachments contain confidential information from Medco Health Solutions, Inc. If you are not the intended recipient, you are hereby notified that disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronic information is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender by reply message and then delete the electronic message and any attachments.
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <html>
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:#606420; text-decoration:underline;} span.EmailStyle17 {font-family:Arial; color:windowtext;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink="#606420">
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I would like to be able to deploy multiple versions of an EJB, and have multiple clients select the version that want to use.</span>< /font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>For example, I would like to deploy version 1.0 of Bean1 and version 1.1 of Bean1? Then have Client1 choose version 1.0 and Client2 choose version 1.1.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Can the container handle multiple versions of the same bean? </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Assuming it cannot and we can only deploy a single version of the bean (i.e. version 1.1 of Bean1), then I can have an env entry in the deployment description with a "VersionNumber" variable. Then the client can check that environment variable once it receives the interface to the bean. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Once it has the version number, I am looking for a pattern to apply that will allow the client to behave differently based on that version. For example, when the client sees version 1.0 it displays the default screen, but when it sees version 1.1, it will call an additional method on the EJB and display an extra combo-box on the UI.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Any help is greatly appreciated.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Thanks,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><b><i><font size=3 face=Arial><span style='font-size:12.0pt; font-family:Arial;font-weight:bold;font-style:italic'>Bill Koscho</span></font> </i></b></p>
<p class=MsoNormal><i><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;font-style:italic'>Technical Specialist, Customer Service Development</span></font></i></p>
<p class=MsoNormal><i><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;font-style:italic'>Medco Health Solutions</span></font></i>< /p>
<p class=MsoNormal><i><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;font-style:italic'>Email: william_koscho@(protected)< /span></font></i></p>
<p class=MsoNormal><i><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;font-style:italic'>Pager: 1-800-759-8888 PIN: 1781595</span>< /font></i></p>
<p class=MsoNormal><i><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;font-style:italic'>Phone: 201-269-2219</span></font></i></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
</div>
</body>
</html>
<HTML><BODY><P><hr size=1></P><P><STRONG>This e-mail message and any attachments contain confidential information from Medco Health Solutions, Inc. If you are not the intended recipient, you are hereby notified that disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronic information is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender by reply message and then delete the electronic message and any attachments.< /STRONG></P></BODY></HTML> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |