Java Thin Client Questions

If you want to do Listener Load Balancing and you are using a Java Thin client the URL needs to only contain the SERVICE_NAME and not the INSTANCE_NAME. Are you suppose to specify all of the addresses or are you just suppose to pick one?
ie
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=node1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=node2)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=eric)(SERVER=DEDICATED)))

Hi,
You will have to add all the addresses. Look at the following extract:
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=node2-vip)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=eric)(SERVER=DEDICATED)))
When users connect to the database using the eric as shown above, they are actually connecting to database using the Oracle 10g Service named eric. Users need not to know which cluster node or database instance is serving the eric service. You shoudl always use node1-vip and node2-vip in the address list not the physical hostname/IP. In case node1 goes down user can still connect to the database if service eric is configured to run on both nodes.
Just setting the LOAD_BALANCE=ON will not balance the load if the service being used is not configured to run on cluster nodes listed in the tns alias's address list.
Any correction is welcome...
-Harish Kumar Kalra

Similar Messages

  • Java thin client

    Hi all,
    Do all client connections including thin java are being captured from the database server side listener.log?
    Thanks a lot,
    zxy

    I believe it is the default, yes. You can control whether logging is done and what is logged. You may need to read some documentation, though.
    http://docs.oracle.com/cd/B19306_01/network.102/b14212/troublestng.htm#i466924
    Justin

  • JDBC Thin Client for Oracle 8i 8.1.7

    Hi,
    Trying to Driver.getConnection(.....); to an Oracle 8i 8.1.7 DBMS. My client: NT4 and JDK1.3.1 and 100% Java Thin Client "classes12.zip" and "nls(?)_classes12.zip" for JDk 1.2.x
    getConnection(....) is is timing out and exception says "network adapter could not establish connection....". No doubt, the paramters of getConnection(<parameters>) are valid and correct.
    Is it really because the downloaded classes are only for JDK 1.2.x and do not work with jdk1.3.1? In this case I will install jdk 1.2.x again at client host.
    Or is there another thing I have not concerned yet? Note I CAN connect to the host the Oracle 8i DBMS is running on (via BEA Jolt to several Tuxedo services as well as via an HTTP request to an CGI script). So the naming service works. Also te host is alive. A collegue confirmed that the database i want to connect to is also alive and running.
    Any experienced JDBC programmer who can help me?
    Greetings from Germany, hans

    Hi,
    If you get this error, check the follwing things,
    1. make sure you created a listner for your database.
    2. make sure the created your DB listner is up & running as service.
    3. try to connect to database & see that that DB is open for e-transactions (make sure the DB is not in SHUTDOWN mode).
    These checks will solve your problem.
    Good luck,
    Rajesh Singh.

  • Linux thin client

    I have a dual boot Linux/NT 2k machine. On NT, I can connect using the Java thin client to a database running on NT 2k. The same code on Linux give me 'The Network Adapter could not establish the connection' error when I try to establish a connection. From Linux, I can ping the database box and telnet to the Oracle listener port on the database box. Anyone have suggestions?
    thanks

    Some of the new features of Windows Server 2008 Terminal Services, such as RemoteApp, require Remote Desktop Client (RDC) 6.0 or 6.1 on the client side. RDC 6.0 is currently available for Vista and XP only. When Windows Server 2008 is released, RDC 6.1 will be made available for these platforms as well. RDC 6.0 and 6.1 are not available for Windows CE, and will not be a part of the Windows CE 6 release.
    The rdesktop project is Open Source so it might be extended at any time, but currently (as per http://www.rdesktop.org/) it is intended for "Windows NT Terminal Server and Windows 2000/2003 Terminal Services". Not for Windows Server 2008. This means it is compatible with RDC 5.x, not with RDC 6.x. Since Windows Server 2008 is compatible with older clients, rdesktop should be able to connect to it, but you will not be able to utilize the new features such as RemoteApp.
    What this means is that in order to do application publishing on these platforms you will either have to continue using Citrix or alternatives such as Ericom PowerTerm WebConnect, Provision Networks VAS, 2X, etc. For more information about this see this: http://ericomguy.blogspot.com/2007/10/are-windows-server-2008-terminal.html

  • Is EJB Java's solution for Thin Clients??

    I want to create an API that controls my odbc layer and place it on my server, not the clients.
    What is the best java solution to create thin client java applications?

    Well that's a big question but I'll give it a go. Use J2EE and let your clients be web browsers. Do all your work on the application server with servlets, JSPs and EJBs. That's about as thin as you can get. Browsers don't give you the best interface in the world but you gain:
    1> No 10meg JRE installation on each client machine.
    2> No worrying about the JRE version.
    3> All upgrades occur near you so no client version to worry about when you make changes.
    blah blah blah

  • Distributing a Java EE Application Client (Thin Client)

    Hi,
    I'm following the instructions in Section 4 Developing a Java EE Application Client (Thin Client) in Oracle® Fusion Middleware Programming Stand-alone Clients for Oracle WebLogic Server, 11g Release 1 (10.3.1), Part Number E13717-01.
    I packaged the application client in an ear. If I set up my environment using C:\bea10\wlserver_10.3\server\bin\setWLSEnv.cmd. I can extract the application client using a command line like:
    java weblogic.ClientDeployer myear.ear myclient
    I can execute the client using a command line like:
    java weblogic.j2eeclient.Main myclient.jar t3://localhost:7003
    However, I would like to run the application client on a client machine (i.e., a machine without WebLogic installed). I thought I could use one of the wl*client.jar files such wlclient.jar, wlfullclient.jar, etc. I started with wlfullclient.jar.
    If I try to extract the application client with a command line like
    java -classpath wlfullclient.jar weblogic.ClientDeployer myear.ear myclient
    I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/bea/xml/XmlException
    at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:143)
    at weblogic.descriptor.BasicDescriptorManager.getDescriptorFactory(BasicDescriptorManager.java:183)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:320)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301)
    at weblogic.ClientDeployer.findAltDDUri(ClientDeployer.java:210)
    at weblogic.ClientDeployer.processClientJar(ClientDeployer.java:107)
    at weblogic.ClientDeployer.processClientJar(ClientDeployer.java:75)
    at weblogic.ClientDeployer.main(ClientDeployer.java:43)
    Caused by: java.lang.ClassNotFoundException: com.bea.xml.XmlException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 12 more
    Next I tried using the jar previously extracted on the server and tried to run it using:
    java -classpath wlfullclient.jar weblogic.j2eeclient.Main myclient.jar t3://localhost:7003
    I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/j2ee/descriptor/wl/WeblogicApplicationClientBean
    at weblogic.j2eeclient.Main.fillEnvironment(Main.java:326)
    at weblogic.j2eeclient.Main.run(Main.java:185)
    at weblogic.j2eeclient.Main.main(Main.java:924)
    Caused by: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.wl.WeblogicApplicationClientBean
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 3 more
    Is it possible to extract and execute an application client on a machine without WebLogic server? If so, what jars do I need? If not, why not?
    I'm testing using WebLogic 10.3.1 on a Windows XP SP2 machine using JDK 1.6.0_05.
    Thanks in advance,
    Keith

    Hello,
    I tried doing pre-compilation of jsps using the weblogic.appc and getting the below exception.
    Can any one advise the jar file containing the below class file so that I can add in the classpath and try for it.
    java.lang.ClassNotFoundException: com.bea.xml.XmlException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:137)
    at weblogic.descriptor.BasicDescriptorManager.getDescriptorFactory(BasicDescriptorManager.java:171)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:303)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoa
    r2.java:788)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.ja
    :409)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorL
    der2.java:759)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java
    68)
    at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:311)
    at weblogic.application.compiler.CompilerCtx.setApplicationDescriptor(CompilerCtx.java:138)
    at weblogic.application.compiler.AppcUtils.setDDs(AppcUtils.java:142)
    at weblogic.application.compiler.flow.DescriptorParsingFlow.compile(DescriptorParsingFlow.java:57)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.EARCompiler.compile(EARCompiler.java:49)
    at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
    at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.Appc.runBody(Appc.java:181)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.Appc.main(Appc.java:192)
    at weblogic.appc.main(appc.java:14)
    com.bea.xml.XmlException

  • Need java plugin for thin client like HP compaq t 5000

    Hello everybody,
    I need to know if there any java plugin for Internet Explorer on windows CE.net on a thin clinet like HP compaq t5000, my problem is that i have an oracle form that access to oracle databse, on the client i have thin client HP compaq t5000, oracle support told me to post my problem in java forums since there's no jinitiator support for windows ce.net, as the oracle forms is based on java applet, so it could be a solution if i can find a java plugin for windows ce.net on my thin client like that i can see the oracle form.........................
    please can anyone help me with a link where i can download a java plugin for windows ce.net and how to install it on such operating system...................
    Thank you in advance

    hello again, thank you for ur response, but please can u help me with how i can install the Creme jvm that support applets on the hp compaq t5000 under windows ce.net, because actually i don't have any idea on how we install software on such machine, coz it seems the isntallation on them it different than the normal windows xp...... i download the demo creme jvm zip file and i 'm not able to install it, if it is possible can u provide me with step by step instruction, just need to test my application on the demo version first, thank u in advance.....

  • Java Fat Client App Move from 1.3.1_07 to 1.3.1_20 Question

    We have a third-party java fat client GUI front-end application here at work that is no longer under support from the vendor (they've moved to a web-based version to which we haven't yet upgraded). The version we have was originally developed and delivered with JRE 1.3.1_07, which we continue to use and push with our new build versions. Since 1.3.1_07 doesn't have the updated DST tables, the app displays the wrong time on its GUI. To upgrade to JRE 1.3.1_20, which does have the updated DST tables, can we simply copy the JRE folder and its subfolders and their contents over the 1.3.1_07 JRE folder we use in our builds? Or do we need to do something more than that? (I've done a low-level test of that and it seems to work...)

    A regular JRE installation will create a new directory; the old one can be deleted. In the Windows registry (if you are using Windows) you'll find entries to all versions, which you can clean up also. You will find versions 1.3=1.3.1_07 etc.
    Many software, especially application servers, come with their own java packaged as subdir. So also your solution is possible.
    At the moment you are slightly misleading the systems about the actual version you are using. So I would opt for a new install. Also a newer version (I am already using 1.6) should be considered. If it works, everything works faster.

  • How to use authid with rwservlet via WebLogic Thin Client

    1. Using J2EE Thin Client for WebLogic (WL) to submit interactive requests for Oracle Reports (App Server 10g) running on another server without SSO.
    2. After starting basic Infrastructure, we start rwserver in batch mode (no other mid-tier components are used).
    3. It appears that the cgicmd.dat file in the Thin Client conf directory on the WL server controls the DB access with the key:connect string info it has.
    4. We had been allowing the testers to come in via the web through a SunOne (iPlanet/Netscape) web server instance, which in turn connects to the WL server running the Thin Client instance.
    5. We noticed that anyone could run rwservlet to view report status with the showjobs command via a URL through the same mechanism as point #4 above, and were concerned about security of the reports - "bad".
    6. Then someone realized the showmap command could also be specified, and thus see the DB connect string (Id/pw/SID) - "worse".
    I researched securing Reports, and read through the white paper, "Securing Oracle9i Reports", and although it discusses security without using SSO, all it says is "users accessing a secured instance of Oracle9iAS Reports Services will be challenged to identify themselves by the Reports Servlet, using its own authentication mechanism (as with Reports6i)", but I can find no explanation of how that works, nor how it would work with the WL Thin Client.
    Questions:
    1. How are the Id's/passwords set up under AS 10g "as with Reports6i" in this environment going through the WL Thin Client?
    2. Is there anything else that needs to be done to secure the created reports, and the connect string info (i.e. using authid with rwservlet?showjob, and not allowing the rwservlet?showmap to be executed at all)?
    TIA,
    ROC

    the JDBC Developer's Guide (11gR2)
    gives an example in chapter 9 under "JDBC Thin Driver Support for Encryption and Integrity", sub- "Setting Encryption and Integrity Parameters in Java"
    from Oracle SQL Devloper, without redirecting the client to use the OCI/thick driver, choose, new database connection, connection type Advanced. add the entry from the example noted above to the Custom JDBC URL form.
    for example:
    Properties prop = new Properties();
    prop.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL,"REQUIRED");
    prop.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES,"(AES128)");
    OracleDataSource ods = new OracleDataSource(); ods.setProperties(prop); ods.setURL(jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxxx)(INSTANCE_NAME=xxxx))));
    Connection conn = ods.getConnection();
    strange side note!, we could not get this to encrypt unless the sqlnet.ora file included the SQLNET.ENCRYPTION_SERVER=required. if this was set to default(accepted), and even though the jdbc thin client properties set to required, the network traffic was still clear text.
    good luck

  • How to run a Java EE client application ?

    Greetings,
    I have a Java EE Application Project created with Eclipse (OEPE) and I don't know how to run it ? I asked the question on the OEPE forum but didn't manage to have any pertinent answer. I have also looked at Developing Java EE Application Clients (Thin Clients) in the Programming Stand-alone Clients book and tried to use commands as weblogic.clientDeployer and weblogic.j2eeclient.Main but haven't been able to get them working. And anyway, they are not done to be used in Eclipse as I didn't find any ant tasks for them.
    Many thanks in advance for any help.
    Nicolas

    I have an ear with the following content:
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/classes/
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/lib/
    6843 Thu Apr 23 12:20:52 CEST 2009 APP-INF/lib/ww204-jpa.jar
    0 Thu Apr 23 12:20:52 CEST 2009 META-INF/
    542 Thu Apr 23 12:19:44 CEST 2009 META-INF/application.xml
    25 Thu Apr 23 12:20:52 CEST 2009 META-INF/MANIFEST.MF
    659 Mon Apr 20 18:37:56 CEST 2009 META-INF/weblogic-application.xml
    1220 Thu Apr 23 12:20:52 CEST 2009 ww204-client.jar
    4040 Thu Apr 23 12:20:52 CEST 2009 ww204-ejb.jar
    I'm running the following command:
    java -classpath C:\bea\wlserver_10.3\server\lib\weblogic.jar weblogic.ClientDeployer ww204.ear ww204-client
    This creates the jar with the following content:
    764 Thu Apr 23 12:04:42 CEST 2009 Main.class
    0 Thu Apr 23 12:20:52 CEST 2009 META-INF/
    351 Thu Apr 23 12:10:08 CEST 2009 META-INF/application-client.xml
    43 Thu Apr 23 12:02:26 CEST 2009 META-INF/MANIFEST.MF
    And of course, when I try to run the client using the command:
    C:\Users\nicolas>java -classpath C:\bea\wlserver_10.3\server\lib\weblogic.jar weblogic.j2eeclient.Main ww204-client t3://localhost:7001
    it raises the following exception:
    java.lang.Exception: Stack trace
         at java.lang.Thread.dumpStack(Thread.java:1206)
         at weblogic.j2eeclient.Main.run(Main.java:194)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    java.lang.Exception: Stack trace
         at java.lang.Thread.dumpStack(Thread.java:1206)
         at weblogic.j2eeclient.Main.run(Main.java:196)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.j2eeclient.Main.run(Main.java:201)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    Caused by: java.lang.NoClassDefFoundError: fr/simplex_software/slsb/FacadeRemote
         at Main.main(Main.java:10)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.j2eeclient.Main.run(Main.java:201)
         at weblogic.j2eeclient.Main.main(Main.java:928)
    The ww204-client.jar was created as an OEPE J2EE Application Project and it was extracted with weblogic.ClientDeployer from the ear exported by OEPE. But it doesn't contain the required classes.

  • J2SE JRE on a thin client problems!!!!!!!!!!

    HELP!
    I would like some help regarding a situation where a webstartable application totalling approx 400k as a prototype app is being sent to a thin client. This thin client is a Wyse computer with a 96mb flash card for its hard disk space. The Java app uses the Swing api and JBoss client jars. The application works smoothly on WinNT or Win2000, 256mb, 700Mhz PC installed with J2SE but the problem is that the target client has a Windows NT Embedded OS which only gives around 7.5mb free hard disk space on its flash card. This is a problem as the client OS needs Java 2 JRE which is a whopping 20.8mb. WebStart when installed totals to approx 1.9mb on a PC. So, the complete deployment for the application would reach approximately 24mb going way past the 7.5mb max limit. The client does have IE+MSJava but uninstalling this JVM is not an option as apparently, it is being used for some other app. I am aware of the option of upgrading the machine but that won't go down too well as it will involve upgrading hundreds of clients. Also, this demo needs to show off Swing to the max so that such an upgrade decision can be made. Getting the application+JRE+WebStart deployed within the limit means that there will be a chance for Java to grow on both the client and server side in Carphone Warehouse, one of the top mobile phone retail companies in the UK. However, if this is not achieved then the alternative is that IE will be used to provide an HTML-based limiting, slow user interface for our users in our stores.
    A related question I have is whether J2Micro Edition is an avenue that may be useful to explore. I have looked at it a little and as a guess I'd say that the configurations I have found are for too simple for the device targetted by us as it is near enough to a PC's spec except that it has limited chip power, hard disk and memory space.
    Please could someone help us with this as it would really promote Java in our company.
    regards,
    Amar Syed
    Carphone Warehouse UK
    Email: [email protected]

    Well, here are a few suggestions, although I'm not sure how feasible they are at this point...
    1) Is it essential that you use WebStart and have the code on the client? That's not really a "Thin client" solution... ;-) Can you refactor your app as a JApplet, and just use the java plugin to run it (~5MB)? This would still enable you to use swing. (You could even just have a "launching" applet in a browser that launches your main GUI JFrame in front of the browser.)
    2) I've never used this product, but it's worth a mention - WebCream, by CreamTect (http://www.creamtec.com/webcream/) - it runs your swing app on the server, and sends a DHTML representation of it to the client's browser. Looks pretty convincing from their examples...
    3) J2ME is probably not an option, since it doesn't support Swing - it has its own limited API for displaying stuff on mobile devices' small screens.
    4) Failing that, there's still server-side java - the JSP/Servlet option, creating your own customized HTML (or super-interactive DHTML) pages and sending them to a browser on the client machine.
    Hope some of this helped a little! Let us know how you get on.
    M

  • Runtime error - class not found using JDBC driver and thin client

    Hi,
    We are running a small Java application on a Sun server which acts as a thin client connecting to an Oracle 8i server running on a different server.
    JDK version: 1.3.1_01
    OS version: Solaris 7
    JDBC classes file: classes12.zip
    It compiles fine, but get a runtime error (the DriverManager.registerDriver method )
    cruncher [40]% javac -classpath /export/home/mrscot/classes12.zip JDBCtest.java
    cruncher [41]% java JDBCtest
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    at JDBCtest.main(JDBCtest.java:7)
    cruncher [42]%
    Program:
    import java.sql.*;
    import java.math.*;
    class JDBCtest {
    public static void main (String args []) throws SQLException {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin@xxxxxxxxx:1521:xxxx", <userid>,<password>);
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery (".............");
    while (rset.next ())
    System.out.println (rset.getString ("......."));
    rset.close();
    stmt.close();
    conn.close();
    } catch (Exception e) {
    System.out.println("Error: " + e);
    Any ideas? Probably something very, very stupid I'm overlooking!
    Thanks
    Scotty ([email protected])

    Supplementary question:
    Hi,
    We are running a small Java application on a Sun server which acts as a thin client connecting to an Oracle 8i server running on a different server.The Oracle version is 8.1.6
    Will the 'classes12.zip' for 8.1.7 work with
    1.3.1 of the Java JDK, and Oracle 8i 8.16 ??
    Thanks Scotty

  • Java Usage Concept Questions

    I have a java Command line running program. Which allow input/edit data of clients and store them into a Flat file. The problem is that i have to make a GUI, ( a thin web based client ) and using only HTML and Javascript.
    The next step is the db should be frontended by servlet or JSP that interact with thin client to perform the database retrievals.
    Now my concept Questions:
    1. Is it possible to communicate to a Java Program using HTML and Javascript? If so, any exampler, pointers?
    2. I was thinking of using HTML and Javascript to directly modify the Database. ( Since it is a flat file therefore nothing more than a txt file ) But isn't this side stepping the problem?
    3. If i could modify the Flat file using HTML and Javascript only. Why would i need JSP and Servlets? And if i could do it with JSP and Servlets only why would i need the think client ( HTML bit )?
    If all of above 3 are correct ( conceptialy ), what is the orginal command line java program for?
    The last question is why i think i have the concept wrong. Please i am new to web programming so feel free to point out any error.

    Hello,
    You a little off on a few things. let me explain what each is used for to give you a better idea what each i used for.
    HTML - Used to format data. Is static and can't do any File I/O and such
    Javascript - Is usaually used for client side validation and some cool effects.
    JSP - Is a scripting language that allows you to execute code on the server to create dynamic content and server side stuff like saving to a DB or a file
    Servlets - Kinda like JSP but gives you more control over a few things. Usaually used for form processing and Servlet/Applet communication
    for you application i would probably embed HTML/JavaScript for layout and validation into a JSP page for your display pages.. then build JSP pages to handle all you business logic and processing.
    --Zer0C00L                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • XMII and Multiple Thin Clients

    Hi,
    I am thinking of deploying multiple thin clients, each accessing a single xMII instance and am posting a general "broad" question.  Although probably not an "xMII" related thread, but any others using xMII content on thin client(s)?
    Any issues or pointers or suggestions or "not to do's" with content / java script / applets / performance / refresh?
    Thanks all,  Rgds Kevin.
    Edited by: Kevin Hibbins on Apr 28, 2008 10:58 AM

    A thin client is essentially a Web Browser, right? Or are you looking @ something else as well?
    Just to add , this is from the MII help - "The following section provides a visual overview of the various applets provided with SAP xMII.  By combining and linking these building blocks, incredibly powerful decision support applications that bridge a variety of disparate data sources can be quickly created and deployed on thin client platforms such as Web browser, personal digital assistants (PDAs), or other Web-aware mobile devices and internet appliances".
    Help me understand if you have anything specific in mind when you say 'thin clients'.

  • Fat Client and Thin Client

    Hello, everyone
    I am a newbie with websphere 5. I am wondering if anyone know fat clients(Swing GUI) work with websphere. I know thin clients(web-based interface) work with websphere. My scenario is like this and this is all experimental purposes:
    I want to program a Swing GUI interface as the client that accesses the enterprise javabeans that is installed on websphere. So the Swing GUI is the client and Websphere is the server, which makes it a 2-tier Application. My question is basically, does websphere only work with web-based application or does it work with both desktop application clients and web-based application clients also?
    Any Ideas?

    Thanks, that's the kinda of straight answer I am looking for. I have been researching for this answer to this question for a long time and even posted several similar questions on Java forum, but no one seemed to have a straight answer. What I was thinking of programming is:
    client/server program using websphere.
    Client:
    GUI interface using Swing that is just like a regular desktop application and not a web browser (I notice the most common application using websphere are web based applications like portals).
    Server:
    Using Websphere to accept connection when requested by the client and act as a bean container, which holds EJBs. The EJBs will connect to the database (mssql server) to pull data from.
    Does this sound OK and can this be done using Websphere? I am using Websphere 5.
    Thank you, I am just a newbie in j2ee, just trying to get started in this area of programming.

Maybe you are looking for