Steve Granton

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

Recent posts by Steve Granton

Thanks,
That sounds good. I'll give it a look.
Steve
22 years ago
Hello,
I did read this article but I'm not sure that it meets my requirement.
This details a 'one to many' relationship - i.e. a producer fires an event that is consumed by 'n' comsumers.
My situation is that there are two different producers and I want events from both to be received and processed by a single consumer - ' many to one'
I did think of making the ExitAction extend WindowAdapter but discounted this for two reasons:
1) The ExitAction class already extends AbstractAction and therefore I cannot extend another class.
2) Even if I did manage to get ExitAction to extend WindowAdapter it would not make sense for this class to also have to handle other window events since it would be registered as the Window Listener for the frame.
Thanks for the suggestion though and I found the article useful. I'm sure I'll use it elsewhere.
Steve
22 years ago
Hello,
I'd like all actions that attempt to exit the GUI to do the same thing. As a solution I've created an ExitAction class that extends AbstractAction. However, the WindowEvents (windowClosing()) cannot directly use this new ExitAction class. In order to provide a translation I've extended WindowAdapter with a WindowAction class and provided the following implementation of windowClosing():

Can you pleae advise whether this is a suitable solution. Also can you please advise whether the id of the ActionEvent is an arbitrary integer or does it need to be specific.
Apologies if this is fairly basic but I'm new to Swing and GUI - I'm normally found stuck into J2EE!
Thanks in advance,
Steve
[ May 13, 2003: Message edited by: Steve Granton ]
22 years ago
Thanks I'll take a look.
It came as a bit of a surprise as I've not been keeping up with the SCJD forum recently.
Steve
Hello,
I'm sure it has already been asked before but I'll ask it again to clear up any misunderstanding I have.
I've been working on the project of and on (due to work and family pressures) for about 1 year now. Can I still submit this and take the associated exam?
Is there a deadline for submissions for this older assignment as presumably at somepoint everyone will need to take the new one.
If you can point me at the Sun explanation that would be great.
Thanks in advance,
Steve
[ May 02, 2003: Message edited by: Steve Granton ]
Hello,
I'd like to write an Ant task to import an ear file. I've seen the example that creates a task to export an ear file at Using Ant with WebSphere Studio Application Developer articles from IBM.
The class I want to use is the com.ibm.etools.archive.ear.operations.EARImportOperation. However, its constructor takes the following types as parameters: IProject and EARFile.
My understanding is that IProject is an interface.
My problem is that I'm trying to find the jar file in the WSAD installation that contains the EARFile implementation and the class that implements the IProject class.
Does anyone know what jars these are in?
Steve
22 years ago
Hi,
Why don't you just download the binary version of Ant from the jakarta website and install it separately? Cut out the pain of trying to use WSAD - which is painful at the best of times
Steve
22 years ago
Hello,
This should probably be in the Threads group - did you post there too?
Presumably (though I can't tell for sure as you haven't included the code) each instance of class yyy has its own file pointer to the file. Therefore you are simply synchronising on different instances of the file class. What you need is a single point (probably a helper class) that all classes use when they want to write to the file - effectively you write a wrapper/protector for the file, which you may wish to implement as a singleton to ensure that only one instance of the wrapper can be created. This helper can then control access and writes to the file so that they appear in the order they are meant to.
Things will get more complicated if you need to do this from different JVMs but by your description it appears to be from one JVM. However, with it being a servlet you will need to consider what will happen if you need to cluster the application servers - you will then have a number of jvms.
I hope this helps.
Steve
[ January 31, 2003: Message edited by: Steve Granton ]
22 years ago
Hi,
Thanks for the suggestions - we'd toyed with the idea of making a request to the servlet but as you say its a bit nasty. The MDB is a good example but we are not using them - WAS4.0.3
Thanks for the suggestions. We've managed to get it working with global names - not ideal but a work around.
Cheers,
Steve
Hello,
We have the requirement to schedule regular tasks when the application starts. We are doing this by using TimerTasks and the Timer class to create background threads. This process works fine. Our problem is that the task doesn't seem to be able to get a hold of local references for either resources or ejbs.
Does anyone have any suggestions?
Thanks,
Steve
Hi,
As far as I remember the hot deployment is fine for development environments but not for production as it is fairly resource intensive.
It sounds like you are using it for development though.
Thanks,
Steve
22 years ago
Hello,
Can anyone tell me why in its meta data files WSAD has entries that have absolute paths instead of relative paths, such as:

When I check out a file from my SCM I find that there are spurious errors because the paths are all incorrect.
Surely, in the true spirit of Java, and to make everyones life easier they could be relative to the root of the workspace.
Surely, I'm not the only one to think this?
Has the situation been improved in WSAD 5? Do they use relative paths?
Any thoughts,
Steve
22 years ago
Hi,
I'm using WSAD 4.0.3 and PVCS as my SCM. Does anyone know of any guidelines to synchronise my workspace from the SCM repository? It seems that there are so many meta data files that it is virtually impossible to do a clean build quickly.
When I was using Textpad and Ant, I could delete my current code and then check out the latest from CVS and have it all compiled and ready to run in under 5 minutes.
Trying to rebuild a workspace in WSAD takes about a day (and an intimate knowledge of files that will never see production (.modulemaps, .websettings .classpath etc) - by which time my code is out of date from the rest of the team again.
Maybe its just me but I don't think that its a good idea have the classpath in several places in a project - why not just one place?
Also, can anyone tell me why I cannot put all the binary code for my workspace in one place? I have to nominate a directory under the each project to hold class files. It seems a lot of unnecessary work is being done just to be able to use WSAD.
On top of all that the interface is slow and cluttered - and thats on a machine with 1gig of RAM!
And I've heard that WSAD 5 is no better either!!!
As you can probably tell - I'm not a fan of IDEs
Thanks in advance for any answers,
Steve
[ January 13, 2003: Message edited by: Steve Granton ]
22 years ago
Hi,
WE saw similar problems with WAS 3.5 when we were using the Instant DB as the repository. Sometimes it got corrupted and the CPU ran at 100% - if you are using instant db then its probably worth searching on google as thats where we found our solution.
Otherwise - have you reinstalled WAS? Does it stop the 100% problem when you reinstall?
I hope this helps,
Steve
[ January 09, 2003: Message edited by: Steve Granton ]
22 years ago
Hi,
In that case - have you checked the Session Manager Service settings on Websphere - are you using cookies for session management rather than url encoding? Maybe this is your problem.
Cheers,
Steve
22 years ago