Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Service Locator for versioned services

Service Locator for versioned services

2003-08-18       - By Navjot Singh

 Back
Reply:     1     2     3     4     5     6  

Wouldn't it be easy to configure 2-3 more ANT targets that can get the
desired .ear file for you.

OR

you would definitely want to push it down to the code.

regards
Navjot Singh


|-- --Original Message-- --
|From: An interest list for Sun Java Center J2EE Pattern Catalog
|[mailto:J2EEPATTERNS-INTEREST@(protected)]On Behalf Of Moore, Gary
|Sent: Thursday, August 14, 2003 6:09 PM
|To: J2EEPATTERNS-INTEREST@(protected)
|Subject: Re: Service Locator for versioned services
|
|
|Ian,
|
|        Very interesting thoughts for this.
|
|        I think it would be more work and would complicate your
|ServiceLocator beyond what is needed.
|
|        The problem you speak of to me seems more like a deployment time
|consideration. Thus, may be best handled via the application
|assembler role.
|The application assembler should determine which version of the services to
|use as part of the application functionality and create the application
|archive (.ear) containing those correct service jars.  If your services are
|backed by EJBs, I have never tried to deploy multiple applications with the
|same, or different EJB versions, possibly bound to the same physical JNDI
|name. It would be curious to see how well container providers support this
|scenario, could they even deploy 2 or more instances of the same EJB.
|
|        Unless you intend to have the capability in code to switch between
|versions of EJB interfaces.  In this case, you would still need
|some kind of
|Factory pattern to determine the correct version of the service to use
|anyway (to keep the client code neutral). So it would seem better
|to put the
|requirement of determining the correct version to the Factory and it can
|still gain the benefits of the ServiceLocator pattern for caching and
|simplifying the lookup of the services.
|
|Just my $0.02,
|Gary
|
|-- --Original Message-- --
|From: Ian Vellosa [mailto:vellosa@(protected)]
|Sent: Thursday, August 14, 2003 3:02 AM
|To: J2EEPATTERNS-INTEREST@(protected)
|Subject: Service Locator for versioned services
|
|
|Good morning people.
|
|I'm hoping that some of you can help stimulate ideas in my mind
|with regards
|the Service Locator.
|
|After writing an initial application which was all contained in one large
|ear, we have recently embarked on a process of splitting up the application
|into a number of services each of which have their own ear. Now that the
|next application is in development and modifications need to be made to the
|base services we would like to deploy different versions of the same
|service. So we deploy two ear files.
|
|    service-1 (See http://ice-1.ora-code.com).0.ear
|    service-2 (See http://ice-2.ora-code.com).0.ear
|
|and within them we have JNDI names something like
|
|    /CompanyName/ServiceName/VersionNumber/ejb
|
|I would like to include a properties/xml file as part of the deployment for
|my application that says it should use version 1.0 of  service X
|and version
|1.3 of service Y etc and have the Service Locator use this file to look up
|the correct version of the EJBs.
|
|Have people done or thought about this before?
|
|Are there any resources about that can help me? (I can not find anything on
|the Sun Java site)
|
|Does anyone have any words of wisdom for me?
|
|Any help is most appreciated
|
|Thanks in advance
|IV
|
|====================================================================
|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)
|
|====================================================================
|Companion Site: http://www.corej2eepatterns.com
|J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
|List Archive:
|http://archives.java.sun.com/archives/j2eepatter|ns-interest.html
|
|Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
|listserv@(protected)
|

====================================================================
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)



©2008 junlu.com - Jax Systems, LLC, U.S.A.