[jboss-user] [EJB 3.0] - Re: concurrently modifying entity instance

2008-04-17 Thread gsegura
You made me believe an actual advise was posted, anyway: As reference says, the lock is honored at persistence-context level. Since two sessions are involved, there exists two different persistence-contexts, so EntityManager.lock() issued in one session has not enough 'reachability'. Besides,

[jboss-user] [EJB 3.0] - Re: concurrently modifying entity instance

2008-04-17 Thread gsegura
No, it doesn't. I'm aware of potential disadvantages of pessimistic locking, however that is needed here. So the question is how to implement pessimistic locking. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4144940#4144940 Reply to the post :

[jboss-user] [EJB 3.0] - concurrently modifying entity instance

2008-04-16 Thread gsegura
Dear all, I'm requesting in the kindest way any advise on this issue: concurrent modification of one entity instance. The following is a simplified scenario, but describes the issue well. There is this entity which holds a number, one user is in charge of decreasing that magnitude and another

[jboss-user] [JBoss Seam] - Re: demultiplexing notifications from MDB

2008-02-11 Thread gsegura
How is binded one SFSB with one user web session? Is there any way to traverse the component tree ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128511#4128511 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128511

[jboss-user] [JBoss Seam] - Re: is remoting available in seam on tomcat?

2008-02-11 Thread gsegura
I'm sorry, the @WebRemote annotation was missing. really appreciate your advice View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128452#4128452 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128452

[jboss-user] [JBoss Seam] - Re: demultiplexing notifications from MDB

2008-02-11 Thread gsegura
I'm aware the docs says: anonymous wrote : Nor do they (Message-driven beans) have access to the session or conversation state of their caller and found this old kind of feature request: http://www.jboss.com/index.html?module=bbop=viewtopict=80512 So very likely my intented approach is also a

[jboss-user] [JBoss Seam] - Re: Longrunning process

2008-02-11 Thread gsegura
hispeedsurfer: do you mind explaining more details please? was a refactorization the solution? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128549#4128549 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128549

[jboss-user] [JBoss Seam] - Re: serializing access to resource

