Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Need guidelines on creating LAN enabled J2SE Application With DB (apps as ERP) ?

Need guidelines on creating LAN enabled J2SE Application With DB (apps as ERP) ?

Scheduled Pinned Locked Moved Java
csharpjavadatabaseasp-netsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alok Sharma ji
    wrote on last edited by
    #1

    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.....

    N 1 Reply Last reply
    0
    • A Alok Sharma ji

      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.....

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • N Nagy Vilmos

        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

        A Offline
        A Offline
        Alok Sharma ji
        wrote on last edited by
        #3

        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 :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups