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,
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 :
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
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
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
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
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
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
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
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
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
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
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
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 :
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
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 :
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
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
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
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
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
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
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
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 :
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
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
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
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
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
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
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
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 :
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
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
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
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 :
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
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
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
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
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
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
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 :
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
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
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 :
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
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
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
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
___
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 ?
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 :
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
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 :
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
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
|
56 matches
Mail list logo