Andy Dejung

Greenhorn
+ Follow
since Sep 05, 2002
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 Andy Dejung

Hi everyone I would like to use cidr as a sql-type in hibernate, but it looks like hibernate does not know this type.
Is the only solution to build a customer type?
Does anyone have already done this?

Thanks for the help
Andy
I have bean making a prototype with JSF. It was much more difficult then I expected. I have 4 years Struts experiences but JSF and JSTL are quite different to us.
In the current project we choose know to use Tapestry , Spring and Hibernate. A prototye was made much faster and easier even Tapestry works bit different. I think it is a very good framework and has many advantages like your pages are readable by standart html development tool like dreamweaver.
Thank you Kyle for your answer.
I thought so, but I hoped that there is an other solution.
Thanks again
Andy
Hi there
My question is how do I update multiple records (EJB CMP) without loading every EJB?
The situation is as following:
I have an EJB with ten attributs one of it is the state of the EJB. The states are like new, valid, active, old and so on. Now I would like to change all records with the state valid to active.
One way would be to make a finder method and select all valid records, load it as EJB and change there the state from valid to active.
I do not like this way because it is very resource intensive.
Is there a way to update the records directly? If I do it direct with SQL then I bypass the container management. So EJB which already are loaded do not change the state.
Thanks for any help
Andy
Hi Kirk
Greate that is exactly what I was looking for
Thank you for your help.

Andy
16 years ago
Hi there
I know that properties can be change in ant. My question is now is there somthing like a variable in ant where I can set diffrent values.
Or is there a other solution for the following problem:
I would like to call a target and pass them every time a diffrent value to bild a diffrent client.jar. The value describes which directory should be included in the jar.
My solution at the moment that I copy the target and change the directory name by hand. But I would like to call one target for all client only with the diffrent dir-parameter.
Any idea to solve that?
Thanks a lot
Andy
16 years ago
Hey there
Does any one use an open source performance profiler like JProfile?
Andy
Thanks for your answers.
But as I see from your answers I maybe did not express my problem clearly. So I will try it again this time on a example.
Lets say I have a busniess case which should get some person data form a host system and from a other DB.
In Struts I split the case in two tasks (Action). The first Action (HostAction) will perform the host lookup and getting the data from the host. The secound Action (DBAction)will perform the DB lookup and get its data form the DB.
In this scenario I get in the HostAciton the ID of the person out of the Form. Make the lookup and get the data from the host. Then I store the data in the Form and call the next Action (DBAction). In the DBAction I get again the ID and get out of the DB the data. I write this data also into the Form.
Now I call the JSP and display all data.

Now my problem:
The data from the Host which are passed first to the DBAction and then to the JSP, are serialised twice, once for the request of the DBAction and once again for the JSP.
My question is now: Is there a way to call another Action (DBAction) without serilisation bedween. As the Action run in the same Servletcontainer and are called from the same Servlet.
I hope I could now express my problem
Thanks again for any comment
Andy
17 years ago
Thanks you two Ilja Preuss and Beno�t d'Oncieu with your help I could solve the problem. After moving the three jars to the /lib/endorsed directory the program runs quick again.

Again thanks a lot for your help
Andy
17 years ago
Hello together
I found out that Xalan is now integrated in JDK1.4 But I could not find out which version it is.
Does anybody know?
Another question is how can I switch to use another version of Xalan not that one which is in JDK1.4 ?
Thanks for help
Andy
17 years ago
You are right I deploy the xalan.jar but it uses the classes from the jdk1.4. I'm using the j2sdk1.4.1_01 but I could not find out which version of xalan it is included.
How can I switch that the xalan.jar is used and not the jdk classes?
Thank you again you help me a lot.
Andy
17 years ago
Thanks for you help this had answered my question
As you have recommended I used the JProfiler to find out where I lose the time. And surprising it is not in the java core classes but in the classes of the packages org.xml.sax and org.apache.xml.serialize and other apachen packages.
Some method calls take about 10 times as long as the had with Java 1.3
I have no clue why it is so as I only changed the JDK.
Any idea?
Thanks for help
Andy
17 years ago
Hey
I used Struts for some projects and it is great, but one weak point I do not like is the serialisation bedween the action. If i forward one request to several action then every time the form has to be serialised and deserialised this can be very time consuming.
Did I miss something to go around this?
Thanks
Andy
17 years ago
Hey
I used Struts for some projects and it is great, but one weak point I do not like is the serialisation bedween the action. If i forward one request to several action then every time the form has to be serialised and deserialised this can be very time consuming.
Did I miss something to go around this?
Thanks
Andy