Andrey Choe

Greenhorn
+ Follow
since Sep 07, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrey Choe

Hello,
generally, business layer consists of classes which implement domain rules. Of course you should create package hierarchy for these classes. There are lot of examples of business logic classes in books devoted to EJB, Spring, Wicket etc. Try to start with Spring reference (chapters about Core)- spring doc
Hello,
if you are interesting in oo patterns, not only java, you should start from Martin Fowler site.
For more "javish" patterns, try http://www.javacamp.org/designPattern/
There is catalog of patterns oftenly asked during interview Sun blueprints
You'll get clear picture after some practice
Hello,
in the simple case it's like that.
Your existing application:

New wrapper for your class


You can create these classes in your app or package your logic in jar and than use jar in new webservice app. If existing app is SE, use jar packaging. If you app already contains web part, EJB and so on, just wrap logic classes.
11 years ago
Hello,
it's hard to give exact advice without more code and details about domain objects and business logic. I can give an advice to extract class hierarchy from "app" an maybe hide it behind a factory.
Hi.

If you create many object's in your method (first code sample), than you take more heap memory. So after exiting method JVM can decide to run gc (all PersonDAO instances are useless). Running gc take some resources. That's why second code sample is better (for memory usage point of view).
11 years ago

i have another question i am using netbeans 6.9 for java and i know that if i want to include the mail.jar file in my project i right-click on my project->properties->.... and it works fine
but what if i wanted to run the project from the jar file after building it?


Hello,
the simplest way is just add mail.jar to direcory where your application jar stored. More generally, you can read about classpath classpath faq
11 years ago
Hello vikky,
are you sure that you are using jdk 1.5 or above?
Your code works fine on jdk 1.6.16 (sun), tomcat 6.0.20


11 years ago
JSP

Kamila Rutkowski wrote:I have a heavy JSF page and would like to display a preload message till the whole of page will load. Could any one please help me.


Hello,
which jsf implementation do you use? Many implementations have such components...
11 years ago
JSF
Hello,
if you have small experience in java, try this one - Core Java(TM) Horstmann, Cornel
Hello,
there is a holywar between developers, who like xml and developers, who like annotations As for me I prefer to store queries in annotations :

Moreover, if you have query that can be dynamically changed, you can just store it like field in your entity class.

Dmitry Zhuravlev wrote:Guys, thank you for the replies.

At the moment I have the following problem.

It looks like the memory grows significally when I just redraw plot in my application. After several redraws I receive


It looks like memory leak. But how can I identify it using the profiler? I look at the objects with the growing memory and all that objects are not from my packages, but from the packages Eclipse TPTP calls 'default'. These objects are arrays of primitives. And their size grows with each redrawal of my plot, though it shouldn't. How can I identify where is the problem?


Hello,
could you show part of code with passing values to plot api?
11 years ago