Need guidelines on creating LAN enabled J2SE Application With DB (apps as ERP) ?
-
hi i have worked in VB/C# where i created LAN enabled applications like apps for record handling and MIS/ERP solution type, now i have switched to java so i want to know a few queries as: 1. Do we have to go JSP/EJB for LAN applications or i can make them in core Java too. 2.if,its possible to create application like that in core java ,what kind of classes/packages i need for them(other then java.net) and 3rd party api's for simple working? 3. how can such application be going to interact with each other or do i need threads (thread executions) to make it understand about every process going between diiferent client and one server? 4. Is it not possible to achieve such facility with DB connection call with diff server ip/port instead of making the app to listen for its server and then work ? 5.in Above,, which one will going to be smooth in between them? i know its too much in one go but if you can please solve my any query first you like :cool:
In this world only the hardwork with smart approach wins.....
-
hi i have worked in VB/C# where i created LAN enabled applications like apps for record handling and MIS/ERP solution type, now i have switched to java so i want to know a few queries as: 1. Do we have to go JSP/EJB for LAN applications or i can make them in core Java too. 2.if,its possible to create application like that in core java ,what kind of classes/packages i need for them(other then java.net) and 3rd party api's for simple working? 3. how can such application be going to interact with each other or do i need threads (thread executions) to make it understand about every process going between diiferent client and one server? 4. Is it not possible to achieve such facility with DB connection call with diff server ip/port instead of making the app to listen for its server and then work ? 5.in Above,, which one will going to be smooth in between them? i know its too much in one go but if you can please solve my any query first you like :cool:
In this world only the hardwork with smart approach wins.....
Alok sharma ji wrote:
1. Do we have to go JSP/EJB for LAN applications or i can make them in core Java too.
No. They provide a framework, you can go lower and use RMI to call the server and build the server using normal classes. Or you could go lower still and open TCP sockets and send your data back and forth that way.
Alok sharma ji wrote:
2.if,its possible to create application like that in core java ,what kind of classes/packages i need for them(other then java.net) and 3rd party api's for simple working?
Yes. Easy as falling out of a tree. Write the classes you want and bang. I would suggest developing a first cut as a single process, with the business funtionality protected by a facade that only returns basic types. Then you can put the comms in the middle.
Alok sharma ji wrote:
3. how can such application be going to interact with each other or do i need threads (thread executions) to make it understand about every process going between diiferent client and one server?
I would suggest that you would want to handle each client on a seperate thread, otherwise you'll soon hit performance problems. Concurrency isn't magic, it is relativly easy to do.
Alok sharma ji wrote:
4. Is it not possible to achieve such facility with DB connection call with diff server ip/port instead of making the app to listen for its server and then work ?
I think the question here is about the backend data tier. You should use a JDBC defined connection then the DB can be configured at deployment. I would not expose the DB to the client.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
-
Alok sharma ji wrote:
1. Do we have to go JSP/EJB for LAN applications or i can make them in core Java too.
No. They provide a framework, you can go lower and use RMI to call the server and build the server using normal classes. Or you could go lower still and open TCP sockets and send your data back and forth that way.
Alok sharma ji wrote:
2.if,its possible to create application like that in core java ,what kind of classes/packages i need for them(other then java.net) and 3rd party api's for simple working?
Yes. Easy as falling out of a tree. Write the classes you want and bang. I would suggest developing a first cut as a single process, with the business funtionality protected by a facade that only returns basic types. Then you can put the comms in the middle.
Alok sharma ji wrote:
3. how can such application be going to interact with each other or do i need threads (thread executions) to make it understand about every process going between diiferent client and one server?
I would suggest that you would want to handle each client on a seperate thread, otherwise you'll soon hit performance problems. Concurrency isn't magic, it is relativly easy to do.
Alok sharma ji wrote:
4. Is it not possible to achieve such facility with DB connection call with diff server ip/port instead of making the app to listen for its server and then work ?
I think the question here is about the backend data tier. You should use a JDBC defined connection then the DB can be configured at deployment. I would not expose the DB to the client.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
thanks for your answers, on the point 4 i was thinking of passing the ip of DBserver (instead of passing a usual localhost) so the application connects itself their with no sweat, but i think thats a too much of wishful thinking :)