Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    89
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Newbie needs help with terminology and theories

    Hello there,

    I'm new to Java. I'm really struggling and getting confused about things I am looking into.

    OK, I am evaluating systems to integrate with our current system at work. We need to use JDBC type 4.

    Now to use JDBC type 4 do you have to install this within a Java Virtual Machine? And in-turn, does the Java VM have to be running on JDK? Which in turn has to be running on a J2EE server?!? See how I am getting confused here!

    Also, are glassfish and tomcat types of J2EE servers? Can glassfish and tomcat utilise the JDBC type 4 drivers themselves within their own VM's? Or in-order to use the JDBC Type 4 does J2EE HAVE to be present?

    Or is it true to say that glassfish and tomcat run on the J2EE environment meaning that JDK is present and there a JVM is present....hence the JDBC type 4 can be used regardless?

    Its very confusing all this!

    any help would be great to clear this mess up. My head is going to blow!

    regards
    Jp

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    Quote Originally Posted by jpmad4it View Post
    Now to use JDBC type 4 do you have to install this within a Java Virtual Machine? And in-turn, does the Java VM have to be running on JDK? Which in turn has to be running on a J2EE server?!? See how I am getting confused here!
    if u are going to use a jdbc type 4 driver u don't have to install anything...simply drop the driver jar in the classpath for ur application and ur good to go. for most applications a jre is sufficient but, j2ee servers compile jsps at runtime and hence require a jdk installation.
    Quote Originally Posted by jpmad4it View Post
    Also, are glassfish and tomcat types of J2EE servers? Can glassfish and tomcat utilise the JDBC type 4 drivers themselves within their own VM's? Or in-order to use the JDBC Type 4 does J2EE HAVE to be present?
    this entirely depends on how you want to design ur application. almost all j2ee servers allow you to define container managed datasources (meaning the j2ee server takes care of maintaining a connection pool on ur behalf and lets u get a connection using a jndi lookup) and declare them as resource-references in ur application.
    but, you could ignore this feature completely and setup ur own connection pool or use the driver to connect to the database directly.
    Quote Originally Posted by jpmad4it View Post
    Or is it true to say that glassfish and tomcat run on the J2EE environment meaning that JDK is present and there a JVM is present....hence the JDBC type 4 can be used regardless?
    yea
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • Users who have thanked shyam for this post:

    jpmad4it (08-15-2008)

  • #3
    New Coder
    Join Date
    Jan 2006
    Posts
    89
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by shyam View Post
    if u are going to use a jdbc type 4 driver u don't have to install anything...simply drop the driver jar in the classpath for ur application and ur good to go. for most applications a jre is sufficient but, j2ee servers compile jsps at runtime and hence require a jdk installation.

    this entirely depends on how you want to design ur application. almost all j2ee servers allow you to define container managed datasources (meaning the j2ee server takes care of maintaining a connection pool on ur behalf and lets u get a connection using a jndi lookup) and declare them as resource-references in ur application.
    but, you could ignore this feature completely and setup ur own connection pool or use the driver to connect to the database directly.

    yea
    Ok I see, thanks. I have a diagram I have thrown together to show my proposed system architecture.



    We have to use the JDBC driver type 4 to connect to our IDMS via TCP/IP from the web (using TYPO3). I know that this is probably not the best system, but I have to evaluate all possible routes. The problem lies in converting the PHP to Java - hence the PHP-Java bridge. Can you see where my questions originate from now?

    I don't understand whether the JDK lies within the J2EE environment, or whether J2EE is needed or not? I have read that the PHP-Java bridge allows PHP to run in any J2EE environment and vice-versa. The bit i dont understand is that apache tomcat is the choice of server - can this be replaced by the J2EE server?

    Man why can't I get my head around this stuff!!

    Another option we have is to use websphere and develop our website using JSP instead of PHP, could you throw me together a quick diagram to show how websphere would fit in with the following flow, i.e. would the JDK and JSP be within the websphere environment?? Can JDBC Type 4 be used in a websphere environment?

    IDMS---JDBC type 4---JVM ---JDK---J2EE---JSP---Web client

    Sorry to be a pain, but if you could help you wouldnt believe how much of a massive help you're being

    regards
    Jp

  • #4
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts
    Quote Originally Posted by shyam View Post
    if u are going to use a jdbc type 4 driver u don't have to install anything...simply drop the driver jar in the classpath for ur application and ur good to go. for most applications a jre is sufficient but, j2ee servers compile jsps at runtime and hence require a jdk installation.

    this entirely depends on how you want to design ur application. almost all j2ee servers allow you to define container managed datasources (meaning the j2ee server takes care of maintaining a connection pool on ur behalf and lets u get a connection using a jndi lookup) and declare them as resource-references in ur application.
    but, you could ignore this feature completely and setup ur own connection pool or use the driver to connect to the database directly.

    yea
    I respect your patience
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.

  • #5
    New Coder
    Join Date
    Jan 2006
    Posts
    89
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tagnu View Post
    I respect your patience
    I know I do too, and that of anyone else who can help

    sorry for the newbie-ness!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •