Implementing n-tier Architecture using java

Hi !!
I wish to know how I can proceed to implement n-tier application using java
or how to implement n-tier application with JBuilder.
Thanks!

Easypublic class nTier {
  public static void main(String[] args) {
    int n =5;
    for (int i=0; i<n; i++) {
      System.out.println(i + " tier");
}Ted.

Similar Messages

  • Three tier architecture using oracle dev suite 10g & oracle database 9i

    hi ,
    I am trying to build a software which will manage the database of a hospital through usual form design .
    The tools I am using for these are
    (1) oracle server database 9i (2) oracle developer suite 10g (3) windows xp professional service pack 2 .
    I have designed the form modules in developer suite , created the tables in the database , connected those tables to the form modules using dml statements, now data can be inserted , updates and deleted through the form design . I have also deployed the forms using "run forms through web" and thereby other computers connected to the main computer through lan can also access the software using the web port address and the name of form to be used , these computers are not having oracle developer suite or oracle database installed , but they can access the software through the browser .
    In this scenario my question is that , is this a three tier architecture as oracle database is the first tier , oracle developer suite is the middle tier where I am puting all the bussiness logics and oc4j instance is used to connect the database and the dev suite , and for user interaction we have the browser as the third tier ?
    or this is a two tier architecture ? if this is a two tier architecture please let me know how can I implement a three tier architecture using oracle developer suite 10g and oracle server database 9i .
    Thanks a lot for showing ur interest to read this

    You need Oracle Application Server to deploy the forms when you go live.
    What you are currently using OC4J which came in the developer suite. It is used only for development purpose and can not have capacity to handle higher load.
    3 tier arch
    1. Thin Client :-> Browser
    2 Middle tier -> Oracle Appln Server /OC4j(in ur case)
    3 Database Tier -> Oracle Database
    Rajesh

  • Distributed architecture using JAVA RMI

    Hi!
    I want to implement a distributed architecture, in which clients invoke any of several servers, depending on their availability. The clients are not browsers, so web-server (e.g. Tomcat) clustering is not relevant here. It's a cluster of servers, each capable of providing the same functionality, but clients should be able to "find" the less loaded one and invoke it. Now, with EJB's I believe this is provided out-of-the-box, but what about using RMI? How do two processes find each other via RMI, and is it possible to put a load-balancer in the middle?
    Is it possible to setup a load-balancer IP as RMI host endpoint?
    Thanks a lot
    A.

    They find one another using the rmiregistry tool from the JDK bin, which servers register with and clients use as a lookup. AFAIK this doesn't provide provision for anything resembling load balancing. Java RMI is a fairly basic facility.
    You should probably take a look at a framework like osgi.

  • Resources for implementing HTTP web server using java

    hi ,
    Thanks for giving your precious time in reading the message.I want to build a HTTP web server using java,which will run on my machine and I can communicate with it through web browser(IE) using HTTP requests and response.
    I know java language, but quite new to network programming.I want to gain enough knowledge on network programming in java.Can you please suggest me good books or any other resources available on the internet for the required subject.Any help will be greatly appreciated.
    my email-id is : [email protected]

    hi there my friend,
    I am writing my own web server too. in w3c there is a sample web server called jigsaw-open source :) and simple-
    I do think it worth trying.
    you can contact me if you want to share some source and info. cause I will.
    [email protected]
    but within 2 weeks I will be back for studying for my web server. you have to wait for a while.

  • How to implement single sign-on using java?

    I need your help regarding the following task, please go through it and tell me if you have a solution to it.
    DSOWeb is a portal which has links to all the reports generated from Microstrategy8.0.1 (MSTR) [it is another tool which generates the BI Reports] and my requirement is like when a report link in DSOWeb is clicked it goes to MSTR and shows a report of MSTR but the user is unaware of all this that the system is entering into some other portal and giving that report to him.
    1. User logs into DSOWeb (Implemented using Struts framework) - He is automatically logged into MSTR (Java Spring Architecture) as well.
    How to get the session Id of MSTR from DSOWeb and maintain that session within the DSOWeb???
    2.User clicks on a report link - He either uses the session created above or a new session is created for him, if the old one no longer exists.
    3.When User clicks Logout in DSOWeb the system should also internally invalidate the MSTR Session and logout from MSTR .
    Note : Here DSOWeb and MSTR applications are running in different Servers.

    Hello Meghal,
    It is possible to implement social login via Facebook for SAP Enterprise Portal 7.3 by simply using the SAP Cloud Identity offering.
    More details about SAP Cloud Identity you will be able to find here:
    SAP Cloud Identity Solution Brief:  Simplify and Secure Cloud Access to Critical Business Data
    SAP Cloud Identity features - latest release: http://scn.sap.com/community/security/blog/2014/12/18/new-capabilities-with-the-latest-release-of-the-sap-cloud-identity
    Please, find also the documentation about social login implementation:
    Enable or Disable Social Sign-On for an Application
    Best regards,
    Donka Dimitrova

  • Help for Smpp protocol handeler integration in URL  architecture using java

    Hi
    im student of BS.SE final year and im working on a research project by extending the URL framework
    by developing a component
    using smpp protocol implementation java smpp Api 3.4
    by writing a smpp protocol handler using smpp implementation 3.4 by java
    plz help me doing this project
    how this can be implemented
    and how the design of this procect will be
    by developing this component any application can be sms powered application
    using our custom protocol handler for smpp
    using smpp java Api
    how the coding of this project will be done
    how the smpp listeners will be integrated in url framework
    Plz help me developing this project
    i need ur full help
    thanks in advance
    plz reply me any material
    and developement ideas
    and any sample coding for this project

    System.setProperty("proxySet", "true");Does nothing. Remove.
    System.setProperty("proxyHost", proxyHost.trim());
    System.setProperty("proxyPort", proxyPort.stringValue());Those are for HTTP and they are obsolete, should be http.proxyHost/proxyPort. But as you are using FTP:
    System.setProperty("ftp.proxyHost", proxyHost.trim());
    System.setProperty("ftp.proxyPort", proxyPort.stringValue());

  • How to implement multi threading without using Java's synchronization

    I have a shared Object called "tradeObj" whose attributes are "Price" and "Quantity".
    Thread1 is going to change the price and Thread2 is going to change the quantity but not stepping on each other's update.
    Because of the cost of synchronization, I dont want to use "Synchronize", but still want to make sure both threads make their update in a proper manner.
    Any ideas?

    Soph wrote:
    I have a shared Object called "tradeObj" whose attributes are "Price" and "Quantity".
    Thread1 is going to change the price and Thread2 is going to change the quantity but not stepping on each other's update.given above I would guess [your interviewer|http://forums.sun.com/thread.jspa?messageID=10976469#10976469|interview] had in mind reducing locks contention (google for "java concurrency locks granularity" or "java concurrency locks contention" if you're interested)
    // disclaimer: I didn't test this code with compiler
    class TradeObj {
      private int price, quantity;
      // locks
      private final Object priceLock = new Object();
      private final Object quantityLock = new Object();
      public int getPrice() {
        synchronized (priceLock) { return price; }
      public void setPrice(int price) {
        synchronized (priceLock) { this.price = price; }
      public int getQuantity() {
        synchronized (quantityLock) { return quantity; }
      public void setQuantity(int quantity) {
        synchronized (quantityLock) { this.quantity = quantity; }
    Because of the cost of synchronization, I dont want to use "Synchronize", but still want to make sure both threads make their update in a proper manner.what you want above doesn't make much sense to me sorry
    Any ideas?Edited by: gnat on Apr 23, 2010 9:44 AM

  • Java applet three tier architecture

    hi
    i am developing three-tier architecture in java.
    front-end is applet .when button is clicked events are generated , these events passed the parameters to JSP file and these jsp file is getting the data from remote database
    and which is sent back to applet .this is my concept.
    when i am trying to develop this application i am getting some problem what the problem is acess denied from remote database .
    so please guide me in this issue.
    have a nice day
    bye
    Prakash

    Satish Shenoy (guest) wrote:
    : I wanted to know about three tier architecture.
    : I asked many people but couldn't get a proper answer.
    : Can anoyone give me some information about it.
    : Thanks in advance,
    : Satish
    Satish,
    3 Tier architecture is essentially holding different parts of an
    application on different tiers, typically the database is stored
    on one tier, the business logic (and maybe the application) are
    stored on the middle tier and the GUI is found on the client
    tier. In oracle speak this translates into a data server, an
    application server that delivers a Java application to the
    client. N-Tier architecture is a natural progression to this,
    where the middle tier can be split into multiple distributed
    application servers.
    You could say that client-server is 2-tier architecture.
    Hope this helps
    Steve
    null

  • Three(two)-tier architecture - need help

    Hello,
    very need your advice about implementing 3-tier architecture with .NET.
    My intention was to organize the following architecture: server contains data access layer and business layer, and ODP.NET is installed on the server, client requests business layer on the server through .NET Remoting. Business layer on the server returns typed data sets;objects on the server implement interfaces, which return data sets. So, client dlls need to reference only this data sets declaration (which are vendor independent) and interfaces, and no ODP.NET is needed on the client. The problem is that when I generate data source in Visual Studio 2008, it generates also references on ODP.NET, so I cannot reference this project in client application! While I need "pure" data sets, without ODP.NET references, but, at the same time, I want to use auto-generated adapters and not write code manually!
    How can I do it?
    Thanks in advance.. and need your reply!

    For me, I will use Web Services to achieve this. Somehow, you can use other remoting method to do that as well.
    Ming Man

  • Three tier architecture with OBIEE 11g

    With 10g, there was option to install plug in for IIS or j2ee container in web server and connect to BI server in application zone. With this BI environment can be secured behind firewall and allows to implement 3 tier architecture.
    How to accomplish this task in 11g? I have OBIEE 11g server in application zone. Need to configure to allow external users to connect to BI server using https from web server in dmz.

    With 10g, there was option to install plug in for IIS or j2ee container in web server and connect to BI server in application zone. With this BI environment can be secured behind firewall and allows to implement 3 tier architecture.
    How to accomplish this task in 11g? I have OBIEE 11g server in application zone. Need to configure to allow external users to connect to BI server using https from web server in dmz.

  • Folder Locking using java

    Hi All,
    I want to implement the folder locking using java.But i can't find any method to implement my requirement. I find one method to lock a file using FileChannelObject.tryLock() or FileChannelObject.lock() methods of FileLock class. But the main problem is that FileChannel object is coming through only by calling getChannel() method on a RandomAccessFile object or FileInputStream object only.
    If i want to lock a folder i am not able to create the lock on it. So please provide me any example to create a lock on  a directory.
    Thanks in advance.

    JNI isn't magic. It can only call the operating system. The question is, is there really an operating system API that would let you do it.?

  • Using Java Card to perform web login

    I wanna to implement a login system using java card.
    whenever a user goes to the URL, it prompts to the user that he needs to plug in his java card, and the program reads the login token from his card.
    if the token matches with the one in DB, he can then login successfully. Fail otherwise.
    However, I have no idea on what i should do, in the signed applet that reads the token, and how the JavaCard API should be used.
    my card reader is Gemplus GCR410 and the card is GemXpress 211is.
    anyone can give me some hints or sample?

    I'm quite curious as to how to do this also. How does the applet in the browser communicate to the card reader? I have the GemXpresso RAD III development kit and I believe I understand how to develop an applet on the card, but there is no information about how to send the APDU commands to OCF which in turn would send the command to the reader. Any help would be greatly appreciated. Thanks,
    -Justin

  • Creating Web Services using Java Implementation

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

  • How to use Java NIO to implement disk cache for serialized java objects

    Hi,
    I have a cache (implemented as hahstable etc.) that contains java objects (mostly strings) and swaps objects from runtime memory to the disk and back based on some algorithms. Currently, the reading and writing from the disk is implemented using java.io.* package i.e. fileInputstream and FileOutputStream. Essentially, I serialize the java object and write to the disk and the deserialize and give it back to the Hashtable cache.
    The performance of swapping from disk to memory is kinda slow. I have read that memory mapping would improve the performance.
    My idea is to do the following:
    Have one big file mapped to memory. I write the serialized objects to different portions of the file and then read those portions when needed. I can use the MappedByteBuffer for that but then I have the following questions. I will not store objects in the hashtable anymore.
    1. How do I delete things from the cache in the above design i.e. how do I delete portions of a mapped file?
    2. How do I serialize objects using ByteBuffers and then deserialize them? I guess this shouldn't be hard but just want to confirm.
    Do you think this is the right design or should I change? Right now using the old io package, I have a separate file for each object. When using the NIO package, I want to store all objects in a single file in different portions of the file, is that the right way to go?
    As you can see, I am beginner in memory mapped io and need help.

    Have one big file mapped to memory. I write the serialized objects to different portions of the file and then read those portions when needed. I can use the MappedByteBufferThis is a good idea, one that I have worked on. It involves quite a bit of manipulation with temporary buffers and a deep working knowledge of object serialization.
    1. How do I delete things from the cache in the above design i.e. how do I delete portions of a mapped file?The best way to handle this is do a two-step process, cutting the file into two pieces and gluing it back together where the original one is...
    2. How do I serialize objects using ByteBuffers and then deserialize them? I guess this shouldn't be hard but just want to confirm.It is hard. Wrapping the streams and making the IO work properly is not the challenge however. The hard part comes in hacking the object streams. The object input/output streams use a ClassDescriptor object which only gets written once/ read once. This shouldn't be a problem if you will read/write the entire file at once, but will bring you grief if you want random access to your objects. You will also need an indexing mechanism to support random access.
    Do you think this is the right design or should I change? Right now using the old io package, I have a separate file for each object. When using the NIO package, I want to store all objects in a single file in different portions of the file, is that the right way to go?I guess it depends on your needs. Do you require random access to objects? NIO provides some performance gains, but mostly for very large amounts of data (>10M in my experience).
    You can always write all your objects into the same file using normal io techniques and you can still generate an index and acheive random access. It might be easier...
    Good luck

  • We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    Anyone any ideas to help please?

Maybe you are looking for

  • Loop through all open documents not performing some actions

    I have a loop that imports XML, then Exports each page individually, then has a SaveAs dialog for the indd, then closes the active document. The import XML works, the SaveAs works, and the close works but the loop skips over the PDF part. Is it becau

  • Why does my web browser constantly blink when in a site that uses java?

    Hi when visiting a site that uses java my web browser blinks when ever there is an update to the information on the screen. Is there something i should change in my java preferences? thanks

  • How do i change my iPhone name?

    how do i change device name, specifically iPhone 4s?

  • Generic and checked collections

    Yet another problem. This afternoon, i try to use checked collection (Collections.checkedMap(...)) with a parameterized type of parametrized types. Examples : Map<String,Integer> map=Collections.checkedMap( new HashMap<String,Integer>(),String.class,

  • ITunes 10.2.1 does not decode mp3 files properly

    Hello, I have recently posted the results of my MP3 decoder test, covering iTunes, Winamp, Windows Media Player and Foobar2000: http://blog.szynalski.com/2011/03/16/itunes-10-2-1-fails-to-decode-mp3-files-pro perly/ The result is that iTunes 10.2.1 (