NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Re: Feedback: Creating JavaServer Faces CRUD Application from a Database

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Imen Jbebli
Posted via mailing list.





PostPosted: Tue May 05, 2009 6:04 pm    Post subject: Re: Feedback: Creating JavaServer Faces CRUD Application from a Database Reply with quote

Hi,

I'm a software engineer, and in our enterprise we opt for using this architecture in order to develop an important application.
It’s the first time I work with netbeans.

I have done the tutorial posted in "http://www.netbeans.org/kb/docs/web/jsf-jpa-crud-wizard.html"
and I have sent a message to the person how published the tutorial (you can see her response above) and she adived me to sent the problem to you.

I hope you can help me, I'll be thankfull.

I'm an expert with eclipse. I have done with it many web projects (using the frameworks STRUTS, HIBERNATE, SPRING and APACHE as web container).

Now we choose Netbeans, because as shown in this sample, NETBEANS generates all in some clicks and in a short time.

So, I applied this tutorial with a database containing a lot of data (in some tables 2 millions of registrations), and the response time is too long and in the end a have a message (java heap space).

In fact, I encountered this problem with a project done with eclipse (web application with frameworks STRUTS, HIBERNATE and STRUTS) and I resolved it by adding “lazy="true"” for each tag “set” in the *.hbm.xml files, also I added the DLL “tcnative-1.dll” in order to perform APACHE TOMCAT, and so I no longer have the problems.

So, in this case, I tried to do the same think. So, I have deleted under the package “jpa.entities”, all the annotation “// @OneToMany(mappedBy = "idAbonnement")” and of corse the related attribute and the methods getter and setter, then I generated the JSF Pagesfiles from Entities Classes, but I always have the same problem ???????????????

I focused in your FAQ, I found you speaking about modifying /
*** netbeans_default_options="-J-Xms512m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=128m -J-Xverify:none
*** <java-config suffix="...">
<jvm-options>-Xmx512m</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-XX:MaxPermSize=128m</jvm-options>
...
</java-config>
But no result.

My database is created under the SGBD PostgreSQL.
RAM: 1G
Procesess: 3.20 GHZ and P IV
Space in disque / 25 GO

I hope that you can help and advise me.

Thanks in advance

*******************************************************************************************************

----- Mail Original -----
De: "Kenneth Ganfield" <address-removed>
À: "i jbebli" <address-removed>
Cc: "nbdocs feedback" <address-removed>
Envoyé: Mardi 5 Mai 2009 13h51:34 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: Feedback: Creating JavaServer Faces CRUD Application from a Database

Hi,
I think that for your question regarding configuration and optimization
it would be better to repost your question to the j2ee list.

address-removed

I would definitely recommend submitting your question there. There are
people on that mailing list who would be better qualified to answer your
question, and probably have even encountered and resolved it.


ken

***********************************************************************************************
address-removed wrote:
Quote:
Hello,

Thanks for your tutorial.

I'm a software engineer, and in our enterprise we opt for using this architecture in order
to develop an important application.
It’s the first time I work with netbeans.
I'm an expert with eclipse. I have done with it many web projects (using the frameworks
STRUTS, HIBERNATE, SPRING and APACHE as web container).

Now we choose Netbeans, because as shown in this sample, NETBEANS generates all in some
clicks and in a short time.

So, I applied this tutorial with a database containing a lot of data (in some tables 2
millions of registrations), and the response time is too long and in the end a have a
message (java heap space).

In fact, I encountered this problem with a project done with eclipse (web application with
frameworks STRUTS, HIBERNATE and STRUTS) and I resolved it by adding “lazy="true"” for
each tag “set” in the *.hbm.xml files, also I added the DLL “tcnative-1.dll” in
order to perform APACHE TOMCAT, and so I no longer have the problems.

So, in this case, I tried to do the same think. So, I have deleted under the package
“jpa.entities”, all the annotation “// @OneToMany(mappedBy = "idAbonnement")”
and of corse the related attribute and the methods getter and setter, then I generated the
JSF Pagesfiles from Entities Classes, but I always have the same problem ???????????????

I focused in your FAQ, I found you speaking about modifying /
** netbeans_default_options="-J-Xms512m -J-Xmx512m -J-XX:PermSize=32m
-J-XX:MaxPermSize=128m -J-Xverify:none
**
-Xmx512m
-XX:NewRatio=2
-XX:MaxPermSize=128m
...
But no result.

My database is created under the SGBD PostgreSQL.
RAM: 1G
Procesess/ 3.20 GHZ and P IV
Space in disque / 25 GO

I hope that you can help and advise me.

Thanks in advance

----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/docs/web/jsf-jpa-crud-wizard.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo