Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Async

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to make async client-server, may be with spring?
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Smith Brown wrote:How to make async client-server, may be with spring?


You need to ShowSomeEffort.
What have you researched so far ?
What makes you think Spring might be the way to go, as compared with other options ?
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm so sorry... I'm novice in this item. Who can help? Where to dig?
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Smith Brown wrote:I'm so sorry... I'm novice in this item. Who can help? Where to dig?


You have to start with yourself. Come up with a detailed specification so you know exactly what you want to do. Try to come up with a specification that explains:
0) what is this application supposed to do
1) related to your product, what is a client
2) related to your product, what is a server
3) what is the relationship of client to server
4) what does the server serve
5) how is the client supposed to talk with the server
6) how is the server supposed to talk to the client
7) where is the server going to run, relative to the client
8) how many clients will there be
9) can clients interact with each other
10) what happens when a client disconnects
11) what happens when a client reconnects
12) is the client persistent in sessions
13) is the client persistent between sessions
14) what is a session
15) what are your security needs


These are just some general client/server type questions, but once you know what the application is supposed to do, there is a ton of domain-specific questions you need to answer. A good approach (I find, anyway) to come up with these questions and answer them is to consider how the application is supposed to be used. Consider the application from the user's perspective. Why is the user using the application? How does s/he connect? What does s/he expect when connected? What does s/he expect when coming back? Etc... Create a document which you use to describe the user's workflow from start to finish with every interaction you can think of (use-cases) so that you get an idea of how the application is 'expected to work.'

After that you can start to come up with an idea of structure and design.

Then you can think about implementation and start looking for specific technologies that might make your life easier.

But trying to choose a technology when the only concepts you have are 'async' 'client' and 'server' is an impossible task, and even if you choose one chances are it will either be wrong since there was not enough information put into making the choice.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to see how to make async crud example in java without ajax, jquery, with spring framework may be.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or RESTful Server with asynchronous client
 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since 4.x RELEASE

http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/
See 22.10.3 Async RestTemplate

AsyncRestTemplate allows Client to make rest request asynchronously to Restful Service (Server)
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!