Re: T5 BeanEditForm and selectObject component
I found out that the real cause of the problem was beaneditform add parameter. For example t:beaneditform object=deposit add=account model=depositModel t:parameter name=account ... /t:parameter /t:beaneditform will fail and t:beaneditform object=deposit model=depositModel t:parameter name=account ... /t:parameter /t:beaneditform public BeanModel getDepositModel() { ... model.add(account); return model; } will work. kristjankelt wrote: I'm using a bean edit form with the select object component (taken from Tapestry Wiki http://wiki.apache.org/tapestry/Tapestry5SelectObject). t:beaneditform object=deposit add=account model=depositModel t:parameter name=account t:label for=account/ t:selectObject t:id=account list=accounts value=deposit.account labelField=literal:account/ /t:parameter /t:beaneditform -- View this message in context: http://www.nabble.com/T5-BeanEditForm-and-selectObject-component-tp21270740p21473720.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 GWT Integration
Thanks Daniel!! I have always been curious about this but shied away as free time is short supply these days, so when I get through my TO DO list (only 1 million things left), I will give it a bash. much appreciated, Peter - Original Message - From: Daniel Jue teamp...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Wednesday, 31 December, 2008 10:01:13 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5 GWT Integration Hi all, Happy New Year! I have created a new wiki page that shows how to use Tapestry 5 and GWT. It's based on the example from Pär Dahlberg's blog, but this time it uses Eclipse. I've kept his package naming in honor if his example. Also it uses T5 features to add in the Javascript code, and the code is streamlined a bit. The example shows multiple entrypoints, and a parent T5 component that handles the inclusion of the GWTSupport Javascript loader. There is also a screen shot showing a couple buttons and two instances of a component that use a GWT service, each acting independently from each other. (Although they auto-refresh at the same time, they could be made different) The entrypoint that uses a service is called StockWatcher. I'm not sure where I got it from, it may have been source code from a book or website. It's been modified slightly so it can be inside a T5 Component, and works with multiple instances on one page. You can find the wiki article here: http://wiki.apache.org/tapestry/Tapestry5GWTIntegration The source code link is at the top. Regards, Daniel Jue - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 GWT Integration
Thanks! I hope it's useful. The one thing that I haven't tried yet is getting the GWT hosted mode to work in the same project, since that's a really rapid way of seeing what you're doing. Also the way the GWT compiler has to output into the webapp source directory is a little flaky (you have to refresh eclipse, and maybe even delete the old gwt compiled js code if the hash is different). Maybe Maven Assembly could be used. I'm very happy with T5 being the parent web app, and just having GWT components. As much as the GWT hardliners want to believe it, multi-page web apps are not dead. :-) Daniel On Thu, Jan 15, 2009 at 4:34 AM, Peter Stavrinides p.stavrini...@albourne.com wrote: Thanks Daniel!! I have always been curious about this but shied away as free time is short supply these days, so when I get through my TO DO list (only 1 million things left), I will give it a bash. much appreciated, Peter - Original Message - From: Daniel Jue teamp...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Wednesday, 31 December, 2008 10:01:13 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5 GWT Integration Hi all, Happy New Year! I have created a new wiki page that shows how to use Tapestry 5 and GWT. It's based on the example from Pär Dahlberg's blog, but this time it uses Eclipse. I've kept his package naming in honor if his example. Also it uses T5 features to add in the Javascript code, and the code is streamlined a bit. The example shows multiple entrypoints, and a parent T5 component that handles the inclusion of the GWTSupport Javascript loader. There is also a screen shot showing a couple buttons and two instances of a component that use a GWT service, each acting independently from each other. (Although they auto-refresh at the same time, they could be made different) The entrypoint that uses a service is called StockWatcher. I'm not sure where I got it from, it may have been source code from a book or website. It's been modified slightly so it can be inside a T5 Component, and works with multiple instances on one page. You can find the wiki article here: http://wiki.apache.org/tapestry/Tapestry5GWTIntegration The source code link is at the top. Regards, Daniel Jue - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to specify onUnload in body ?
You can observe browser events also by using prototype Event.observe function. For instance you can use this javascript code in your page: Event.observe(window, 'unload', function() { // your unload actions }); In this case you don't need direct access to html body element what will simplify your situation. On Thu, Jan 15, 2009 at 11:28 AM, tapestryphoto pho...@digiatlas.orgwrote: Hi, I have a template component that is used by all my pages. I'd like to be able to specify body onUnload=... for one of those pages. Unfortunately it doesn't seem to matter what way I try I cannot get it to work. I can't include a body in the page because then there will be two such tags (Firefox doesn't mind, but IE doesn't recognise the second body tag - plus it is poor form anyway). I can't include onUnload in the template body because it appears to just be replaced with a standard body tag when the page is rendered. I can't use any form of t:if ... (which I would have liked to do - passing the onUnload string into my template and then choosing a single body or parameterised version depending on whether the value was null) because body has to match with /body and the /t:if tag obviously screws this up. I can't use t:outputRaw to generate my tag because it won't generate special characters properly ( and ). I don't recall having these sorts of problems with Tapestry 3 when I used it many moons ago. It seems T5 is really rather limited in this respect. Is there any way to do what I want? It is rather critical that I can perform onUnload. thanks, p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Connection Problem
Hi guys, just want to give an update. My problem has been solved, i've been leaving it for days and there's no connection problem. in my case, the problem was I'm missing this one line : property name=connection.provider_classorg.hibernate.connection.C3P0ConnectionProvider/property and the real c3p0-0.9.1.jar file. Since in development , using hibernate-c3p0-3.3.1.GA.jar is enough. Hope this can help anyone with the same problem. cheers, abangkis. On Mon, Jan 12, 2009 at 10:26 PM, abangkis abang...@gmail.com wrote: Hi jonathan and angelo, thanks for the pointer. I'll try it this evening. On Mon, Jan 12, 2009 at 10:51 AM, Jonathan Barker jonathan.theit...@gmail.com wrote: I configure connection pooling on my app server, so I have no hands-on experience with c3p0. Certainly it looks like this would work well. If it doesn't, then one more paranoid thing Abangkis can do is add hibernate.c3p0.validate=true to force checking of every connection on checkout from the pool. -Original Message- From: Angelo Chen [mailto:angelochen...@yahoo.com.hk] Sent: Sunday, January 11, 2009 22:10 To: users@tapestry.apache.org Subject: Re: Connection Problem Hi, there was a post before in this forum that solves this problem for me, but I can't remember the link, basically, here are the things I added and it's running with any problem: !-- pool via c3p0 which knows how to reconnect to server and does it nicely-- property name=connection.provider_classorg.hibernate.connection.C3P0ConnectionPr ovider/property property name=hibernate.c3p0.acquire_increment3/property property name=hibernate.c3p0.idle_test_period100/property !-- seconds -- property name=hibernate.c3p0.max_size20/property property name=hibernate.c3p0.max_statements0/property property name=hibernate.c3p0.min_size1/property property name=hibernate.c3p0.timeout1000/property I put this in hibernate.cfg.xml, that's the only file I have for tapestry-hibernate. Angelo abangkis wrote: Hello, I have an application that deployed with this kind of architecture : Apache httpd server - Glassfishv2 - Tapestry - Tapestry-Hibernate - Mysql. And every 8 Hour or So, i've got a broken pipe error message. I've tried following this guide http://www.codefin.net/2007/05/hibernate-and-mysql-connection- timeouts.html, but it didn't seems to work. Any other idea what kind of configuration i should tweak in order for this not to happened ? the software versions are : Apache 2.2.8 Sun Java System Application Server 9.1 (build b58g-fcs) Tapestry 5.0.15 Mysql 5.0.51a-3ubuntu5.4 Cheers , Abangkis - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/Connection-Problem- tp21393799p21407688.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to specify onUnload in body ?
Hi, I have a template component that is used by all my pages. I'd like to be able to specify body onUnload=... for one of those pages. Unfortunately it doesn't seem to matter what way I try I cannot get it to work. I can't include a body in the page because then there will be two such tags (Firefox doesn't mind, but IE doesn't recognise the second body tag - plus it is poor form anyway). I can't include onUnload in the template body because it appears to just be replaced with a standard body tag when the page is rendered. I can't use any form of t:if ... (which I would have liked to do - passing the onUnload string into my template and then choosing a single body or parameterised version depending on whether the value was null) because body has to match with /body and the /t:if tag obviously screws this up. I can't use t:outputRaw to generate my tag because it won't generate special characters properly ( and ). I don't recall having these sorts of problems with Tapestry 3 when I used it many moons ago. It seems T5 is really rather limited in this respect. Is there any way to do what I want? It is rather critical that I can perform onUnload. thanks, p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry With PostgreSQL
can somebody help me with tapestry and postgres connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency postgres? -- Gutemberg A. Da Silva
Re: Tapestry With PostgreSQL
Gutemberg A. Da Silva schrieb: can somebody help me with tapestry and postgres connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency postgres? Not Tapestry related, but anyway: dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId version8.3-603.jdbc4/version /dependency hint: maven repo search http://mvnrepository.com Andy - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: EJB questions about Jumpstart
The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: EJB questions about Jumpstart
Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
Re: Tapestry With PostgreSQL
hi guy, thank for your help. 2009/1/15 Andy Pahne andy.pa...@googlemail.com Gutemberg A. Da Silva schrieb: can somebody help me with tapestry and postgres connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency postgres? Not Tapestry related, but anyway: dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId version8.3-603.jdbc4/version /dependency hint: maven repo search http://mvnrepository.com Andy - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Gutemberg A. Da Silva
Re: EJB questions about Jumpstart
How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
Re: EJB questions about Jumpstart
@Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
Re: EJB questions about Jumpstart
I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get away with injecting the bean into the web class with @EJB. See https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html . Are you accessing remotely or from within an EAR? On 16/01/2009, at 12:19 AM, Sid Ferreira wrote: @Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry With Connector
can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? -- Gutemberg A. Da Silva
Re: EJB questions about Jumpstart
was within an ear On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get away with injecting the bean into the web class with @EJB. See https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html . Are you accessing remotely or from within an EAR? On 16/01/2009, at 12:19 AM, Sid Ferreira wrote: @Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
Re: Tapestry With Connector
google for it Gutemberg A. Da Silva sag@gmail.com 15.01.2009 14:38 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Tapestry With Connector can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? -- Gutemberg A. Da Silva
Re: Tapestry With Connector
Gutemberg A. Da Silva schrieb: can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? Search the net. Uli - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry With Connector
kristian, this post was for doubts and solution where google didn't get to resolve. 2009/1/15 Kristian Marinkovic kristian.marinko...@porsche.co.at google for it Gutemberg A. Da Silva sag@gmail.com 15.01.2009 14:38 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Tapestry With Connector can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? -- Gutemberg A. Da Silva -- Gutemberg A. Da Silva
Re: EJB questions about Jumpstart
Your lookup string looks fine according to the doco I've just read. Have you confirmed the jndi entries exist and their format? See http://www.myeclipseide.com/PNphpBB2-viewtopic-t-18850.html Have you provided jndi properties to the InitialContext? This is usually done by putting a jndi.properties in the classpath (Glassfish server may already have one?) or specifying the properties programmatically . This FAQ may help: https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html Beyond that I can't help without imitating your setup which I unfortunately don't have time to do. Sorry if I have only covered ground you have already covered. Geoff On 16/01/2009, at 12:39 AM, Sid Ferreira wrote: was within an ear On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get away with injecting the bean into the web class with @EJB. See https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html . Are you accessing remotely or from within an EAR? On 16/01/2009, at 12:19 AM, Sid Ferreira wrote: @Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: EJB questions about Jumpstart
Also http://markmail.org/message/jmi4opzz52pcr2cf#query:+page:1+mid:3madrl6pya4i7sei+state:results On 16/01/2009, at 12:39 AM, Sid Ferreira wrote: was within an ear On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get away with injecting the bean into the web class with @EJB. See https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html . Are you accessing remotely or from within an EAR? On 16/01/2009, at 12:19 AM, Sid Ferreira wrote: @Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: EJB questions about Jumpstart
Indeed it seems that was lack of configurations... I'll check it out... Thanks On Thu, Jan 15, 2009 at 11:56 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: Also http://markmail.org/message/jmi4opzz52pcr2cf#query:+page:1+mid:3madrl6pya4i7sei+state:results On 16/01/2009, at 12:39 AM, Sid Ferreira wrote: was within an ear On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: I haven't used Glassfish, but here goes my best guess... I see there is a FAQ in Glassfish about this. If you have the WAR and JAR together in an EAR then you might be able to get away with injecting the bean into the web class with @EJB. See https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html . Are you accessing remotely or from within an EAR? On 16/01/2009, at 12:19 AM, Sid Ferreira wrote: @Stateless only On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: How are the sesson beans annotated and interaced? eg. in JumpStart PersonService is like this: @Stateless @Local(IPersonServiceLocal.class) @Remote(IPersonServiceRemote.class) public class PersonService implements IPersonServiceLocal, IPersonServiceRemote { On 16/01/2009, at 12:11 AM, Sid Ferreira wrote: Glassfish V2, based on a friend's response. On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: The PersistenceContext unitName is not the problem at this point. It is used to map persistence of an entity to a datasource. Your problem, however, is how to look up a session bean from a client. What EJB container are you using? JBoss 4.3? This is important because it will determine the format of the names of the session beans registered in JNDI. On 15/01/2009, at 12:30 AM, Sid Ferreira wrote: OBS: I was going to send just for Geoff, but maybe someone else could know the answer. Im studing the EJB example but Im failing to make mine work. Im trying to load ClientesUsuarioFacade or ClientesUsuarioFacadeLocal (Im newbie, got a challenge that can mean use T5 in my company and also my personal projects). In the example it is used jumpstart/PersonService/local, and Ive noticed that @PersistenceContext(unitName = jumpstart) exists in the PersonService model, wich probably means unitname/modelname/type. In the EJBs provided to me, unitname isn't set, and the only way I found to make it work as defining th ejb in the xml and using the following functions: static public UsuariosClienteFacadeLocalExt UsuariosCliente() throws Exception{ try { Context c = new InitialContext(); return (UsuariosClienteFacadeLocalExt) c.lookup(java:comp/env/UsuariosClienteFacade); } catch (Exception e) { throw new Exception(FacadeLocator Failure); } } They are similars, but the address java:comp isn't friendly as the another. So, I want to find a way to make it easyer, being coding or blaming the badly done EJB. Thanks in advance -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
Re: Tapestry With Connector
http://www.google.com/search?q=sql+server+jdbc What's wrong with you? The first two results link to two implementations for Microsoft's sql server. Just look them up in your maven repository of choice and add them to your pom. Same applies to other vendors. And if you don't know how to add dependencies to your pom or what the different tags mean and what to input where, look it up in the maven documentation. Uli Gutemberg A. Da Silva schrieb: kristian, this post was for doubts and solution where google didn't get to resolve. 2009/1/15 Kristian Marinkovic kristian.marinko...@porsche.co.at google for it Gutemberg A. Da Silva sag@gmail.com 15.01.2009 14:38 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Tapestry With Connector can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? -- Gutemberg A. Da Silva - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry With Connector
http://tinyurl.com/7nxgxq P.S. Couldn't resist On Thu, Jan 15, 2009 at 3:50 PM, Gutemberg A. Da Silva sag@gmail.com wrote: kristian, this post was for doubts and solution where google didn't get to resolve. 2009/1/15 Kristian Marinkovic kristian.marinko...@porsche.co.at google for it Gutemberg A. Da Silva sag@gmail.com 15.01.2009 14:38 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Tapestry With Connector can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? -- Gutemberg A. Da Silva -- Gutemberg A. Da Silva -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry With Connector
nothing wrong for me. I was with doubts and tapestry-users community serves for resolution of doubts what others users DIDN'T get resolve for other way (google, ...). thanks for all. 2009/1/15 Andreas Andreou andy...@di.uoa.gr http://tinyurl.com/7nxgxq P.S. Couldn't resist On Thu, Jan 15, 2009 at 3:50 PM, Gutemberg A. Da Silva sag@gmail.com wrote: kristian, this post was for doubts and solution where google didn't get to resolve. 2009/1/15 Kristian Marinkovic kristian.marinko...@porsche.co.at google for it Gutemberg A. Da Silva sag@gmail.com 15.01.2009 14:38 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Tapestry With Connector can somebody help me with tapestry and oracle, sqlserver e etc connector? in mysql is so: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.5/version /dependency how can I add dependency? -- Gutemberg A. Da Silva -- Gutemberg A. Da Silva -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Gutemberg A. Da Silva
Re: Tapestry With Connector
Em Thu, 15 Jan 2009 11:39:04 -0300, Gutemberg A. Da Silva sag@gmail.com escreveu: nothing wrong for me. I was with doubts and tapestry-users community serves for resolution of doubts what others users DIDN'T get resolve for other way (google, ...). thanks for all. Maybe you should refine your engine search skills. :) Searching for oracle maven dependency in Google, for example, the first result has the answer to your question. The same applies to SQL Server and PostgreSQL. Another issue in this thread is that this is *not* a Tapestry-related question. In fact, it is a Maven-related one. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
PersistentFieldStrategy and conversations
I'd like to implement a custom PersistentFieldStrategy for conversations within the same page, but a PersistentFieldStrategy only knows the page name. Currently my conversation id is part of the activation context and I'd somehow need to pass the id on to my custom strategy. Is there a way to do this? If I could obtain the page instance, the request or a filter I could probably work it out. Also, PersistentFieldStrategy only has discardChanges(String pageName) (and Page has discardPersistentFieldChanges() ) which discards all changes, but I'd need it to discard changes for specific conversations only. Should I perhaps open an enhancement request for it? Howard, care to comment? Kalle
volatile and persistence
Maybe somebody can help me out here. I am trying to get my head around the implications of the persistence and the combination with using volatile or not. I have built a test page which contains a list of objects (for the sake of the example, each one only contains a string. A form is displayed with five items in it. You can change any of the items and commit. All very simple (the source follows). If I do this using a non volatile loop, the changes in the textfield components are not persisted. When I make the loop volatile, they are. I assume the persistence strategy has something to do with this, but I don't see the textfield state being saved (actually I also tried using the client persistence stratgey, but this just crashed the application). It seems that when volatile is true, the objects from the list are unserialized from the form data, which makes them different from the objects in the page (which is just plain persisted), causing problems. Can somebody shed some more light on this? If my assumption above is true, then the documentation for loop and grid need a lot more explanations when volatile should be either true or false. Thanks, Joachim Test.tml - html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body h1Submit test page/h1 pTest page for the commit of strings inside a loop which are stored in embedded objects./p t:form autofocus=false input class=defaultSubmit t:type=submit value=Save t:id=save/ br / t:loop source=list value=current volatile=true input t:type=TextField maxlength=50 size=50 value=current.content / br / /t:loop /t:form /body /html - Test.java - import org.apache.tapestry5.annotations.Persist; import org.apache.tapestry5.annotations.Property; import org.equanda.example.t5.data.StringContainer; import java.sql.Date; import java.util.ArrayList; import java.util.List; public class Test { @Property @Persist private ListStringContainer list; @Property private StringContainer current; void onActivate() { if ( null == list ) { System.out.println( initialise list ); list = new ArrayListStringContainer(); list.add( new StringContainer( Tapestry ) ); list.add( new StringContainer( GWT ) ); list.add( new StringContainer( Seam ) ); list.add( new StringContainer( Wicket ) ); list.add( new StringContainer( TIBCO GI ) ); list.add( new StringContainer( JSF ) ); } } void onSubmit() { System.out.println( onSubmit called, list=+list ); list.add( new StringContainer( Integer.toString( (int)System.currentTimeMillis() % 1000 ) ) ); } } - StringContainer.java - public class StringContainer implements Serializable { private String content; public StringContainer() {} public StringContainer( String value ) { content = value; } public String getContent() { System.out.println( Getting content + content ); return content; } public void setContent( String content ) { System.out.println( Context set to + content + (was +this.content+)); this.content = content; } @Override public String toString() { return content; } } - -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry With Connector
thanks for you help guy. 2009/1/15 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Thu, 15 Jan 2009 11:39:04 -0300, Gutemberg A. Da Silva sag@gmail.com escreveu: nothing wrong for me. I was with doubts and tapestry-users community serves for resolution of doubts what others users DIDN'T get resolve for other way (google, ...). thanks for all. Maybe you should refine your engine search skills. :) Searching for oracle maven dependency in Google, for example, the first result has the answer to your question. The same applies to SQL Server and PostgreSQL. Another issue in this thread is that this is *not* a Tapestry-related question. In fact, it is a Maven-related one. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Gutemberg A. Da Silva
Re: Tapestry With Connector
http://mavensearch.net is a good tool for these kinds of issues. It's written by a friend of mine. Olle 2009/1/15 Gutemberg A. Da Silva sag@gmail.com thanks for you help guy. 2009/1/15 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Thu, 15 Jan 2009 11:39:04 -0300, Gutemberg A. Da Silva sag@gmail.com escreveu: nothing wrong for me. I was with doubts and tapestry-users community serves for resolution of doubts what others users DIDN'T get resolve for other way (google, ...). thanks for all. Maybe you should refine your engine search skills. :) Searching for oracle maven dependency in Google, for example, the first result has the answer to your question. The same applies to SQL Server and PostgreSQL. Another issue in this thread is that this is *not* a Tapestry-related question. In fact, it is a Maven-related one. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Gutemberg A. Da Silva -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se
What's the real version???
Guys, Im really getting confusing... what's the real version? So far I found 4 options: - Maven - app.war (tapestry5nonbelievers) - tapestry5nonbelievers (it is different from the above) - Jumpstart What's the real one? -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
Re: What's the real version???
Em Thu, 15 Jan 2009 13:10:51 -0300, Sid Ferreira sid@gmail.com escreveu: Guys, Im really getting confusing... what's the real version? So far I found 4 options: - Maven - app.war (tapestry5nonbelievers) - tapestry5nonbelievers (it is different from the above) - Jumpstart What's the real one? The current stable one is 5.0.18, as stated in the Tapestry home (http://tapestry.apache.org/) and release notes page (http://tapestry.apache.org/tapestry5/release-notes.html). Remember that new versions are released and articles (and their source code) are often not updated. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: PersistentFieldStrategy and conversations
Due to the magic of tapestry IOC, just inject the Request object into your implementation of PersistentFieldStrategy and you have access - no need to change/extend the PersistentFieldStrategy interface! Richard. Kalle Korhonen wrote: I'd like to implement a custom PersistentFieldStrategy for conversations within the same page, but a PersistentFieldStrategy only knows the page name. Currently my conversation id is part of the activation context and I'd somehow need to pass the id on to my custom strategy. Is there a way to do this? If I could obtain the page instance, the request or a filter I could probably work it out. Also, PersistentFieldStrategy only has discardChanges(String pageName) (and Page has discardPersistentFieldChanges() ) which discards all changes, but I'd need it to discard changes for specific conversations only. Should I perhaps open an enhancement request for it? Howard, care to comment? Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry With Connector
Hi guys, here I send one link of driver for database: http://docs.codehaus.org/display/TRAILS/DatabaseConfigurations Thanks for you helps guys. -- Gutemberg A. Da Silva
Re: PersistentFieldStrategy and conversations
Yeap, working on it, just figured it should be safe to use the shadow. With the current interface, discarding changes (of conversations) might yield unexpected results though; I'll see what becomes out of it once I get a little further along with the implementation. Kalle On Thu, Jan 15, 2009 at 8:38 AM, Richard Kirby r...@capdm.com wrote: Due to the magic of tapestry IOC, just inject the Request object into your implementation of PersistentFieldStrategy and you have access - no need to change/extend the PersistentFieldStrategy interface! Richard. Kalle Korhonen wrote: I'd like to implement a custom PersistentFieldStrategy for conversations within the same page, but a PersistentFieldStrategy only knows the page name. Currently my conversation id is part of the activation context and I'd somehow need to pass the id on to my custom strategy. Is there a way to do this? If I could obtain the page instance, the request or a filter I could probably work it out. Also, PersistentFieldStrategy only has discardChanges(String pageName) (and Page has discardPersistentFieldChanges() ) which discards all changes, but I'd need it to discard changes for specific conversations only. Should I perhaps open an enhancement request for it? Howard, care to comment? Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: What's the real version???
So please, put a note with an updated app.war file in tapestry website... On Thu, Jan 15, 2009 at 3:15 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Thu, 15 Jan 2009 13:10:51 -0300, Sid Ferreira sid@gmail.com escreveu: Guys, Im really getting confusing... what's the real version? So far I found 4 options: - Maven - app.war (tapestry5nonbelievers) - tapestry5nonbelievers (it is different from the above) - Jumpstart What's the real one? The current stable one is 5.0.18, as stated in the Tapestry home ( http://tapestry.apache.org/) and release notes page ( http://tapestry.apache.org/tapestry5/release-notes.html). Remember that new versions are released and articles (and their source code) are often not updated. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
T5 and hibernate slowing with more records
Hello, I am using POI to take an excel file and put it into a Mysql database using hibernate. I put a counter on the records going into the database and it starts off fast but then slows to over 15 seconds a record and I cannot figure out why. My code is basically this: Public class DatabaseDump{ @Inject Private Session _session; Public void onAction(){ //they hit the go button Loop rows{ _session.beginTransaction(); Loop cells{ Fill the object from the cells _session.save(Object); } _session.getTransaction().commit(); } } Everything works fine as in the database gets filled for the rows it has completed but gradually slows to a crawl and at around 2700 records of 10500 records it's a record every 15 seconds. I run the project under eclipse using Tomcat. The memory starts at around 80mb and only goes up to around 110mb. What am I doing wrong? --James
Blog post - Customizing Eclipse for Tapestry 5 template editing
Hi guys, if any newbie lurks around here on the mailing list, I made a new blog post with screencast at http://bbwebcraft.blogspot.com/. This time it is about how to tweak your development environment to speed up editing Tapestry's template files. For others, if you have any suggestions, please leave a comment. Cheers, Borut
Forms
Guys, Im trying to make a small search engine, but It isn't working.follows the code: TML: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleTibox Test App/title /head body div id=wrap div id=top/div div id=content div class=header h1Allert/h1 h2Fast Support/h2 /div div class=middle style type=text/css .lista { width: 100%; } /style form t:type=form t:id=names class=lista t:errors/ table tr tdinput t:type=TextField t:id=dsQuery //td td width=15%input type=submit value=Atualizar//td /tr /table /form /div div class=clear id=clear/div /div div id=bottom/div /div div id=footer /div /body /html Java: public class Start { @Component(id = names) private Form _form; private Long cdCliente = new Long(7); @Property private String dsQuery; @Component(id = dsQuery) private TextField dsQueryField; void onValidateForm() { if (dsQuery == null || dsQuery.trim().equals()) { _form.recordError(dsQueryField, First Name is required.); } } Object onSuccess() { //new Exception(E... + dsQuery).printStackTrace(); return this; } } It had no onSuccess, but didn't worked either. Im using the same Start.java as response to the form. -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations
problems when using FormFragment in a loop
After two days of hunting, I have discovered a bug (or maybe better) limitation. If you try to use the FormFragment component inside a loop, then the updates caused by the form elements in the formfragment will only be applied to the last item in the loop. The form elements seem to be included at the end of the form instead of inside the loop element, which causes the problem. Maybe at a minimum the documentation could be modified to indicate this limitation. Kind regards, Joachim -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] improve documentation
Completely agree with the sentiments expressed. Too often I've had to use Google or similar to find what I'm looking for in the Tapestry documentation. Having it split across at least 4 different places and in some places confused with Tapestry4 is awkward. Szemere
Re: T5 and hibernate slowing with more records
Feels like a Hibernate question, not Tapestry. Does your table have the right index, do you need to have 10k transactions in a single web-request? Szemere
Re: problems when using FormFragment in a loop
Please open an issue for it; otherwise these will get lost. Kalle On Thu, Jan 15, 2009 at 2:19 PM, Joachim Van der Auwera joac...@progs.bewrote: After two days of hunting, I have discovered a bug (or maybe better) limitation. If you try to use the FormFragment component inside a loop, then the updates caused by the form elements in the formfragment will only be applied to the last item in the loop. The form elements seem to be included at the end of the form instead of inside the loop element, which causes the problem. Maybe at a minimum the documentation could be modified to indicate this limitation. Kind regards, Joachim -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5: Reading context before persistent fields are read
Hey Ted, I happened to run into the same exact problem you were having while trying to get my custom conversational PersistentFieldStrategy implemented. Did you manage the solve the problem (reading values from activation context before gathering persistent fields) in any satisfactory way? Kalle On Fri, Jan 18, 2008 at 4:59 AM, Ted Steen ted.st...@gmail.com wrote: Hmm, i must have been very tired when i tested this yesterday. It doesnt work. The ComponentActionRequestFilter is handled after the persistent fields are gathered. So my activation context variable that I need when gathering persistent fields is not set before I gather the fields. I have tried to add the filter with before:* A solution would be to inject the Request into the PersistentFieldStrategy and get/decode the context from the path (or post variables when posting) .. but that is not very clean in my opinion. It would be nice if the gathering of fields was done a little later or maybe we could extend the Request API with a Object[] getActivationContext() Or do you have any other ideas. I feel I should explain my use case here.. We are developing a checkout service where the current cart beeing processed is passed around via a activation context variable (the cart-hash). This means that the persistent variables in the components should be per cart-hash. This can be done transparently by implementing a custom PersistentFieldStrategy which uses the first value in the activation context (we decided that the cart-hash should always be the first value). Or the hash could be a part of the domain like hash.mydomain.com, then the session is made unique per host and everything will work like expected. this is a third solution 2008/1/18, Howard Lewis Ship hls...@gmail.com: The pipelines and chains of command make it easy to slip in specific logic. OH, an alternative to defining a service to contain the data is to just write it as a Request attribute. I've used that approach for handling a few awkward cases. On Jan 17, 2008 5:56 PM, Ted Steen ted.st...@gmail.com wrote: Yep, that did it. Thanks! 2008/1/18, Howard Lewis Ship hls...@gmail.com: If you mean the event context (as opposed to the page activation context), then ... The path of least resistance is: 1) Define a service with a simple read/write property to store the context. Make sure this is perthread scope. 2) Contribute a filter to the ComponentActionRequestHandler pipeline. The filter can capture the event context and store it in your service. 3) In your PersistentFieldStrategy, inject the context-storing service and read the context. You might simplify #1 to just store the piece of data you need from the context. The approach is similar if you need page activation context, but you'll need to contribute a similar filter into the PageRenderRequestHandler pipeline as well. On Jan 17, 2008 12:13 PM, Ted Steen ted.st...@gmail.com wrote: I need to hook in somewhere between where the context is available and the persistent fields are read. I need to read a context variable just before my PersistentFieldStrategy tries to read from the session, as I need a value from the context when reading from the session. What should I inject into my PersistentFieldStrategy in order to be able to read the context? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- /ted - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- /ted - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
profiling tapestry components
I was wondering if I could create some sort of profiler, that would print out the render time for each component.. that way I can use that information to try to pinpoint components that need to be optimized.. any ideas? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: profiling tapestry components
Em Thu, 15 Jan 2009 20:26:38 -0300, Fernando Padilla f...@alum.mit.edu escreveu: I was wondering if I could create some sort of profiler, that would print out the render time for each component.. that way I can use that information to try to pinpoint components that need to be optimized.. Quick and lazy :) answer: try to find the tapestry-core service that renders components and decorate it using AspectDecorator . . . I hope it helps . . . By the way, AspectDecorator is absolutely awesome. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: profiling tapestry components
Acutally, check the logging documentation; there's already a service that times how long the render takes and how many render operations were involved. Much of the performance improvements in 5.1 was reduce the number of operations per component. There isn't a good way to get output about time per component; that time would be very short hard to measure. Why are you interested in component render times? On Thu, Jan 15, 2009 at 4:35 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Thu, 15 Jan 2009 20:26:38 -0300, Fernando Padilla f...@alum.mit.edu escreveu: I was wondering if I could create some sort of profiler, that would print out the render time for each component.. that way I can use that information to try to pinpoint components that need to be optimized.. Quick and lazy :) answer: try to find the tapestry-core service that renders components and decorate it using AspectDecorator . . . I hope it helps . . . By the way, AspectDecorator is absolutely awesome. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: profiling tapestry components
Well, we have a large app that is not performing very well.. and now I have to figure out how to make it more performant.. And I was just wondering if dumping component level response times, could maybe give me some sort of clue as to what to focus on.. It's a slightly different view of the code and work being done, instead of at method response times.. because there is no one method for rendering a component or page, etc.. so, just a thought. I guess I can tweek ComponentPageElementImpl to add extra RenderingEvents to do this.. interesting.. Howard Lewis Ship wrote: Acutally, check the logging documentation; there's already a service that times how long the render takes and how many render operations were involved. Much of the performance improvements in 5.1 was reduce the number of operations per component. There isn't a good way to get output about time per component; that time would be very short hard to measure. Why are you interested in component render times? On Thu, Jan 15, 2009 at 4:35 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Thu, 15 Jan 2009 20:26:38 -0300, Fernando Padilla f...@alum.mit.edu escreveu: I was wondering if I could create some sort of profiler, that would print out the render time for each component.. that way I can use that information to try to pinpoint components that need to be optimized.. Quick and lazy :) answer: try to find the tapestry-core service that renders components and decorate it using AspectDecorator . . . I hope it helps . . . By the way, AspectDecorator is absolutely awesome. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: profiling tapestry components
Em Thu, 15 Jan 2009 20:57:19 -0300, Fernando Padilla f...@alum.mit.edu escreveu: Well, we have a large app that is not performing very well.. and now I have to figure out how to make it more performant.. In my humble opinion, you're starting to performance bottleneck from the wrong side of the stack. Most of the time, the culprit is the database (or any other data storage implementation). I would start by logging the running time of the data access methods. -- Thiago H. de Paula Figueiredo Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: T5 and hibernate slowing with more records
Hello, I suppose I could restrict the number of records allowed however I do not believe that I need to. I believe there is a problem somewhere, maybe in how I am doing the transactions or something. Before using t5/hibernate we were using t3/torque and if that system would have no problem with this I cannot see the newer technology having any problem. I guess I will ask the hibernate forums but I thought it would have something to do with the way I use the session/transactions. --James -Original Message- From: Szemere Szemere [mailto:szemereszem...@googlemail.com] Sent: January-15-09 6:30 PM To: Tapestry users Subject: Re: T5 and hibernate slowing with more records Feels like a Hibernate question, not Tapestry. Does your table have the right index, do you need to have 10k transactions in a single web-request? Szemere - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: T5 and hibernate slowing with more records
Hello, Sorry I forgot to mention that I do not believe indexing is an issue as it is only an 'over time' issue that it gets slow not a total number in the db that causes the slowness. I can have 0 records or 40k records in the db and the transactions are still blazing fast at the start. --James -Original Message- From: Szemere Szemere [mailto:szemereszem...@googlemail.com] Sent: January-15-09 6:30 PM To: Tapestry users Subject: Re: T5 and hibernate slowing with more records Feels like a Hibernate question, not Tapestry. Does your table have the right index, do you need to have 10k transactions in a single web-request? Szemere - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 and hibernate slowing with more records
Hi James, I do not see any reason why it is slow, but would suggest to do following: 1) try to put everything into a list of objects without saving to the database, slow? 2) use a service to accept the list from #1, beging a transaction, save, commit, slow? Angelo James Sherwood wrote: Hello, I am using POI to take an excel file and put it into a Mysql database using hibernate. I put a counter on the records going into the database and it starts off fast but then slows to over 15 seconds a record and I cannot figure out why. My code is basically this: Public class DatabaseDump{ @Inject Private Session _session; Public void onAction(){ //they hit the go button Loop rows{ _session.beginTransaction(); Loop cells{ Fill the object from the cells _session.save(Object); } _session.getTransaction().commit(); } } Everything works fine as in the database gets filled for the rows it has completed but gradually slows to a crawl and at around 2700 records of 10500 records it's a record every 15 seconds. I run the project under eclipse using Tomcat. The memory starts at around 80mb and only goes up to around 110mb. What am I doing wrong? --James -- View this message in context: http://www.nabble.com/T5-and-hibernate-slowing-with-more-records-tp21483684p21490838.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Re: T5 and hibernate slowing with more records
Hello, It took 13 seconds to create the List with 14000 objects. At 1 hour 45 minutes I was at 8600 records committing each one. For the service, I haven't went that far in T5 yet so I will have to look it up. If there was a way to save the whole list at once using the session that might be faster as well. --James -Original Message- From: Angelo Chen [mailto:angelochen...@yahoo.com.hk] Sent: January-15-09 9:33 PM To: users@tapestry.apache.org Subject: [Spam Rating:3.18] Re: T5 and hibernate slowing with more records Hi James, I do not see any reason why it is slow, but would suggest to do following: 1) try to put everything into a list of objects without saving to the database, slow? 2) use a service to accept the list from #1, beging a transaction, save, commit, slow? Angelo James Sherwood wrote: Hello, I am using POI to take an excel file and put it into a Mysql database using hibernate. I put a counter on the records going into the database and it starts off fast but then slows to over 15 seconds a record and I cannot figure out why. My code is basically this: Public class DatabaseDump{ @Inject Private Session _session; Public void onAction(){ //they hit the go button Loop rows{ _session.beginTransaction(); Loop cells{ Fill the object from the cells _session.save(Object); } _session.getTransaction().commit(); } } Everything works fine as in the database gets filled for the rows it has completed but gradually slows to a crawl and at around 2700 records of 10500 records it's a record every 15 seconds. I run the project under eclipse using Tomcat. The memory starts at around 80mb and only goes up to around 110mb. What am I doing wrong? --James -- View this message in context: http://www.nabble.com/T5-and-hibernate-slowing-with-more-records-tp21483684p 21490838.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 and hibernate slowing with more records
Can you avoid committing the transaction on every item? Committing takes more database effort than the initial update/insert, so batching these within one transaction is highly advisable if it's possible. Christian. On 15-Jan-09, at 21:02 , James Sherwood wrote: Hello, It took 13 seconds to create the List with 14000 objects. At 1 hour 45 minutes I was at 8600 records committing each one. For the service, I haven't went that far in T5 yet so I will have to look it up. If there was a way to save the whole list at once using the session that might be faster as well. --James -Original Message- From: Angelo Chen [mailto:angelochen...@yahoo.com.hk] Sent: January-15-09 9:33 PM To: users@tapestry.apache.org Subject: [Spam Rating:3.18] Re: T5 and hibernate slowing with more records Hi James, I do not see any reason why it is slow, but would suggest to do following: 1) try to put everything into a list of objects without saving to the database, slow? 2) use a service to accept the list from #1, beging a transaction, save, commit, slow? Angelo James Sherwood wrote: Hello, I am using POI to take an excel file and put it into a Mysql database using hibernate. I put a counter on the records going into the database and it starts off fast but then slows to over 15 seconds a record and I cannot figure out why. My code is basically this: Public class DatabaseDump{ @Inject Private Session _session; Public void onAction(){ //they hit the go button Loop rows{ _session.beginTransaction(); Loop cells{ Fill the object from the cells _session.save(Object); } _session.getTransaction().commit(); } } Everything works fine as in the database gets filled for the rows it has completed but gradually slows to a crawl and at around 2700 records of 10500 records it's a record every 15 seconds. I run the project under eclipse using Tomcat. The memory starts at around 80mb and only goes up to around 110mb. What am I doing wrong? --James -- View this message in context: http://www.nabble.com/T5-and-hibernate-slowing-with-more-records-tp21483684p 21490838.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org Christian Edward Gruber christianedwardgru...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Re: T5 and hibernate slowing with more records
a quick way is: instead of creating a service, make something like this @CommitAfter private void saveThem(ListMyobjt lst) { // put code here to save objects, don't beging a transaction as it has been started by Tapestry-Hibernate } how long? James Sherwood wrote: Hello, It took 13 seconds to create the List with 14000 objects. At 1 hour 45 minutes I was at 8600 records committing each one. For the service, I haven't went that far in T5 yet so I will have to look it up. If there was a way to save the whole list at once using the session that might be faster as well. --James -Original Message- From: Angelo Chen [mailto:angelochen...@yahoo.com.hk] Sent: January-15-09 9:33 PM To: users@tapestry.apache.org Subject: [Spam Rating:3.18] Re: T5 and hibernate slowing with more records Hi James, I do not see any reason why it is slow, but would suggest to do following: 1) try to put everything into a list of objects without saving to the database, slow? 2) use a service to accept the list from #1, beging a transaction, save, commit, slow? Angelo James Sherwood wrote: Hello, I am using POI to take an excel file and put it into a Mysql database using hibernate. I put a counter on the records going into the database and it starts off fast but then slows to over 15 seconds a record and I cannot figure out why. My code is basically this: Public class DatabaseDump{ @Inject Private Session _session; Public void onAction(){ //they hit the go button Loop rows{ _session.beginTransaction(); Loop cells{ Fill the object from the cells _session.save(Object); } _session.getTransaction().commit(); } } Everything works fine as in the database gets filled for the rows it has completed but gradually slows to a crawl and at around 2700 records of 10500 records it's a record every 15 seconds. I run the project under eclipse using Tomcat. The memory starts at around 80mb and only goes up to around 110mb. What am I doing wrong? --James -- View this message in context: http://www.nabble.com/T5-and-hibernate-slowing-with-more-records-tp21483684p 21490838.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/T5-and-hibernate-slowing-with-more-records-tp21483684p21491243.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: profiling tapestry components
I know that. :) The database was just upgraded and io/cpu is really really low. So that won't be the case. The root cause might be the number of db requests required to render a page, but the database it self is not the bottle neck. :) :) Thiago H. de Paula Figueiredo wrote: Em Thu, 15 Jan 2009 20:57:19 -0300, Fernando Padilla f...@alum.mit.edu escreveu: Well, we have a large app that is not performing very well.. and now I have to figure out how to make it more performant.. In my humble opinion, you're starting to performance bottleneck from the wrong side of the stack. Most of the time, the culprit is the database (or any other data storage implementation). I would start by logging the running time of the data access methods. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: profiling tapestry components
Em Thu, 15 Jan 2009 23:19:56 -0300, Fernando Padilla f...@alum.mit.edu escreveu: The database was just upgraded and io/cpu is really really low. So that won't be the case. I would still check this out . . . Don't forget about one transaction waiting for others to release locks in table rows . . . The root cause might be the number of db requests required to render a page, but the database it self is not the bottle neck. :) :) A real case I found as a consultant was the lack of attention to Hibernate mapping options, specially regarding lazy loading of collections. Instead of using one or two selects to load an entity object and one of its lists, it was using one for each element in the list. This absolutely kills performance. By the way, nice performance improvement hunting! :) Don't forget to share your experience with us. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org