Paul Celona

Greenhorn
+ Follow
since May 20, 2004
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 Paul Celona

My application uses ws with a number of native libraries (nativelib tag) that are wrapped in signed jar files. I have added a new native lib (from a vendor) that is dependent on some MS VC dlls (msvcp71.dll, msvcr71.dll) - -- determined by using dumpbin.exe. I have put these in my signed jar file but the main dll i call gets a dependency exception. When I put these 2 dll in my windows/system32 folder, my app works. I have alternatively tried creating signed jar files for each of the dlls, but to no avail.

Help.
11 years ago
When implementing this code snippet in a web service msg handler, where does the println go to?
13 years ago
I would like to have the soap message parsed into a java object to pass back as a return value to a caller. It looks like the easiest way to do this is jaxb. the problem is that I have to take the soap message body and write an xml file, and then point jaxb to it.

At least that's what I think I have to do (or would like to do). Is there an easier way?
13 years ago
how do I validate a soap message against a given .xsd file? Do I need to do this, or does soap take care of this for me? If soap doesn't validate against an xsd, should i use jaxb to do this?
13 years ago
Is there a tutorial or write-up somewhere that goes through how to call a .net web service from java in more detail.
13 years ago
I just finished the Jax-ws tutorial for NB 5.5 and developed a java SE client that talked to my web service. everything is good and runs fine. What do I have to do for running the client on a different workstation?
13 years ago
Does anyone have a recomendation or experience with 3rd party java swing extension packages. Something with enhanced charts or table and other gui components?
13 years ago
Looking on the net I haven't found a design pattern that pulls both JMS publish/suscribe and notification/registration. I've seen the later for ejbs, but not incorporating JMS. Short of buying the eai patterns book, is there another resource out there?
This is an interesting topic area. I'm interested in the possiblity of a parser that reads its grammar from a file (i.e. xml). The code for the parser shouldn't change, just the grammar. This would provide great benefit especially at runtime with the ability to start multiple parsers threads with different grammars.

Does something like this exist already?
Thanks for the reply. Is there an example implementation using jms somewhere?
I am trying to design an appllication that using dynamic notification to clients upon data store updates (i.e. background threads a,b & c update an event database, and then another ejb notifies gui Z that updates have occurred and either provides the updates or indicates that updates have occurred. Gui Z (could be stand alone java app or applet) then calls an ejb to retrieve the updates for display). The general purpose is to eliminate continually polling the database for new updates.

Is there a design pattern for client registration, update notification, etc for this. I had envisioned using message ejbs for this.
The examples for using a finally block show closing a file. If the method called in the finally block throws an exception (i.e. FileInputStream.close() ), then are nested try blocks needed to handle the exception in the finally block?
13 years ago
I am running mysql 4.0.18 on Windows 2003 server which also hosts my apache tomcat server. My applet makes a connection to the mysql database on the server as well as a socket connection to a service on the same server. In the lab with only a hub between the client and server, the application performs well and data is transferred quickly. In the deployed environment with a pair of gateways in between, socket performance is not affected much, but the application gui bogs down on the database queries. Performance is so slow that some simple GUI updates take up to 5-7 seconds with only a simple 1 table update occurring. The database updates are small (1 column) updates.

Does anyone have experience with this and/or can provide some insight?
Thanks, I got the code working in JBuilder. Problem is I need to do this from an applet. running this in a web browser gives me an access denied/permission error when I try to access the clipboard. Is there a setting in MS IE that will allow my applet to write to the clipboard? How about Netscape? Anyone know?
[ May 21, 2004: Message edited by: Paul Celona ]
15 years ago
I wrote the following code snippet thinking that I would be able to copy text into the system clipboard so that I could paste it into another application. But the text doesn't seem to make it to the clipboard.

...
JLabel label = new JLabel(selectedData); // String selectedData holds text
label.setTransferHandler(new TransferHandler("text");
TransferHandler handler = label.getTransferHandler();
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
handler.exportToClipboard(label, clipboard, TransferHandler.COPY);

selectedData holds the text I want to export, but in WordPad the "Paste" button never gets enabled. Can anyone tell me why this doesn't work.
15 years ago