Geir Morten Hagen

Ranch Hand
+ Follow
since Apr 05, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Geir Morten Hagen

I'm doing a xsl transformation on websphere 5 and this xsl never finds the right values. When I run the exact same transformation with the same source, it finds all the values, but on the server it just return empty tags. Why? And how do I fix this?
Source xml:
----------


XSL transformation:
------------------


Result xml:
----------

[ October 17, 2003: Message edited by: Geir Morten Hagen ]
Hi, I've finally got my application working and into production, but then I noticed a strange thing. In my MDBs the transaction is rolled back if the target system cannot be reached. I tested it by bringing down one of the systems, and then websphere tried to send it 5 times, even though the listener port is configured to retry messages 2147483647 times. Anyone know why this happens and know what to do about it?
21 years ago
Got my results today, after just waiting 5 days! And wow, am I happy now!
Total: 148/155
General Considerations(maximum=58): 55
Documentation(maximum=20): 20
GUI(maximum=24): 23
Server(maximum=53): 50
*happy*
22 years ago
I just finished my assignment, and I have handled exceptions in the layer where they logically occur. If an exception is thrown at the server side I just use Exception.getMessage() and print it to the console. When exceptions is thrown on the server, the exception should also be thrown in the remote object, and consequently they will be thrown on the client side. On the client side I've used JOptionPane.showMessageDialog() to present the user with "friendly" error messages.
Vivek: eclipse is for linux too. www.eclipse.org
Have you added the JDBC driver for your dbms to websphere classpath?
I've decided to make one server.jar and one client.jar and package them both in scjd.jar together with the documentation and database file.
server.jar contains all the required classes to run the server (including stub/skel), but when I try to start the server without the -Djava.rmi.server.codebase argument, it complains about not finding the stub, even though it's there. When I specify server.jar as codebase it works, but I would like for the examiner to pass as few arguments to the program as possible.
Anyone got any information on this? The stub and skeleton are in the jar, so it should work..
Dean,
The way I did this was to implement ActionListener in the main gui class, and when the booking button or searching combos are clicked, I kick of an anonymous worker thread that calls the methods that will take a long time or block on the client facade (and ultimatly on the remote object). That way the gui never hangs.
[ May 03, 2002: Message edited by: Geir Morten Hagen ]
I do not fully agree on implementing locking in Data. As noted in several other threads; locking is not necessary when running in local mode. That's why I use a LockManager, which is called from the remote object to lock and unlock records. When running in local mode, the remote object is not in use, then I just use Data directly. I just left lock and unlock in Data empty, or well lock just validate the record position and throw an exception if it's invalid.
That's pretty much what I've done. I have a main class that creates an instance of the client facade and an instance of the gui. The gui currently just consist of two classes, the main gui class and a datamodel class (+ a help dialog).
Maybe I should at least create a search panel and add the search components to that, so that only this panel have to be changed if the search functionality is to be enhanced. And possibly a dialog for booking. Now there's just a textfield and a button beneath the search components.
Comments?
GridBagLayout is not evil, by the way

Originally posted by dean tomlinson:
using an IDE will probably tie you into a specific JDK. VAJ ties you into IBM's JDK which is not going to satify Sun's requirements for the assignment. Once I've got everything fairly complete I'm plannning to complete the work in ultraedit and get everything schweete!


That's the nice thing about Eclipse. You can use whatever jdk you want
That's what irritates me. The GUI is working perfectly, all the required functions are implemented and everything. The only problem I have is the part about extendability.
Another thing is that all my GUI code is in one large class, which keeps a private variable of type ClientFacade (which handles networking) and implements ActionListener. The actionPerformed() method sends requests to the ClientFacade. I'm no guru at gui programming, but this can't be very extendible?
I only have the content pane, and use gridbaglayout to lay out the components. This is maybe not a good idea, when taking future enhancements into account?
The requirements says that the user interface should establish a control scheme that will support future functionality enhancements with minimal disruption to the users.
The part about being extensible is pretty straight forward, but I don't understand what they mean with "control scheme".
Anyone? I'm lost
You can use any IDE you want, but I would not use any "code-generators". Remember that you need to defend your choices, and the code that IDEs generate is often cryptic and messy. Write it yourself
I personally recommend using the opensource IDE Eclipse. It's clean, simple and powerful. www.eclipse.org
[ April 30, 2002: Message edited by: Geir Morten Hagen ]