| |
| |
| |
|
Page: 1 2
Comments:
<0> Lorraine_: you could also try to suspend or pause it. Or better yet; rewrite the cl*** you're using. <0> Lorraine_: ofcourse, I don't know what cl*** you are using, but it sounds like an outdated piece of software (from 1.5.x point of view). <1> Lion: it's URLconnection from the standard library <0> ey rob <2> ey <0> Lorraine_: aah, lets see <0> Lorraine_: but how are you defining your new thread then? <1> Lion: A thread is using this URLconnection <1> reader = new BufferedReader(new InputStreamReader(conn.
<1> getInputStream())); <1> like that <0> Lorraine_: aaah, now I see where you're getting at. <1> that's the line which stalls.. <0> Lorraine_: when you mentioned "thread" I somewhat ***umed you meant a thread which you started yourself. <1> Ok <0> netwit: I don't know from mind but iirc you can keep track of the index of the file. Ofcourse you can also consider to copy it. So; read the old file, replace the bytes you want by writing the new bytes to the new file. <0> Lorraine_: let me have a peek at the docs just in case. <1> ok, it'd be weird if I couldn't handle this situation with URLconnection <1> I have the same problem with INetaddress <3> Lion-O: the problem is I can't create a new file, it's got to be done in the same file itself... :( <1> netwit: can't you rewrite the file? <4> netwit so open the file for reading and then read to the byte you want to replace and do a replacemtn <3> Lorraine_: nope :( <4> open for writing i mean <3> sabre: the problem is which method do I use to replace the bytes, if I do a write() or something similar, I'll insert the bytes rather than replace them... <4> what kind of file? <0> Lorraine_: hmm. I'm not too sure about the combination of BufferedReader and the InputStreamReader at once but thats merely because I haven't seen those in this way very often. <3> it's a binary file <4> then you need to delete the bytes first <3> ok... <3> how to do that... <4> find a cl*** that will allow you to do that <4> that's how <4> google would be a good start <0> Lorraine_: guess your guess is as good as mine. Still; when it stalls it means it can't do something. Personally I'd try to write a cl*** around it which you can then leave running in its own thread. That thread should be more easily controllable, even though I realize this is probably a *very* crude hack. <3> I'll just check the API docs for RandomAccessFile... <0> netwit: check java.io, it should have plenty of options to read / write to/from files. <3> ok! <1> damn <5> hello! has anyone used netbeans 5.5 to develop a web service? <5> im having problems with a test web service being consumed by Flash 8, was wondering if anyone's had experience with this sort of thing
<4> no i'm just consumed by morons who use flash <5> heh <5> not much choice in this arena im afraid :) <5> im still reading up on web services to try and see if i can figure out why i get an error consuming a simple one <5> "WSDL.BadElement Element tns:addResponse not resolvable" is the error i get <5> not quite sure what that means <5> :\ <0> It heavily depends on the service and such. Just an error can mean just about anything. <5> ya <5> i figured <5> web service <5> not web application :) <0> there's a difference in NB? :P <5> in 5.5 at least there is <5> i made the most simple web service possible, a single method called add that takes two ints and adds them, returning the result <5> i then take the WSDL, throw it to flash, and it consumes it <5> but i get an error right off the bat :\ <0> Sounds like your problem is more flash than Java related. <5> you'd think, although we have no problems consuming any other web service in flash <5> amazon's, ebay's, etc etc etc <0> that really doesn't mean much. <5> heh <3> hey! <3> it worked!! :) <0> netwit: good! congrats! <3> when you do a writ() from RandomAccessFile, it replaces the bytes instead of inserting them <3> *write() <3> thanx for all your help! :) <0> doh, now he left. <0> I finally saw what he meant :P Every webapplication has a sub-folder "web services". Its not a service as a whole; its still part of the web application. <0> aaah, final task at hand; sending an e-mail from my webapplication. /possibly/ through JNDI but I think it might be easier and more to the point to do this manually 8) <6> Just use JavaMail! <0> Resonator: *nod*, my idea exactly. It can be done through a server session though (JNDI). But plain JavaMail is easier I think. <6> Yes definitely. <0> Resonator: thanks for the hint. <6> np man <0> aah. If there is one thing I never regretted then it has to be putting the SE & EE API docs on my intranet ;)
Return to
#java or Go to some related
logs:
need patch-2.MPQ #linux #php #linuxhelp #teens qcamvc gentoo #AllNiteCafe FTP using port 80 mafiaway IRC cache:8vAVJ_c9-RYJ:www.quotesdb.info/undernet/london/28Jan2006/27.html CC,NAMES,
|
|