[JBoss-user] Cocoon war dir hot-redeploy causes JBoss Shutdown
Hi, all. My company has found a bug, which I've since entered at SourceForge. Thought I'd copy/paste the details here to give it some visibility and see if others have seen the same problem. Thanks! Bug: 840496 https://sourceforge.net/tracker/?func=detail&atid=376685&aid=840496&group_id=22866 I've discovered a problem that only happens with jboss 3.0 + tomcat + cocoon 2.0 + expanded war directory, relating to hot-redeploy. Basically, if you have a cocoon.war/ *directory* web application, and touch it's web.xml file, JBoss shuts down! Here are the steps to re-create: 1) Download a completely fresh jboss-3.0.7_tomcat-4.1.24 from sourceforge. 2) Download a completely fresh cocoon-2.0.4 (vm14) from apache. 3) Dropped cocoon.war in jboss' deploy directory. 4) Started up jboss. 5) Hit the cocoon servlet (got a sitemap error but didn't care) 6) "touch" cocoon.war. 7) NO REDEPLOY PROBLEM 8) Hit the cocoon servlet (got same sitemap error but still didn't care - at least could still hit it). 9) Stop jboss. 10) Delete the db, tmp and log dirs to be completely clean distro again. 11) Explode the cocoon.war file into cocoon.war/ *DIRECTORY INSTEAD*. 12) Start up jboss. 13) Hit the cocoon servlet (sitemap error; still don't care) 14) "touch" cocoon.war/WEB-INF/web.xml 15) *** REDEPLOY PROBLEM: jboss shuts down!! *** JBoss/Jetty does not do this. JBoss 3.2.x does not do this. A JBoss/Tomcat webapp without Cocoon does not do this. JBoss/Tomcat with a Cocoon war *file* does not do this. It has to be JBoss 3.0/Tomcat with a Cocoon 2.0 war *directory*, and you touch it's web.xml file to cause a redeploy. I have tested it on many different combinations, and here is the breakdown: 1) jboss-3.0.7_tomcat-4.1.24 + cocoon-2.0.4 - FAILED 2) jboss-3.0.8_tomcat-4.1.24 + cocoon-2.0.4 - FAILED 3) jboss-3.0.8_tomcat-4.1.27 + cocoon-2.0.4 - FAILED 4) jboss-3.0.8_tomcat-4.1.29 + cocoon-2.0.4 - FAILED 5) jboss-3.2.2 (tomcat_4.1.27) + cocoon-2.0.4 - PASSED 6) jboss-3.0.8_tomcat-4.1.24 + cocoon-2.1.2 - PASSED, though 500 errors Something was fixed in JBoss 3.2.2 / Tomcat that fixed this problem. Does anyone have any idea what this was? Unfortunately, we cannot upgrade to JBoss 3.2.2 right now. If the fix is known, can it be backported back to 3.0? A jboss-3.0.9_tomcat-4.1.29 with the backported fix would be awesome and greatly appreciated! BTW, with JBoss 3.2.2, it looks like the shutdown was intercepted; here's a line from the console: 22:43:58,980 INFO [STDOUT] Mon Nov 03 22:43:58 EST 2003 SHUTDOWN : System.exit() was not called When I see that line with 3.2.2, the redeploy finishes and JBoss does not shutdown. Maybe find where that log is done and see what can be similarly done in 3.0.x to intercept the shutdown? Last bit of info: This is using Sun JDK 1.4.1 and 1.4.2. It is recreateable on Windows; not sure about Linux and MacOSX. Thanks! David PS: Scott, I apologize if it was bad for me to assign it to you. I did it because I know you've been the one in the past that has dealt with web-tier integration into jboss, so I thought you'd be interested in this one. --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.2.3RC1 available
Dec 1 is the target date. -- Scott Stark Chief Technology Officer JBoss Group, LLC Phil Shrimpton wrote: On Tuesday 11 November 2003 17:29, Scott M Stark wrote: Hi, The 3.2.3RC1 release is available from sourceforge here: Thnaks. This fixes both my issues with 3.2.2. Anyone want to make a finger in the air guess as to the final 3.2.3 release? Phil --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.2.3RC1 available
On Tuesday 11 November 2003 17:29, Scott M Stark wrote: Hi, > The 3.2.3RC1 release is available from sourceforge here: Thnaks. This fixes both my issues with 3.2.2. Anyone want to make a finger in the air guess as to the final 3.2.3 release? Phil -- 11:57pm up 64 days, 2:07, 1 user, load average: 0.63, 0.25, 0.21 ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED] --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: Jetty vs Tomcat
So if I wanted ALL jsp pages in my webapp to be compiled when it is deployed would I change this part of the webdefault.xml file: jsp org.apache.jasper.servlet.JspServlet 0 to this?: jsp org.apache.jasper.servlet.JspServlet 1 I tested this by creating a jsp page that does not compile and reploying it. I didn't see any problems until i actually tried to navigate to the page. thanks. .peter Greg Wilkins wrote: You can access the jasper configuration in Jetty via the webdefault.xml in the jbossweb-jetty.sar regards JD Brennan wrote: Do you have an example of what the web.xml mappings would look like? I've checked the Tomcat docs, searched the JBoss 3.2.1 source tree and even read the web.xml DTD, but I still can't figure out how to do this. Thanks, JD -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:51 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Jetty vs Tomcat Yes, but you have to update the web.xml mappings to use these. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] Problem with SQL query for MySQL
Hello, I have exactly the same problem as Rafal, but with the following JBoss-generated query: "CREATE TABLE user (user_id INTEGER NOT NULL,login VARCHAR(250) BINARY, password_ VARCHAR(250) BINARY, first_name VARCHAR(250) BINARY, last_name VARCHAR(250) BINARY, gender VARCHAR(250) BINARY, email VARCHAR(250) BINARY, school_id INTEGER, CONSTRAINT pk_user PRIMARY KEY (user_id))" I downloaded the latest JBoss 3.2.3RC1, released today but unfortunately with the same result.. Were your modification taken in account in this release or is it a different problem? Thanks, Paul Branch_3_2 Rafal Kedziorski wrote: > At 20:24 28.10.2003 +0200, Alexey Loubyansky wrote: > >> It is fixed now. > > > In main cvs branch? > > > Regards, > Rafal > > >> alex >> >> Rafal Kedziorski wrote: >> >>> hi, >>> I'm using MySQL 4.0.13 and 4.0.14 (4.0.16 I will test tomorrow) and >>> JBoss 3.2.2. And I have problems with this query (generated by JBoss): >>> insert into user(class_id, retail_id, mandant_id, language_id, >>> user_data_id, nickname, login_name, password, status, creation_date, >>> last_login_date) values ('35F7A660096411D89BC0D1907F01', '1234', >>> 2, 1, null, null, '[EMAIL PROTECTED]', 'demo', 8, '2003-10-28 >>> 17:31:36', null) >>> but the same query with space after user >>> insert into user (class_id, retail_id, mandant_id, language_id, >>> user_data_id, nickname, login_name, password, status, creation_date, >>> last_login_date) values ('35F7A660096411D89BC0D1907F01', '1234', >>> 2, 1, null, null, '[EMAIL PROTECTED]', 'demo', 8, '2003-10-28 >>> 17:31:36', null) >>> works. >>> This exception is shown: >>> 17:31:36,406 ERROR [UserEntityBean] Could not create entity >>> java.sql.SQLException: Syntax error or access violation, message >>> from server: "You have an error in your SQL syntax. Check the manual >>> that corresponds to your MySQL server version for the right syntax to >>> use near 'user(class_id, retail_id, mandant_id, language_id, >>> user_data_id" at >>> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651) at >>> com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889) at >>> com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956) at >>> com.mysql.jdbc.Connection.execSQL(Connection.java:1874) at >>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1700 >>> ) at >>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1569 >>> ) at >>> org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:321) >>> at >>> org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:66) >>> at >>> org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:295) >>> at >>> org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:144) >>> at >>> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:518) >>> at >>> org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:208) >>> at >>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:269) >>> at >>> org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:580) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> Method) at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:324) at >>> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1042) >>> at >>> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) >>> at >>> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:197) >>> at >>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214) >>> >>> ... >>> >>> Regards, >>> Rafal >>> >>> --- >>> This SF.net email is sponsored by: SF.net Giveback Program. >>> Does SourceForge.net help you be more productive? Does it >>> help you create better code? SHARE THE LOVE, and help us help >>> YOU! Click Here: http://sourceforge.net/donate/ >>> ___ >>> JBoss-user mailing list >>> [EMAIL PROTECTED] >>> https://lists.sourceforge.net/lists/listinfo/jboss-user >> >> >> >> >> >> --- >> This SF.net email is sponsored by: SF.net Giveback Program. >> Does SourceForge.net help you be more productive? Does it >> help you create better code? SHARE THE LOVE, and help us help >> YOU! Click Here: http://sourceforge.net/donate/ >> __
Re: [JBoss-user] Need help with SSL setup. JBoss 3.2.1 Jetty bundle
Title: [JBoss-user] Need help with SSL setup. JBoss 3.2.1 Jetty bundle This is desribed in the for-pay admin document, as well as in the free 3.0 Quickstart guide, that you can obtain from http://sf.net/projects/jboss/ -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von suneth kandamby Gesendet: Di 11.11.2003 02:34 An: [EMAIL PROTECTED] Cc: Betreff: [JBoss-user] Need help with SSL setup. JBoss 3.2.1 Jetty bundle HiNewbie here. Could some one tell me how to setupSSL on the JBoss-Jetty 3.2.1 bundle? And how do itest if my SSL connection is working?If you could at least point me to a place wherei could find such information, i would reallyappreciate.Thanks in advance !-suneth.__Do you Yahoo!?Protect your identity with Yahoo! Mail AddressGuardhttp://antispam.yahoo.com/whatsnewfree---This SF.Net email sponsored by: ApacheCon 2003,16-19 November in Las Vegas. Learn firsthand the latestdevelopments in Apache, PHP, Perl, XML, Java, MySQL,WebDAV, and more! http://www.apachecon.com/___JBoss-user mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Spurious fields in the SQL Insert of a EJB 2.0 bean with One-to-One relations
What is the SQL query generated? Your configuration does not match the DTD. Which is Is it deployed w/o errors? [EMAIL PROTECTED] wrote: Dear sir I am using jboss-3.2.2RC1_tomcat-4.1.24 backed by MySql. I have an EJB 2.0 Entity bean in which I defined One-to-One relationship Between Manufacturer and Contact. In the Manufacturer table I keep the foreign key of the Contact and here I have a CMR field called contact that is mapped to the CONTACT_ID database field in the MANUFACTURER database table In the Contact Bean there is no CMR field referring to the Manufacturer (neither is A database field in the CONTACT database table referring to the MANUFACTURER table) Now I see that in my insert SQL statement for the Contact Bean there is an extra field generated (which of course is not there in the DB table) for that Manufacturer. I added the XML elements of the relationship. How must I correctly write these in order not to have the extra fields in the insert clause? Or must I always have keys in both parts of the relation (left and right) although I read in the JBossCMP doc that this was not necessary. Many grateful thanks for any suggestion. Here is the XML entry from the ejb-jar XML file === manufacturer-contact manufacturer ManufacturerRelationshipRole ip-role-name> One manufacturer Manufacturer contact contact contact ContactRelationshipRole le-name> One contact Contact And this is the the entry from the jbosscmp-jdbc.xml file = manufacturer-contact ManufacturerRelationshipRole ip-role-name> Manufacturer ContactRelationshipRole le-name> contactId CONTACT_ID java:/ContactInformationManagementDataSource mySQL false false true true --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Virtual Directory creation for Jboss
You can add one or more external contexts to wars deployed to a host by adding a Context element to the corresponding Host by editing the jbossweb-tomcat41.sar/META-INF/jboss-service.xml descriptor: true true true j_subject ... ... With this you can reference the /images path from any war deployed to the Host. For example, a test-ex.war index.html page accessible at http://localhost/test-ex/index.html that includes images from the external context: test-ex.war/index.html External Images -- Scott Stark Chief Technology Officer JBoss Group, LLC Ivaturi,Srinivas wrote: Hi I am able to create the Virtual Directory for my application in Tomcat in Server.XML. But I am deploying my application as WAR in JBOSS. So my WAR cannot talk to Tomcat Server.XML file. Now I have to crate a Virtual Directory in Jboss related XML file. If anyone knows please help me in this. Thanks in advance Srinivas Ivaturi --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Spurious fields in the SQL Insert of a EJB 2.0 bean with One-to-One relations
Dear sir I am using jboss-3.2.2RC1_tomcat-4.1.24 backed by MySql. I have an EJB 2.0 Entity bean in which I defined One-to-One relationship Between Manufacturer and Contact. In the Manufacturer table I keep the foreign key of the Contact and here I have a CMR field called contact that is mapped to the CONTACT_ID database field in the MANUFACTURER database table In the Contact Bean there is no CMR field referring to the Manufacturer (neither is A database field in the CONTACT database table referring to the MANUFACTURER table) Now I see that in my insert SQL statement for the Contact Bean there is an extra field generated (which of course is not there in the DB table) for that Manufacturer. I added the XML elements of the relationship. How must I correctly write these in order not to have the extra fields in the insert clause? Or must I always have keys in both parts of the relation (left and right) although I read in the JBossCMP doc that this was not necessary. Many grateful thanks for any suggestion. Here is the XML entry from the ejb-jar XML file === manufacturer-contact manufacturer ManufacturerRelationshipRole One manufacturer Manufacturer contact contact contact ContactRelationshipRole One contact Contact And this is the the entry from the jbosscmp-jdbc.xml file = manufacturer-contact ManufacturerRelationshipRole Manufacturer ContactRelationshipRole contactId CONTACT_ID java:/ContactInformationManagementDataSource mySQL false false true true --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] 3.2.3RC1 available
The 3.2.3RC1 release is available from sourceforge here: http://sourceforge.net/project/showfiles.php?group_id=22866 Changes notes are available here: http://sourceforge.net/docman/display_doc.php?docid=19918&group_id=22866 -- Scott Stark Chief Technology Officer JBoss Group, LLC --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More CMR problems
You should read the spec. At least relevant parts. You'll find many interesting stuff and save everyone's time. Steven Nakhla wrote: You know, in all the tutorials or books I've read, I've never seen that little tidbit of information. None of them said that only local interfaces can be used. Thanks! I think that may help. I'll give it a shot. --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] More CMR problems
Title: Message Good job they remembered to mention it in the spec then! :-) (Section 10.3 of the EJB 2.1 spec if you're interested). -- Danny Yates -Original Message-From: Steven Nakhla [mailto:[EMAIL PROTECTED] Sent: 11 November 2003 16:48To: [EMAIL PROTECTED]Subject: Re: [JBoss-user] More CMR problems You know, in all the tutorials or books I've read, I've never seen that little tidbit of information. None of them said that only local interfaces can be used. Thanks! I think that may help. I'll give it a shot.Alexey Loubyansky <[EMAIL PROTECTED]> wrote: Just follow the spec. Only local interfaces can be used in CMR. I have done nothing else.Steven Nakhla wrote:> Can you send me the code you used to do the test? Whenever I run my > test code, I get the exception I listed below. Did you have to do > anything special to JBoss to get it to work? I've been getting this > same exception for weeks now!> > */Alexey Loubyansky <[EMAIL PROTECTED]>/* wrote:> > It worked for me when I used AddressLocal to establish relationships on> the server side.> > Steven Nakhla wrote:> > > Yep. Not that the non-modified sources worked any better. I've> > remedied the SQLException problem, but now I'm faced with this> exception:> >> >> > java.rmi.ServerException: RemoteException occurred ! in server thread;> > nested exception is:> >> > java.rmi.ServerException: EJBException:; nested exception is:> >> > javax.ejb.EJBException: null; CausedByException is:> >> > null> >> > at> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)> >> > at sun.rmi.transport.Transport$1.run(Transport.java:148)> >> > at java.security.AccessController.doPrivileged(Native Method)> >> > at sun.rmi.transport.Transport.serviceCall(Transport.java:144)> >> > at> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)> >> > at> >> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)> >> > at java.lang.Thread.run(Thread.java:534)> >> > at> >> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown> > Source)> >> > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)> >> > at sun.rmi.server.UnicastRef.invoke(Unknown Source)> >> > at> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)> >> > at> >> org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)> >> > at> >> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)> >> > at> >> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)> >> > at> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)> >> > at> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)> >> > at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)> >> > at $Proxy2.create(Unknown Source)> >> > at address.ejb.AddressBookClient.testBean(AddressBookClient.java:66)> >> > at address.ejb.AddressBookClient.main(AddressBookClient.java:93)> >> > Caused by: java.rmi.ServerException: EJBException:; nested> exception is:> >> > javax.ejb.EJBException: null; CausedByException is:> >> > null> >> > at> >> org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347)> >> > at> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124)> >> > at> >> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)> >> > at> >> org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:484)> >> > at org.jboss.ejb.Container.invoke(Container.java:720)> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> >> > at> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> >> > at> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> >> > at java.lang.reflect.Method.invoke(Method.java:324)> >> > at> >> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)> >> > at> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)> >> > at> org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> >> > at> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> >> > at> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> >> > at java.lang.reflect.Method.invoke(Method.java:324)> >> > at> sun.rmi.server.UnicastServerRef.dispat
Re: [JBoss-user] Clueless on transactions
Again, the key point is that the cost of a jta tx is small. RequiresNew introduces a new tx and new lock that is isolated from the encompassing session tx. If used with an entity with commit option A caching or a custom caching policy like option D(option A + timeout), then there is no jdbc tx to access the database. The read-only tags have the same effect without introducing a new jta tx. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian McSweeney wrote: Thanks Scott, All makes sense except why does RequiresNew minimize the extent of the transaction lock. If anything I would have thought RequiresNew only decreases performance because it creates a new transaction and can't use an existing one if available. Thanks very much for all your help. Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More CMR problems
You know, in all the tutorials or books I've read, I've never seen that little tidbit of information. None of them said that only local interfaces can be used. Thanks! I think that may help. I'll give it a shot.Alexey Loubyansky <[EMAIL PROTECTED]> wrote: Just follow the spec. Only local interfaces can be used in CMR. I have done nothing else.Steven Nakhla wrote:> Can you send me the code you used to do the test? Whenever I run my > test code, I get the exception I listed below. Did you have to do > anything special to JBoss to get it to work? I've been getting this > same exception for weeks now!> > */Alexey Loubyansky <[EMAIL PROTECTED]>/* wrote:> > It worked for me when I used AddressLocal to establish relationships on> the server side.> > Steven Nakhla wrote:> > > Yep. Not that the non-modified sources worked any better. I've> > remedied the SQLException problem, but now I'm faced with this> exception:> >> >> > java.rmi.ServerException: RemoteException occurred in server thread;> > nested exception is:> >> > java.rmi.ServerException: EJBException:; nested exception is:> >> > javax.ejb.EJBException: null; CausedByException is:> >> > null> >> > at> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)> >> > at sun.rmi.transport.Transport$1.run(Transport.java:148)> >> > at java.security.AccessController.doPrivileged(Native Method)> >> > at sun.rmi.transport.Transport.serviceCall(Transport.java:144)> >> > at> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)> >> > at> >> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)> >> > at java.lang.Thread.run(Thread.java:534)> >> > at> >> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown> > Source)> >> > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)> >> > at sun.rmi.server.UnicastRef.invoke(Unknown Source)> >> > at> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)> >> > at> >> org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)> >> > at> >> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)> >> > at> >> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)> >> > at> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)> >> > at> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)> >> > at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)> >> > at $Proxy2.create(Unknown Source)> >> > at address.ejb.AddressBookClient.testBean(AddressBookClient.java:66)> >> > at address.ejb.AddressBookClient.main(AddressBookClient.java:93)> >> > Caused by: java.rmi.ServerException: EJBException:; nested> exception is:> >> > javax.ejb.EJBException: null; CausedByException is:> >> > null> >> > at> >> org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347)> >> > at> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124)> >> > at> >> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)> >> > at> >> org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:484)> >> > at org.jboss.ejb.Container.invoke(Container.java:720)> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> >> > at> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> >> > at> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> >> > at java.lang.reflect.Method.invoke(Method.java:324)> >> > at> >> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)> >> > at> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)> >> > at> org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> >> > at> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> >> > at> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> >> > at java.lang.reflect.Method.invoke(Method.java:324)> >> > at> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)> >> > at sun.rmi.transport.Transport$1.run(Transport.java:148)> >> > at java.security.AccessController.doPrivileged(Native Method)> >> > at sun.rmi.transport.Transport.serviceCall(Transport.java:144)> >> > at> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)> >> > at> >> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)> >> > at java.lang.Thread.run(Thread.java:534)> >> > Caused by: javax.ejb.EJBException: null; CausedByException is:> >> > null> >> > at> >> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:745)> >> > at> >> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:590)> >> > at> >> org.jboss.ejb.pl
RE: [JBoss-user] Clueless on transactions
Thanks Scott, All makes sense except why does RequiresNew minimize the extent of the transaction lock. If anything I would have thought RequiresNew only decreases performance because it creates a new transaction and can't use an existing one if available. Thanks very much for all your help. Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott M Stark Sent: 11 November 2003 16:20 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Clueless on transactions You have to draw the workflow and note what primary key/tx intersections there are to determine the contention. If everything is marked as Required, then each top level session access by a web page starts a new jta tx with a independent session bean. There is no contention at this point. For every entity bean touched by the session, there is a tx lock, so that if all 100 sessions are hitting the same entity beans then the bean is locked for the duration of the top level session bean invocation. Any contention will degrade performance. You can use RequiresNew and read-only to minimize the extent of the tx lock on entity data that is read-only or even read-mostly. You can use instance per transaction container configuration to make copies of the entity data that has no tx lock. You can use a custom locking policy that thumbs its nose at the ejb spec and does no locking at all. It all comes down to looking at the workflows and identifying where you can relax the strict pessimistic locking. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian McSweeney wrote: > Hi Scott, > > Thanks for your patience and help. > > Yep, I understand that there's no such thing as web page locking, > but let me put it another simpler way: > > Imagine a web page that views 100 records of a database > > The web page calls a method on a session façade to view those 100 > records. > > This method has transaction ="Required" > > Now if there are 100 users simultaneously trying to access this web page > they will have to do this in a non-concurrent, serialized way. Ie, each > one will have to wait for someone else to give up the transaction lock. > > a) Is this correct? > > b) does this significantly degrade performance. > > > Thanks very much, > Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Clueless on transactions
You have to draw the workflow and note what primary key/tx intersections there are to determine the contention. If everything is marked as Required, then each top level session access by a web page starts a new jta tx with a independent session bean. There is no contention at this point. For every entity bean touched by the session, there is a tx lock, so that if all 100 sessions are hitting the same entity beans then the bean is locked for the duration of the top level session bean invocation. Any contention will degrade performance. You can use RequiresNew and read-only to minimize the extent of the tx lock on entity data that is read-only or even read-mostly. You can use instance per transaction container configuration to make copies of the entity data that has no tx lock. You can use a custom locking policy that thumbs its nose at the ejb spec and does no locking at all. It all comes down to looking at the workflows and identifying where you can relax the strict pessimistic locking. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian McSweeney wrote: Hi Scott, Thanks for your patience and help. Yep, I understand that there's no such thing as web page locking, but let me put it another simpler way: Imagine a web page that views 100 records of a database The web page calls a method on a session façade to view those 100 records. This method has transaction ="Required" Now if there are 100 users simultaneously trying to access this web page they will have to do this in a non-concurrent, serialized way. Ie, each one will have to wait for someone else to give up the transaction lock. a) Is this correct? b) does this significantly degrade performance. Thanks very much, Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Clueless on transactions
No, required is the default, and if the there are multiple getters accessed in a work flow this just means that may not be able to cache the values as they existed at the start of the workflow. There is always a jdbc tx and this is distinct from the app server jta tx. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: I'm not sure... But once I put an @ejb.transaction="Required" on all setXXX methods of my Entity bean. This made sure that only setters are in the transaction. When looking up values there will we no transaction used... Am I right about this? Regards, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More CMR problems
Just follow the spec. Only local interfaces can be used in CMR. I have done nothing else. Steven Nakhla wrote: Can you send me the code you used to do the test? Whenever I run my test code, I get the exception I listed below. Did you have to do anything special to JBoss to get it to work? I've been getting this same exception for weeks now! */Alexey Loubyansky <[EMAIL PROTECTED]>/* wrote: It worked for me when I used AddressLocal to establish relationships on the server side. Steven Nakhla wrote: > Yep. Not that the non-modified sources worked any better. I've > remedied the SQLException problem, but now I'm faced with this exception: > > > java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is: > > java.rmi.ServerException: EJBException:; nested exception is: > > javax.ejb.EJBException: null; CausedByException is: > > null > > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) > > at sun.rmi.transport.Transport$1.run(Transport.java:148) > > at java.security.AccessController.doPrivileged(Native Method) > > at sun.rmi.transport.Transport.serviceCall(Transport.java:144) > > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) > > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) > > at java.lang.Thread.run(Thread.java:534) > > at > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown > Source) > > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) > > at sun.rmi.server.UnicastRef.invoke(Unknown Source) > > at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) > > at > org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135) > > at > org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96) > > at > org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) > > at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45) > > at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173) > > at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) > > at $Proxy2.create(Unknown Source) > > at address.ejb.AddressBookClient.testBean(AddressBookClient.java:66) > > at address.ejb.AddressBookClient.main(AddressBookClient.java:93) > > Caused by: java.rmi.ServerException: EJBException:; nested exception is: > > javax.ejb.EJBException: null; CausedByException is: > > null > > at > org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347) > > at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124) > > at > org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) > > at > org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:484) > > at org.jboss.ejb.Container.invoke(Container.java:720) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) > > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) > > at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) > > at sun.rmi.transport.Transport$1.run(Transport.java:148) > > at java.security.AccessController.doPrivileged(Native Method) > > at sun.rmi.transport.Transport.serviceCall(Transport.java:144) > > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) > > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) > > at java.lang.Thread.run(Thread.java:534) > > Caused by: javax.ejb
Re: [JBoss-user] More CMR problems
Can you send me the code you used to do the test? Whenever I run my test code, I get the exception I listed below. Did you have to do anything special to JBoss to get it to work? I've been getting this same exception for weeks now!Alexey Loubyansky <[EMAIL PROTECTED]> wrote: It worked for me when I used AddressLocal to establish relationships on the server side.Steven Nakhla wrote:> Yep. Not that the non-modified sources worked any better. I've > remedied the SQLException problem, but now I'm faced with this exception:> > > java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is:> > java.rmi.ServerException: EJBException:; nested exception is:> > javax.ejb.EJBException: null; CausedByException is:> > null> > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)> > at sun.rmi.transport.Transport$1.run(Transport.java:148)> > at java.security.AccessController.doPrivileged(Native Method)> > at sun.rmi.transport.Transport.serviceCall(Transport.java:144)> > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)> > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)> > at java.lang.Thread.run(Thread.java:534)> > at > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown > Source)> > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)> > at sun.rmi.server.UnicastRef.invoke(Unknown Source)> > at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)> > at > org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)> > at > org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)> > at > org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)> > at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)> > at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)> > at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)> > at $Proxy2.create(Unknown Source)> > at address.ejb.AddressBookClient.testBean(AddressBookClient.java:66)> > at address.ejb.AddressBookClient.main(AddressBookClient.java:93)> > Caused by: java.rmi.ServerException: EJBException:; nested exception is:> > javax.ejb.EJBException: null; CausedByException is:> > null> > at > org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347)> > at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124)> > at > org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)> > at > org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:484)> > at org.jboss.ejb.Container.invoke(Container.java:720)> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> > at java.lang.reflect.Method.invoke(Method.java:324)> > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)> > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)> > at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> > at java.lang.reflect.Method.invoke(Method.java:324)> > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)> > at sun.rmi.transport.Transport$1.run(Transport.java:148)> > at java.security.AccessController.doPrivileged(Native Method)> > at sun.rmi.transport.Transport.serviceCall(Transport.java:144)> > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)> > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)> > at java.lang.Thread.run(Thread.java:534)> > Caused by: javax.ejb.EJBException: null; CausedByException is:> > null> > at > org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:745)> > at > org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:590)> > at > org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:121)> > at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)> > at address.ejb.PersonCMP$Proxy.setAddress()> > at address.ejb.PersonBean.ejbPostCreate(PersonBean.java:224)> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)> > at java.lang.reflect.Method.invoke(Method.java:324)> > at > org.jboss.ejb.plugins.CMPPersist
Re: [JBoss-user] Read only CMR Collections?
On November 11, 2003 08:17 am, Alexey Loubyansky wrote: > I know ;) > > julien viet wrote: > > yes it works well. > > > >>What about using filters to begin/commit transactions? Brilliant idea. I keep forgetting about filters. That'll really simplify things, won't it? I'll give it a shot right away. -Neal --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Clueless on transactions
Hi Scott, Thanks for your patience and help. Yep, I understand that there's no such thing as web page locking, but let me put it another simpler way: Imagine a web page that views 100 records of a database The web page calls a method on a session façade to view those 100 records. This method has transaction ="Required" Now if there are 100 users simultaneously trying to access this web page they will have to do this in a non-concurrent, serialized way. Ie, each one will have to wait for someone else to give up the transaction lock. a) Is this correct? b) does this significantly degrade performance. Thanks very much, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott M Stark Sent: 10 November 2003 18:29 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Clueless on transactions There is no such thing as locking of web pages. A web page initiates a request that spans a workflow through any number of ejbs/jca resources and the ejb contract does say there should only be one transaction active in a given ejb. You can control the scope of the transactional lock using transactional tags like RequiresNew and read-only fields, but you have to draw out the workflows to see where the web pages are going to be conflicting. If there is no shared data there is no lock contention. We cover this is the advanced training. Brian McSweeney wrote: > Hi Scott, > Thanks for the help. So does this mean you would advocate the use of > transaction="required" everywhere as long as there are no transacted > resources? > > My application is a web application and my worry is this: > > Imagine if you are displaying a large amount of data that can possibly > change to users, for example let's say auctions on ebay. If the > underlying session façade method which calls something like > "getAuctionsForCategory()" has transaction="required", then does this > not effectively serialize your web application? Ie, every web page > request will have to get a lock on the > database. Am I wrong here? > > Thanks for the help, > Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Clueless on transactions
Hi Harm, Is this the same as making the getters read-only? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 11 November 2003 08:57 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Clueless on transactions I'm not sure... But once I put an @ejb.transaction="Required" on all setXXX methods of my Entity bean. This made sure that only setters are in the transaction. When looking up values there will we no transaction used... Am I right about this? Regards, Harm de Laat Informatiefabriek The Netherlands Scott M Stark <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/10/2003 07:28 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] Clueless on transactions There is no such thing as locking of web pages. A web page initiates a request that spans a workflow through any number of ejbs/jca resources and the ejb contract does say there should only be one transaction active in a given ejb. You can control the scope of the transactional lock using transactional tags like RequiresNew and read-only fields, but you have to draw out the workflows to see where the web pages are going to be conflicting. If there is no shared data there is no lock contention. We cover this is the advanced training. Brian McSweeney wrote: > Hi Scott, > Thanks for the help. So does this mean you would advocate the use of > transaction="required" everywhere as long as there are no transacted > resources? > > My application is a web application and my worry is this: > > Imagine if you are displaying a large amount of data that can possibly > change to users, for example let's say auctions on ebay. If the > underlying session façade method which calls something like > "getAuctionsForCategory()" has transaction="required", then does this > not effectively serialize your web application? Ie, every web page > request will have to get a lock on the > database. Am I wrong here? > > Thanks for the help, > Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Read only CMR Collections?
I know ;) julien viet wrote: yes it works well. What about using filters to begin/commit transactions? --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to limit the the number of records (Objects) a select returns
It is about declared-sql queries. This covered in for-pay docs. In jbosscmp-jdbc.xml in query element you can specify declared-sql like: ejbSelect java.lang.String MyBean myField X LIMIT 100 [EMAIL PROTECTED] wrote: I am using jboss-3.2.2RC1_tomcat-4.1.24 backed by a MySql database. In the MySql SQL I can limmit the number of rows retrieved by a SELECT steatment by a LIMIT clause How can I limit the number of objects in a collection (of a findAll for example) when possebly huge amounts of objects would match the selection. And / or how can I find out in advance how much records would match the selection In the jbosscmp-jdbc_3_0.dtd I found a section which declarese the syntaxt of an element in the jbosscmp-jdbc XML deployment file but as I am anything else as an expert DTD reader It does not tell me how and when that can (if at all) be used. The example mentions the LIMIT steatment. Here is the piece extracted from the jbosscmp-jdbc_3_0.dtd Could anyone give me a hint on how I could solve this problem. Thanks a lot. --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Read only CMR Collections?
yes it works well. > What about using filters to begin/commit transactions? > > Neal Sanche wrote: > >> Hi Alexey, >> >> Oh, I am definitely using the servlet container in the same VM, and >> although it's probably a really bad idea, I've been using Local >> objects in my web view layer instead of constantly making value >> objects all the time. This works fine until CMR collections are >> involved. Beginning a transaction is really not a good thing in the >> web view layer. Even in the web controller/model layer I've decided >> not to use transactions, instead calling session beans to handle any >> CMR accesses. >> >> Oh well, I guess the spec has us all hogtied. I'll have to look into >> what value objects can provide me with regard to CMR collections, >> then. >> >> -Neal >> >> On November 10, 2003 03:03 pm, Alexey Loubyansky wrote: >> >>> First, it is the spec requirement. >>> Second, do you run Servlet container in the same VM as JBoss? If >>> so, you could begin/commit transaction in the web layer and no need >>> for value objects. >>> >>> Neal Sanche wrote: >>> Hi All, I've found recently that it's becoming increasingly painful to avoid the 'CMR Collection cannot be modified outside of a transaction' when navigating down CMR many relations. Navigating down a 1 to 1 relation works fine. The thing is, all I'm trying to do is easily display information in web pages. I find myself constantly creating little 'value' classes that contain non-cmr collections just to get around the errors. I must be missing something. Is there a way to flag CMR lookups as read-only so JBoss doesn't get cranky about requiring transactions all the time? -Neal --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user >>> >>> --- >>> This SF.Net email sponsored by: ApacheCon 2003, >>> 16-19 November in Las Vegas. Learn firsthand the latest >>> developments in Apache, PHP, Perl, XML, Java, MySQL, >>> WebDAV, and more! http://www.apachecon.com/ >>> ___ >>> JBoss-user mailing list >>> [EMAIL PROTECTED] >>> https://lists.sourceforge.net/lists/listinfo/jboss-user >> >> >> >> >> --- >> This SF.Net email sponsored by: ApacheCon 2003, >> 16-19 November in Las Vegas. Learn firsthand the latest >> developments in Apache, PHP, Perl, XML, Java, MySQL, >> WebDAV, and more! http://www.apachecon.com/ >> ___ >> JBoss-user mailing list >> [EMAIL PROTECTED] >> https://lists.sourceforge.net/lists/listinfo/jboss-user >> > > > > > --- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Read only CMR Collections?
What about using filters to begin/commit transactions? Neal Sanche wrote: Hi Alexey, Oh, I am definitely using the servlet container in the same VM, and although it's probably a really bad idea, I've been using Local objects in my web view layer instead of constantly making value objects all the time. This works fine until CMR collections are involved. Beginning a transaction is really not a good thing in the web view layer. Even in the web controller/model layer I've decided not to use transactions, instead calling session beans to handle any CMR accesses. Oh well, I guess the spec has us all hogtied. I'll have to look into what value objects can provide me with regard to CMR collections, then. -Neal On November 10, 2003 03:03 pm, Alexey Loubyansky wrote: First, it is the spec requirement. Second, do you run Servlet container in the same VM as JBoss? If so, you could begin/commit transaction in the web layer and no need for value objects. Neal Sanche wrote: Hi All, I've found recently that it's becoming increasingly painful to avoid the 'CMR Collection cannot be modified outside of a transaction' when navigating down CMR many relations. Navigating down a 1 to 1 relation works fine. The thing is, all I'm trying to do is easily display information in web pages. I find myself constantly creating little 'value' classes that contain non-cmr collections just to get around the errors. I must be missing something. Is there a way to flag CMR lookups as read-only so JBoss doesn't get cranky about requiring transactions all the time? -Neal --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] relation VS value-object
Greetings, I would like to know what diferences (advantages/disadvantages) exist between using a relation and using a value-object? I recently made this interface method to represent a relation but I also inserted an optional value-object method. /** * @ejb.interface-method * view-type="local" * @ejb.relation * name="service_TO_primitive" * role-name="service_CALLS_primitive" * cascade-delete="no" * target-ejb="Primitive" * target-role-name="primitive_IS_CALLED_BY_service" * target-cascade-delete="no" * target-multiple="no" * @ejb.value-object * aggregate="pt.ptinovacao.nginpro.uif.ejb.access.PrimitiveValue" * aggregate-name="primitive" * relation="external" * @jboss.relation * related-pk-field="primitiveId" * fk-column="primitive_id" */ public abstract PrimitiveLocal getPrimitive(); public abstract void setPrimitive(PrimitiveLocal primitive); The only thing I can manage here is that in a relation I may have a delete cascade and in a value-object I'm unable to define it. So, can any of you briefly show me what uses are reasonable to use with one method or the other? NOTE: the performance issue is very important to me! thanks, Pedro Salazar. -- -PS --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More CMR problems
It worked for me when I used AddressLocal to establish relationships on the server side. Steven Nakhla wrote: Yep. Not that the non-modified sources worked any better. I've remedied the SQLException problem, but now I'm faced with this exception: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: null; CausedByException is: null at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) at $Proxy2.create(Unknown Source) at address.ejb.AddressBookClient.testBean(AddressBookClient.java:66) at address.ejb.AddressBookClient.main(AddressBookClient.java:93) Caused by: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: null; CausedByException is: null at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:484) at org.jboss.ejb.Container.invoke(Container.java:720) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) Caused by: javax.ejb.EJBException: null; CausedByException is: null at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:745) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:590) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:121) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at address.ejb.PersonCMP$Proxy.setAddress() at address.ejb.PersonBean.ejbPostCreate(PersonBean.java:224) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.plugins.CMPPersistenceManager.postCreateEntity(CMPPersistenceManager.java:240) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.postCreateEntity(CachedConnectionInterceptor.java:277) at org.jboss.ejb.EntityContainer.postCreateHome(EntityContainer.java:724) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.Dele
Re: [JBoss-user] CMP field for key not found
On Mon, 2003-11-10 at 19:34, Alexey Loubyansky wrote: > I would remove about 80% of XDoclet tags first. > > 1. you don't have to copy them for setters if you have them for getters. > 2. remove @jboss.target-relation > OK, I've done what you referred in issues #1 and #2: /** * @ejb.interface-method * view-type="local" * @ejb.relation * name="service_TO_primitive" * role-name="service_CALLS_primitive" * cascade-delete="no" * target-ejb="Primitive" * target-role-name="primitive_IS_CALLED_BY_service" * target-cascade-delete="no" * target-multiple="no" * @ejb.value-object * aggregate="pt.ptinovacao.nginpro.uif.ejb.access.PrimitiveValue" * aggregate-name="primitive" * relation="external" * @jboss.relation * related-pk-field="primitiveId" * fk-column="primitive_id" */ public abstract PrimitiveLocal getPrimitive(); public abstract void setPrimitive(PrimitiveLocal primitive); Apparently, it was also needed the setter (setPrimitive()) for the interface method of the relationship. I didn't knew that... Thanks Alexey!! regards, Pedro Salazar -- -PS --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [NEWBIE]Questions about JBoss 3.2.2 bundled with Tomcat 4.1
> Thank you Sasha. What if I was deploying my war with an Ant project, > 'unwaring' my war under webapp (i.e. I have a folder, let's > say 'jemos' that > represents my context). Is that enough that I put my folder > under /deploy? You have two possibilities: - put your war FILE under deploy (compressed), or - expand (unwar) your file under deploy BUT the resulting directory must end in .war => jemos.war/ The second solution allows you to dynamically modify your JSP without having to redeploy your web app. Cheers, Sacha x Sacha Labourey General Manager JBoss Group (Europe) SàRL x --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [NEWBIE]Questions about JBoss 3.2.2 bundled with Tomcat 4.1
Thank you Sasha. What if I was deploying my war with an Ant project, 'unwaring' my war under webapp (i.e. I have a folder, let's say 'jemos' that represents my context). Is that enough that I put my folder under /deploy? Thnks, Marco - Original Message - From: "Sacha Labourey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 11, 2003 10:36 AM Subject: RE: [JBoss-user] [NEWBIE]Questions about JBoss 3.2.2 bundled with Tomcat 4.1 > Hi, I just changed my configuration from two separate bundles (Jboss + > Tomcat) to one unique one. Good. > I have few questions, as the configuration is not exactly the same: > > 1) What is now the path for CATALINA_HOME? You don't need it anymore. Remove it in fact. > 2) How do I deploy now applications that before I was deploying under > CATALINA_HOME/webapps? You put your WAR under the /deploy folder (i.e. JBoss_HOME/server/default/deploy) Cheers, Sacha x Sacha Labourey General Manager JBoss Group (Europe) SàRL x --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [NEWBIE]Questions about JBoss 3.2.2 bundled with Tomcat 4.1
> Hi, I just changed my configuration from two separate bundles (Jboss + > Tomcat) to one unique one. Good. > I have few questions, as the configuration is not exactly the same: > > 1) What is now the path for CATALINA_HOME? You don't need it anymore. Remove it in fact. > 2) How do I deploy now applications that before I was deploying under > CATALINA_HOME/webapps? You put your WAR under the /deploy folder (i.e. JBoss_HOME/server/default/deploy) Cheers, Sacha x Sacha Labourey General Manager JBoss Group (Europe) SàRL x --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [NEWBIE]Questions about JBoss 3.2.2 bundled with Tomcat 4.1
Hi, I just changed my configuration from two separate bundles (Jboss + Tomcat) to one unique one. I have few questions, as the configuration is not exactly the same: 1) What is now the path for CATALINA_HOME? 2) How do I deploy now applications that before I was deploying under CATALINA_HOME/webapps? Thanks for any help, Marco --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Clueless on transactions
I'm not sure... But once I put an @ejb.transaction="Required" on all setXXX methods of my Entity bean. This made sure that only setters are in the transaction. When looking up values there will we no transaction used... Am I right about this? Regards, Harm de Laat Informatiefabriek The Netherlands Scott M Stark <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/10/2003 07:28 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] Clueless on transactions There is no such thing as locking of web pages. A web page initiates a request that spans a workflow through any number of ejbs/jca resources and the ejb contract does say there should only be one transaction active in a given ejb. You can control the scope of the transactional lock using transactional tags like RequiresNew and read-only fields, but you have to draw out the workflows to see where the web pages are going to be conflicting. If there is no shared data there is no lock contention. We cover this is the advanced training. Brian McSweeney wrote: > Hi Scott, > Thanks for the help. So does this mean you would advocate the use of > transaction="required" everywhere as long as there are no transacted > resources? > > My application is a web application and my worry is this: > > Imagine if you are displaying a large amount of data that can possibly > change to users, for example let's say auctions on ebay. If the > underlying session façade method which calls something like > "getAuctionsForCategory()" has transaction="required", then does this > not effectively serialize your web application? Ie, every web page > request will have to get a lock on the > database. Am I wrong here? > > Thanks for the help, > Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to limit the the number of records (Objects) a select returns
Title: Message I am using jboss-3.2.2RC1_tomcat-4.1.24 backed by a MySql database. In the MySql SQL I can limmit the number of rows retrieved by a SELECT steatment by a LIMIT clause How can I limit the number of objects in a collection (of a findAll for example) when possebly huge amounts of objects would match the selection. And / or how can I find out in advance how much records would match the selection In the jbosscmp-jdbc_3_0.dtd I found a section which declarese the syntaxt of an element in the jbosscmp-jdbc XML deployment file but as I am anything else as an expert DTD reader It does not tell me how and when that can (if at all) be used. The example mentions the LIMIT steatment. Here is the piece extracted from the jbosscmp-jdbc_3_0.dtd Could anyone give me a hint on how I could solve this problem. Thanks a lot.
[JBoss-user] Virtual Directory creation for Jboss
Hi I am able to create the Virtual Directory for my application in Tomcat in Server.XML. But I am deploying my application as WAR in JBOSS. So my WAR cannot talk to Tomcat Server.XML file. Now I have to crate a Virtual Directory in Jboss related XML file. If anyone knows please help me in this. Thanks in advance Srinivas Ivaturi --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user