2008-02-10 Thread gsegura
Ok, perhaps the correct question is: Does EJB3 persistence honors this aspects of Entity Bean Life Cycle (these behaviour is described in http://www.ubookcase.com/book/Sams/JBoss.4.0.The.Official.Guide/0672326485/ch05lev1sec4.html): anonymous wrote : With the default configuration of JBoss

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-10 Thread gsegura
Maybe this could this be associated with the lifecycle of the MDB being dependent on seam: http://www.jboss.org/?module=bbop=viewtopict=100946 I'll appreciate if you post back if this is the case, because I'm also about to implement a configuration similiar to yours. View the original post

[jboss-user] [JBoss Seam] - demultiplexing notifications from MDB

2008-02-10 Thread gsegura
Hello, I have this seam application that uses a message driven bean for receiving messages from external system. Upon arrival of message I would like to notify the specific client (provided she/he has an ongoing web session) by means of a4j:push listener. The question is: how do I access a

[jboss-user] [JBoss Seam] - Re: serializing access to resource

2008-02-08 Thread gsegura
The problem is I don't use hibernate directly but through JPA, besides the hibernate's documentation says: anonymous wrote : Hibernate will always use the locking mechanism of the database, never lock objects in memory! But can't find description of behaviour when some thread tries to access an

[jboss-user] [JBoss Seam] - serializing access to resource

2008-02-07 Thread gsegura
Hello, I need to access an entity bean instance in a serial fashion, so I kindly request for any pattern to implement this. The use case is similar to managing an account balance, the account must be blocked during modification. I need to block other requests until the resource is available

[jboss-user] [JBoss Seam] - is remoting available in seam on tomcat?

2008-01-27 Thread gsegura
Hello I'm getting a HTTP 404 error on http://localhost/myapp/seam/resource/remoting/resource/remote.js | | also in | | http://localhost/myapp/seam/resource/remoting/interface.js?mycomponent | Since everything else seems in place (I have the

[jboss-user] [JBoss Seam] - Re: Several actions performed by one bean - is it possible a

2008-01-27 Thread gsegura
Hi, there isn't such restriction to have just one method with @Begin, probably there is something else wrong with your code. regards, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4123883#4123883 Reply to the post :

[jboss-user] [JBoss Seam] - weird navigation error

2008-01-24 Thread gsegura
Hello, I've deployed an application in two machines running windows + tomcat 5.5 and/or tomcat 6.0, everything goes ok. but that same application has this weird navigation problem when deployed in linux + tomcat 5.5 and/or tomcat 6.0: in login page (which is default page) after entering

[jboss-user] [JBoss Seam] - Re: One Seam component calling another

2007-12-31 Thread gsegura
Hi, it could be just the different variable name: private EntityManager em; and private EntityManager entityManager; regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116210#4116210 Reply to the post :

[jboss-user] [JBoss Seam] - Re: how to dis-manage entities?

2007-12-18 Thread gsegura
Probably I'm missing some fundamental knowledge about this issue, I do not think this scenario is that uncommon: how to retrieve an entity by query (or otherwise) in 'read-only mode' that is, avoid updating it at flush time? Given that it is been managed by EntityManager, it will be

[jboss-user] [JBoss Seam] - safe way to test if entity is persisted

2007-12-18 Thread gsegura
Hello, in this topic http://www.jboss.com/index.html?module=bbop=viewtopict=98478 the question of what is the proper (specification compliant) way to check if an entity has been persisted was raised. And here http://opensource.atlassian.com/projects/hibernate/browse/HHH-2439 is stated that

[jboss-user] [JBoss Seam] - Re: missing conversation entry error

2007-12-17 Thread gsegura
I'm sorry, pretending to make the code clearer I removed a rich:modalPanel used for confirmation, and it turns out there was actually the error. as I posted before, the link was rendered by: s:div rendered=#{editorEmployee.employee.id!=null} | h:commandLink id=btnEliminar

[jboss-user] [JBoss Seam] - Re: how to invoke action, then display resource

2007-12-17 Thread gsegura
Just what I needed, thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113634#4113634 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113634 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: how to dis-manage entities?

2007-12-13 Thread gsegura
perhaps the topic name was not the best, but I think its a fair question. So far, only strategy to avoid the entity which holds the collection to get updated is to resort to deal with id alone, a not very object-oriented way to go, so instead of retrieving the ticket.course object fetch just

[jboss-user] [JBoss Seam] - Re: pattern to form urls for resources requested

2007-12-12 Thread gsegura
thanks for the follow up Pete! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112376#4112376 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112376 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: question about components and persistence

2007-12-12 Thread gsegura
Thanks for you answer, although I don't see a hit to database at the beginning of every conversation much extra load I would like to know more about why keeping just the Id is better. At first it would seem to the neophyte like me a more natural way to keep the object itself and perhaps merge

[jboss-user] [JBoss Seam] - Re: Adding custom timeout action

2007-12-12 Thread gsegura
Assuming session contexts variables are removed when session expires perhaps this could work: | @Observer(org.jboss.seam.preDestroy.sessionScopedVariable) | public void cleanup() {} | or org.jboss.seam.preDestroyContext. what do you think? View the original post :

[jboss-user] [JBoss Seam] - Re: persist() / remove() at end of long running conversation

2007-12-12 Thread gsegura
Is there a final consensus about this issue? I mean how is done know and if this should change in future version (which one) ? to be in the safe side: what would be the best way to test for 'persistency' of an entity? also I kept the idea this is not an issue that is RDBM related, right? I

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - how to exclude entities in flush

2007-12-12 Thread gsegura
Hello, I got into this kind of chicken-egg problem related to entity versioning: There is an entity Course which has a collection of CourseNote. When adding a CourseNote to the collection I have to obtain a managed instance of Course, whose version field is been incremented implicitly when the

[jboss-user] [JBoss Seam] - how to dis-manage entities?

2007-12-12 Thread gsegura
Hello, I got into this kind of chicken-egg problem related to entity versioning: There is an entity Course which has a collection of CourseNote. When adding a CourseNote to the collection I have to obtain a managed instance of Course, whose version field is been incremented implicitly when the

[jboss-user] [JBoss Seam] - how to invoke action, then display resource

2007-12-09 Thread gsegura
Hi, I want to show a page with an excel file after clicking some button. But don't know how to redirect to show the file, I tried using pages.xml as any other page but didn't worked: s:link view=/reports/status_report.xls value=Export target=_blank / | !-- This don't work, what would be

[jboss-user] [JBoss Seam] - missing conversation entry error

2007-12-09 Thread gsegura
Hello I'm having problems with a nested conversation, which after termination cannot restore the parent conversation only in 1 out of 3 similar (it seems so) cases. Its a case of edition of item A which has a collection of items B, when edition of item A starts I begin a conversation, inside

[jboss-user] [JBoss Seam] - help with this entity been updated implicitly

2007-12-06 Thread gsegura
Hello everybody, I have this use case: an item is selected from a list, the edit page for that item is shown, if the save action is invoked some validation is done inside that same method, only if everything is ok I call persist, otherwise the same edit page is redisplayed. Everything goes

[jboss-user] [JBoss Seam] - Re: @End commits entity changes!

2007-12-06 Thread gsegura
I think this is related to the flush mode of the conversation, look for @Begin(flushMode=FlushModeType.MANUAL), I think that normally when conversation ends everything is flushed autommatically. I just posted a somewhat related question but there the conversation is not finished and yet

[jboss-user] [JBoss Seam] - Re: help with this entity been updated implicitly

2007-12-06 Thread gsegura
it wasn't enough to not end the conversation, I must set manual flush mode to avoid the updating when method ends and call entityManager.flush() when I want data to be saved. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111057#4111057 Reply to the post :

[jboss-user] [JBoss Seam] - Re: help with this entity been updated implicitly

2007-12-06 Thread gsegura
ashamed to admit, another case of RTFM View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111058#4111058 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111058 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-06 Thread gsegura
I experienced this too, I started from jpa example. At first the message displayed correct (with no Id). Although it doesn't seems related (and I didn't have time find out exactly the reason) I think it was about messing around with the default language and not including the proper

