[JBoss-user] postgresql strange behaviour
Hi , i am a newbie in jboss (and j2ee) and i am having problems making the SUN's J2EE tutorial examples run in Jboss. i am experiencing a different behaviour in postgresql, using 1) J2EE RI 2) JBoss 2.4 In 1) every function seems to run as an atomic operation, (with the database queries either nested in begin-end blocks, or by themeselfs if they are the only transaction in the function. In 2) strangely for the first connection it issues a *begin*, sets the transaction isolation level, and then *rollbacks*. Afterwards, for every function, jboss starts with issuing a begin, which unfortunately never ends, and postgresql locks the table. I have read in the forums, that one should close() the connection in every home method. The point is that the code i am playing with is from SUN's J2EE tutorial, and it would be great to run it in JBoss without, having to modify the code. Theory says that a commit is done after the end of each method. Any thoughts??? ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] env-entry JDNI name
Mike Hoolehan <[EMAIL PROTECTED]> writes: > I'm attempting to use the tag in my web.xml descriptor of a j2ee app to >define some constants. Like this: > > > Hex code for highlight color > htmlHighlightColor > #FF > java.lang.String > > > As the app is deployed, I see this in the log: > ... > 2001-04-11 09:39:23 - ContextManager: Adding context Ctx( /mbz-test ) > [Auto deploy] Add env-entry htmlHighlightColor java.lang.String #FF Hex code >for highlight color > ... > > Looks good.. But under what JDNI name is this? java:/comp/env/htmlHighlightColor >doesn't work, plain htmlHighlightColor doesn't work, using >application.getAttribute("htmlHighlightColor") doesn't work in jsp. I don't see the >entry with the JNDIView mbean... > This file needs to be read by jBoss as well as Tomcat for some reason. It won't happen unless there is also at least an "empty" jboss-web.xml file in your WEB-INF directory. I think this will work: Darrin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat jBoss security
FWIW, this is not the way it is set up in the preconfigured JBoss 2.2/Tomcat 3.2.1 distro. Probably worth sticking in bugzilla. Darrin "Scott M Stark" <[EMAIL PROTECTED]> writes: > The JavaPetStore example uses JDBCRealm and JbossRealm successfully. The order > of JDBCRealm and JbossRealm in the server.xml is significant and JbossRealm must > follow JDBCRealm. > > - Original Message - > From: "Dug" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, April 17, 2001 9:34 AM > Subject: RE: [JBoss-user] Tomcat jBoss security > > > > Have you actually managed to get the servlet --> bean security working? > > > > Dug > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user