Search:

Type: Posts; User: imilina; Keyword(s):

Page 1 of 8 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    1,013

    Comments on code organization

    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...
  2. Thread: Concurrency

    by imilina
    Replies
    2
    Views
    1,259

    Try not to call run() and progress() functions on...

    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
  3. That is correct. Basically, in this case they are...

    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...
  4. Yeah, I could, but that would be the same as not...

    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....
  5. They ARE applied to service level. I'm not...

    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...
  6. This is not a solution for this problem. Even the...

    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...
  7. Well, not quite... web layer will sometimes...

    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...
  8. OSIV filter dangerous, unless passing DTOs to web layer?

    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...
  9. Replies
    6
    Views
    4,284

    I'm not sure, but I would assume that JAVA_OPTS...

    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...
  10. Both with xml config and annotated config it is...

    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...
  11. Replies
    6
    Views
    4,284

    Hi, The configuration options you're...

    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...
  12. Don't know why nobody replied to your post. I...

    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,...
  13. Well, there is a possibility that you're using...

    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...
  14. Wait, let's get something clear here. You're...

    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...
  15. As I said before, formBackingObject() should be...

    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...
  16. But that is the idea of simple form controller -...

    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...
  17. You need to do couple of things differently. Do...

    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...
  18. Hi, I simply cannot believe how you guys managed...

    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...
  19. Not quite. Try this: ...

    Not quite. Try this:

    ${page.properties["meta.foo"]}

    Regards.
  20. I understand that you use freemarker for both...

    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...
  21. Replies
    11
    Views
    2,357

    You're working late friend, or possibly very...

    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...
  22. Replies
    11
    Views
    2,357

    Auto-increment column in not the same thing as...

    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...
  23. Replies
    4
    Views
    1,103

    It's not just IE feature, any browser will do...

    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...
  24. Replies
    11
    Views
    2,357

    I'm sorry, but this is probably the worst...

    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...
  25. Replies
    4
    Views
    2,514

    You misspelled it. It is not "JspTaglib" but...

    You misspelled it. It is not "JspTaglib" but "JspTaglibs" :)
Results 1 to 25 of 192
Page 1 of 8 1 2 3 4