[jboss-user] [JBoss Seam] - question about components and persistence

2007-12-03 Thread gsegura
Hello, I'm having problems to get same during method invocation, I mean: there is the class User which has a collection of items. - One instance of user is maintained during session, - then there is this action method which adds an item to the user's collection - there is also another method

[jboss-user] [JBoss Seam] - Re: question about components and persistence

2007-12-03 Thread gsegura
I could, of course, load the user and collection from database every time, but I don't think this is the best way View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109965#4109965 Reply to the post :

[jboss-user] [JBoss Seam] - Re: question about components and persistence

2007-12-03 Thread gsegura
I think I've found the precise answer in last reply of http://www.jboss.com/index.html?module=bbop=viewtopict=103356 the @Out scope doesn't rely on the scope of @In, it must declared individually: @Out(scope=ScopeType.SESSION) that's why I wasn't reaching same instance between calls great

[jboss-user] [JBoss Seam] - pattern to form urls for resources requested

2007-11-28 Thread gsegura
Hello, I've read using absolute paths for reaching views is the recommended way, however given that webapp context path is variable some folks have resorted to this technique to resolve contextpath: http://www.jboss.com/index.html?module=bbop=viewtopict=120560 But what about URLs to resources

[jboss-user] [JBoss Seam] - question about programmatically accessing seam component

2007-11-22 Thread gsegura
Hello, I'm in the need of programmatically accessing (I mean not using @In annotation) a component which is created with @Factory . But neither this: | Course course = (Course)Contexts.lookupInStatefulContexts(course) ; | nor this, is working: Course

[jboss-user] [JBoss Seam] - Re: question about programmatically accessing seam component

2007-11-22 Thread gsegura
Indeed, it works thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107213#4107213 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107213 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - html element id appearing on validation message

2007-11-22 Thread gsegura
Perhaps this is simple but I can not find how to stop the html element id from appearing in the validation message each time the validation ocurrs, that is, I have a template like this (taken from some seam example): | div class=prop | s:label styleClass=name

[jboss-user] [JBoss Seam] - Re: how to declare Entity property not mapped to DB

2007-11-08 Thread gsegura
I got it: @Transient! :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102872#4102872 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102872 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - how to declare Entity property not mapped to DB

2007-11-08 Thread gsegura
Hello, I would like to declare a new property in some entity, which should not be mapped to the database (this property holds temporal data), I search for something like @Volatile but no luck. I'll deeply appreciate any help, regards View the original post :

