[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
You must retrieve the entity from the conversation-scoped PC, and then whenever a transaction commits, changes to the entity will be flushed to the database. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956661#3956661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956661 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
i would assume that when a method annotated with @Remove @Destroy is executed (SFSB), the persistent context is flushed and changes commited to the DB when this method is invoked ? i dont see the modifications to the entity beans being commited to the DB after the execution of the above annotated method. is anything missing ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956547#3956547 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956547 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
"balamg" wrote : thanks. are the cached entity beans (in the session /conversation context) "attached" to the underlying persistence session between requests. Yes if (a) the entity bean is conversation scoped (b) you use a seam-managed PC or a conversation-scoped SFSB with an extended PC View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956471#3956471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956471 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
"balamg" wrote : as per the documentation, entity beans may never be bound to stateless context. | why is this so ? if i want to update an entity bean on a per-request basis then i could create a SLSB and inject the entity bean and update it from the action method of the SLSB. ? You _can_ bind an entity bean to the request context. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956470#3956470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956470 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
i have tried to use option (b) above. so in the code, i simply modified the entity bean hoping that the changes would get commited without explicitly invoking the entity manager, but this did not happen. i also annotated the method as @Destroy @Remove -- how can i cause the SFSB to be removed (from application code) and also tried with @End. none of this commited changes to the DB. am i missing anything ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956481#3956481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956481 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
thanks. are the cached entity beans (in the session /conversation context) "attached" to the underlying persistence session between requests. if not, does the framework "attach" them for each call ? when the bean is changed (via a form), does the framwork merge the changes automatically to the d/b. if so what happens to the "state" of the entity bean in some other session. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955774#3955774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955774 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: entity beans binding to stateless context
Entity bean would have nothing to do in a stateless context. Remember stateless = no state. On second request you would have an empty entity bean. Keep you SLSB and put your entity bean in a conversation or session. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955762#3955762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955762 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user