Hi,
Recently I've been assigned to half-finished medium/small sized project which had somewhat unusual (for me) code organization.
The complete project is organized into several separate...
Type: Posts; User: imilina; Keyword(s):
Hi,
Recently I've been assigned to half-finished medium/small sized project which had somewhat unusual (for me) code organization.
The complete project is organized into several separate...
Try not to call run() and progress() functions on your remote object at roughly the same time. If you, for example, call
ro.run();
and imeediately after that call
That is correct. Basically, in this case they are very simple (thin) entity objects that serve as DTOs that are passed to web layer. Web layer will usually just display them on the view, but nothing...
Yeah, I could, but that would be the same as not using OSIV - all lazy objects would have to be initialized before displaying the view. :(
I had only one rare situation where this problem occured....
They ARE applied to service level.
I'm not running in autocommit mode, and this problem is not related to it.
The problem is related to hibernate's way of persisting data. Inside read-write...
This is not a solution for this problem. Even the entities that are not read only - the ones that web layer can modify and call service method to persist changes - are not safe from this problem. Web...
Well, not quite... web layer will sometimes intentionally modify loaded entities, for example if it needs to do some processing or reorganize them for better display on the view.
And also, I...
Hello,
I'm currently facing a design problem which I haven't thought of before. My application is using hibernate and OpenSessionInViewFilter. The entities loaded by hibernate are used directly in...
I'm not sure, but I would assume that JAVA_OPTS variable is used by all JVM (something like global JVM settings?), and CATALINA_OPTS just by tomcat's.
On the side note, be careful about setting...
Both with xml config and annotated config it is easy to autogenerate DB schema. But if you take a look at the Hibernate site regarding this matter you'll see that even they are not suggesting that...
Hi,
The configuration options you're mentioning are related to tomcat windows service. The "Initial memory pool" corresponds to the JVM -Xms option (initial java heap size), the "maximum memory...
Don't know why nobody replied to your post. I would also be interested in what people are using for their mapping... Well, here are my 2 cents.
I used this approach for my past projects. However,...
Well, there is a possibility that you're using the wrong tool for your job. Simple form controller is meant for this scenario:
1. Display a page with a form (possibly a search form)
2. User fills...
Wait, let's get something clear here. You're saying that formBackingObject() is called first time you call your controller via link; next it is NOT called the first time you press submit button, and...
As I said before, formBackingObject() should be called once when you first call your controller using GET (after clicking search hyperlink), and second time when you submit your form using POST...
But that is the idea of simple form controller - formBackingObject() is called once before displaying the form view and once before excuting onSubmit() and displaying success view, as both those...
You need to do couple of things differently. Do not create new PageSearch as you've done here:
PageSearch is your command object, and in this method you already receive instace of your command...
Hi,
I simply cannot believe how you guys managed to make things so complicated.
If I understand correctly, you want to use SimpleFormController to show screen where user can enter some search...
Not quite. Try this:
${page.properties["meta.foo"]}
Regards.
I understand that you use freemarker for both your views and for sitemesh template, right?
First, I've used meta definitions only for applying special decorators for some pages - never tried to...
You're working late friend, or possibly very early? ;)
But still, you can't use "count" to generate unique id numbers, no matter how many tables you join in your query. Simple example:
1. There...
Auto-increment column in not the same thing as database sequence. Again, I'm not familiar with mysql, so I'm not sure if it supports it. But if it does, you could do the following:
You can use...
It's not just IE feature, any browser will do that. And it is quite useful feature - if you are filling some large form, why would I be forced to grab the mouse after filling and look for submit...
I'm sorry, but this is probably the worst possible advice you could give. Not only that two transactions could retrieve the same count number, but what about deleting the rows - you are sure to get...
You misspelled it. It is not "JspTaglib" but "JspTaglibs" :)