[jboss-user] [JBoss Seam] - dinamically creating form elements

2007-10-29 Thread gsegura
Hello, Could someone give me advise on this, please: Is it possible to dinamically append new controls (textarea, checkbox, radiobutton) to a form during user interaction? I mean, those newly created elements don't have yet a backing bean in server side, is there a way to create a dynamic bean

[jboss-user] [JBoss Seam] - Re: hidden exception issue?

2007-02-16 Thread gsegura
baz: I did that when I first encounter the problem and found start method was called just once. I also asigned some values to the properties of newUser inside tehe start method, like: newUser.setName(testing) ; and that didn't throw the referred exception. The exception was been thrown by

[jboss-user] [JBoss Seam] - Re: Seam Gen Problem

2007-02-16 Thread gsegura
To find out where is looking for the jar driver try using filemon by sysinternals (I hope I'm not offending any rule by talking about third party product, it's free though) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4017482#4017482 Reply to the post :

[jboss-user] [JBoss Seam] - Re: hidden exception issue?

2007-02-15 Thread gsegura
Nop, I have client side state saving specified. I worked around the problem by not using the factory method and exposing newUser as a property of the bean and it worked. By doing so I'm not explicitly creating a conversation and I know if there is an error somewhere in the code it will bite

[jboss-user] [JBoss Seam] - hidden exception issue?

2007-02-14 Thread gsegura
Hello, I'm having this problem with a scenario similar to seamspace registration. This exception is happening: java.lang.IllegalStateException: begin method invoked from a long running conversation, try using @Begin(join=true) it throws every time I request register.xhtml, it doesn't render

[jboss-user] [JBoss Seam] - Re: how to redirecto back to intented page after login

2007-02-13 Thread gsegura
I couln't make these feature work until I change its scope from ScopeType.CONVERSATION to ScopeType.SESSION I noticed that it wasn't the same instance of Redirect component which has been called in captureCurrentView and returnToCapturedView, so I realized it was because of the scope. I just

[jboss-user] [JBoss Seam] - Re: how to redirecto back to intented page after login

2007-02-13 Thread gsegura
Indeed, I had a end-conversation/ tag. Thank you very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4016113#4016113 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016113 ___

[jboss-user] [JBoss Seam] - how to redirecto back to intented page after login

2007-02-12 Thread gsegura
When the user tries to access a protected page, I want to redirect to the login page if he hasn't logged in yet. And then, after successful login, redirect back to that given page. Is there a setting to achieve this? Otherwise, is the best solution to implement a javax.servlet.Filter ?

[jboss-user] [JBoss Seam] - Re: how to redirecto back to intented page after login

2007-02-12 Thread gsegura
Thanks a lot for your reference. It's quite impressive the evolution speed of the framework. By the way, the manual of 1.1.6GA doesn't contain such section (12.2.6) neither the seamspace example includes those nice tags. Regards, View the original post :

[jboss-user] [JBoss Seam] - Re: how to trace failed entityManager injection?

2007-02-08 Thread gsegura
I know it seems trivial but I can not see where the problem is, please someone View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012892#4012892 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012892

[jboss-user] [JBoss Seam] - Re: how to trace failed entityManager injection?

2007-02-08 Thread gsegura
I'm very ashamed, it's all about the create property @In(create=true) EntityManager entityManager ; Wish I could delete the track of my late night foolness :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4013123#4013123 Reply to the post :

[jboss-user] [JBoss Seam] - how to trace failed entityManager injection?

2007-02-07 Thread gsegura
I'm using seam 1.1.5GA, and create a project with seam-gen. The authenticator component is generated automatically. just filled the sql script (-dev.sql) to populate the database and when trying to test the login page this exception is thrown: org.jboss.seam.RequiredException: In attribute

[jboss-user] [JBoss Seam] - Re: how to trace failed entityManager injection?

2007-02-07 Thread gsegura
I reproduce the whole content here, keep in mind that I had not tampered that file at all since seam-gen created it. core:init debug=true jndi-pattern=hermes2/#{ejbName}/local/ | |core:manager concurrent-request-timeout=500 | conversation-timeout=12 |