Michael Imhof

Greenhorn
+ Follow
since Nov 07, 2004
Merit badge: grant badges
For More
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 Michael Imhof

Sorry, I was simplyfing the source code and all the sudden
the result was right...
Try this:

-> Result = 39.999999990686774
Can somebody explain why this result is wrong?


Correct statements are:


Regards
Michael
>1. For what reasons you have chosen webservices for this project?
Because we got several systems around who want to request data from our
process.

>>2. Where you see two architecture ?
You're right. Both examples mentioned above are of the same architecture,
but different components.
And there's quit a difference in using JBoss with EJB (or POJO, Hibernate, Spring) or Apache Tomcat with Axis...
17 years ago
We're designing an application to process a lot of small packages of information (8Kb each). We're planing to use webservices but we're not sure
wich architecture to choose. Important is simplicity, hot deployment and performance. Also we would like to use several processes on the server and
access over a web interface.

Following architectures are in scope:
- JBoss, EJB (or without EJB??)
- Apache, Axis
(For the web interface, we will use JSF).

Has somebody experiences with the two architectures.
Or has somebody another suggestion??
My Favorite is Apache Axis but I couldn't find any information about hotdeploy...

Michael
17 years ago
Passing data to new workbench
------------------------------
I'm developing an RCP application using different workbench windows using

new OpenInNewWindowAction(workbenchWindow).run();

With this call, I get a new workbench window with default content (set
in my WorkbenchWindowAdvisor.preWindowOpen())
But i want to customize the content of this new workbench!!!

How can I send any data to the new workbench???
Is there a construct in the RCP framework??

Saving workbench data
---------------------
Closing the application and open again is working fine for the number of
windows and the window positions. But if I had Data A in the first workbench
window and Data B in the second workbench window, after restart this data is lost (of course!).

How can I save/restore workbench specific data?

Both problems are solved with eclipse IDE (if your open a new perspective outside of the current perspective and close the application, all the settings are restored when reopened).

Regards
Michael
18 years ago
Does somebody know if there are plans to build a library
using DirectX/OpenGL with SWT?
I would like to use a similar library to the "Sun 2D Library" but
within SWT (and not Swing).

Regards
Michael
18 years ago
I found the problem.

I had eclipse 3.1.1 installed and OpenGL is not supported with this
version.
Written on http://www.eclipse.org/swt/opengl/:

Support for OpenGL is included in SWT 3.2 (all builds after M2) in the package org.eclipse.swt.opengl...

Michael
18 years ago
Thanks Gregg,
I was already on this path and downloaded following libraries
from the url http://www.eclipse.org/swt/opengl/:

swt.jar (swt-3.1-win32-x86)
ogl.jar (org.eclipse.opengl_0.5.0)
jlwgl.jar (lwjgl-win32-0.98)

But the two classes are not part of any of this libraries!

Michael
18 years ago
I would like to run a demo code showing how to use SWT with LWJGL (Leight Weight Java Game Library):

Snippet195

To run this code I need the following classes:



Where can I get a library containing this two classes. I was searching
on the web but I can't find a library with this two classes!
Shouldn't this classes belong to the swt.opengl library?!

Michael
18 years ago
For a new project I would like to use RPC (SWT, JFace) instead of
Swing. In this project we have to paint a lot of graphics (lines,
circles) in realtime. Unfortunately the 2D Library of Sun is not
available in SWT.
How about the GEF of SWT? Is this suitable for high performance
graphics? Does it supports DirectDraw and/or OpenGL?
Are there any good documentation?

Regards
Michael
18 years ago
1.Not only final methods but also private methods cannot be
overriden (because they are not visible in the subclass).
2.Static methods are not inherited and cannot be overriden. Static methods
can hide other static methods.

Look at JLS

Michael
If you're looking at the API doc for java.lang.String (http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html)
you'll find the definition for the method trim():
"Returns a copy of the string, with leading and trailing whitespace omitted."

So in your example this means:



" Arg ".trim() will return a new String "Arg" and will be saved
in s1.



" Arg " + args[1] is a new String " Arg Beta" and will be saved in s2.
" Arg Beta".trim will return a new String "Arg Beta" and
will be saved in s2.

Correct output is:
ArgBeta

Arg Beta

Mike
If you add the hashCode to the output you'll see, that
you're creating 20 different objects. And after the lifetime
of the every object, the method finalize is called.



Mike
19 years ago
The only difference is that the methods in java.util.Vector are synchronized and in java.util.ArrayList not. That's all!
From the performance point of view, this means that java.util.ArrayList should be a little bit faster.
19 years ago
Sorry Bill, I didn't look at the details of the code. It's some old
code running for years (never change a running code!!). But you're right.
Using the String constructor would be more efficient.

Back to the IllegalStateException:
Our own class (who implements the abstract write method of java.io.Writer)
is called SdkDatabaseLogWriter and is shown in the code above.
We replaced the Writer for TOPLink Messages by our own Writer. That's why
the TOPLink Session.logMessage is calling finally our writer.

19 years ago