Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 26978 invoked from network); 7 Feb 2002 13:12:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Feb 2002 13:12:59 -0000 Received: (qmail 3050 invoked by uid 97); 7 Feb 2002 13:12:37 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 3003 invoked by uid 97); 7 Feb 2002 13:12:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2992 invoked from network); 7 Feb 2002 13:12:36 -0000 content-class: urn:content-classes:message Subject: AW: EJB - JSP / Properties MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 7 Feb 2002 14:12:33 +0100 Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: EJB - JSP / Properties Thread-Index: AcGv15r63pMco0ACTIqjQL0e0Ffo0wAADxOg From: "Ralph Einfeldt" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I tend to put as much of java code into beans as sensefull. In this case I would create a class that encapsulates=20 the creation of the context. Other ways: - Use an include - Create and use a tag library > -----Urspr=FCngliche Nachricht----- > Von: Lo=EFc Lef=E8vre [mailto:llefevre@fivia.com] > Gesendet: Donnerstag, 7. Februar 2002 14:04 > An: Mailing List Tomcat > Betreff: EJB - JSP / Properties =20 > Properties props =3D (Properties)System.getProperties().clone(); > props.setProperty( "java.naming.factory.initial", > "org.jnp.interfaces.NamingContextFactory" ); > props.setProperty( "java.naming.provider.url", "localhost" ); > props.setProperty( "java.naming.factory.url.pkgs", > "org.jboss.naming:org.jnp.interfaces" ); >=20 > InitialContext jndiContext =3D new InitialContext( props ); >=20 > Is there any way beautifuler to do that? > In the web.xml file? -- To unsubscribe: For additional commands: Troubles with the list: