karl waber

Greenhorn
+ Follow
since Mar 03, 2018
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 karl waber

I mention TCP/IP because I have read some things about websockets, which use tcp/ip...and maybe i could use this. But I am still very unsure about what the architecture of the whole system would look like (this is why i refer to EJB etc....). There are so many possibilities that I dont know where to start. I'm hoping someone can shed some light on how this architecture would look, then I can go research the finer details...

Paul Clapham wrote:

karl waber wrote:this uses java ee servlet which I think, implies the use of a browser and http on the client side.



Not at all. It just implies something sending an HTTP request. That could be a browser and often is, but it can be any code (including code written by you) which sends HTTP requests.



aha...you learn something everyday! OK, so I guess this is one way of doing it....what I have read about http is that for a few files, it might be ok, but if the number of files would increase over time, http might be too slow??? so now i'm just wondering if there is another way that is more efficient, and allows for future demand...so EJB? TCP/IP?

Paul Clapham wrote:As for how to do a file upload in JEE these days, I googled for jee file upload. And yeah, the way I used to do it is now obsolete. This part of the JEE tutorial tells you how to do it now.




this uses java ee servlet which I think, implies the use of a browser and http on the client side. I need to do it from an application client I have already written...unless there is some hybrid form - an application client using http

Paul Clapham wrote:

karl waber wrote:but I think you would use this in a web application (i need application client, no browser).



I get the impression that you think you can just write some client-side code to do a file upload and then you're done. But that's not the case. You can't upload a file to a server unless you've got some software running there which is prepared to accept that file upload. And that software is by definition a web app.

As for the application client, instead of a browser, you could certainly write some client-side software to send the POST request to the web app. But you do need a web app.




This is what I am asking about...I did mention an EJB, but I am not sure if this is the right way to go...if someone can clarify that, then this is what I have to research...
what i mean by web app is using a browser and html, rather than using an application client
oh yeah...i have also seen some examples of an application client and an ejb - both of them implementing a 'remote' interface...i think this is how they are able to talk to each other...
hey thanks, yeah, I've seen examples of a browser/post method, but nothing using an application client. On the server side, I think it would have to be an EJB, but I am far from certain. Maybe a servlet??? but I think you would use this in a web application (i need application client, no browser).

oh cmon dude, how does that help? I need some direction...I would like to upload files to a server and I want to use java ee...plenty of tutorials etc doing it from a web application, but nothing on doing it from an application client...
Oh, I should clarify...I want to upload the files using the client I have already created e.g. user clicks an upload button...
9 months ago
HI,

Could someone point me in the right direction please...i'm new to java ee and already my head is spinning around trying to comprehend ideas like injection and dependencies and I dont have a clue what annotations I should be using... etc etc etc. I do know a little about java, though, and I have written a client application already, but now I want to simply upload some text files (in the future it will be dat files) to a server. I would prefer to do this with java ee and glassfish so I can begin to get my head around it all. From what I have read and understood, I think I should be creating an Enterprise Java Bean??? Is this correct? I am using Netbeans IDE if you want to go into detail!!! Cheers! KWB
9 months ago