Server side database access with Applets?

Does anyone know how to do this without any JDBC or any other expensive, server heavy and special requirements?
Who could be interested in this?
Am i the only one?
Most internet hosts, rented i mean, do not give many possibilities you have PHP and not much more to access a MySql or other database engine.
If you want to build an aplication, a decent one, you must use java Applet because server side Java is not very interesting and is very expensive.

Personally, I think server-side Java is very interesting and would disagree that a decent web application necessarily requires applets.
I use Supplehost for their reliable and inexpensive Java hosting service.
Many sites and applications make use of cross-browser DHTML and Java server technologies (JSP and servlets) are ideal for building and delivering data-driven DHTML pages.
Of course applets have their advantages but, without a server providing access to data in a database, they're effectively working just as a static web page.
There are other interfaces to databases: for example, Microsoft SQL Server provides the means to interrogate SQL databases through the underlying web server and to have the results returned in XML format.
For me, J2EE provides the best tools for developing data-driven applications and the question over which client should do the presenting is more often one of how best to cater for the intended audience: cross-browser DHTML is best in some circumstances, applets in others, Macromedia Flash in others.
Check out Supplehost's site: you get SSH and secure FTP access to a shared server, can install and run servlets and JSP applications and upload, configure and restart your applications very easily:
http://www.supplehost.com
Chris.

Similar Messages

  • Untrusted server cert --- JSSE usage with applets

    Hi all,
    I am using JSSE client ( uses applets) connects to JSSE server.
    I am getting error: untrusted server cert
    I am able to connect JSSE server with the JSSE client with out applets with same self signed certificate.
    I have read some where that applets by default refer cacerts instead of jssecacerts. Thats why i have added certificate to cacerts also.
    I am sending errors (both at client and server side) and html file used for applets at client side.
    machName portno port:127.0.0.1 2002 2002
    found key for : alias
    SunX509: skip default keystore: java.security.AccessControlException: access den
    ied (java.util.PropertyPermission javax.net.ssl.trustStore read)
    trigger seeding of SecureRandom
    done seeding SecureRandom
    Machine Name is 127.0.0.1
    %% No cached client session
    *** ClientHello, v3.1
    RandomCookie: GMT: 1009970996 bytes = { 101, 168, 120, 86, 239, 175, 47, 195, 7
    4, 19, 250, 73, 236, 219, 251, 102, 102, 151, 188, 95, 121, 105, 96, 173, 182, 3
    3, 212, 30 }
    Session ID: {}
    Cipher Suites: { 0, 9 }
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 45
    0000: 01 00 00 29 03 01 3C 33 EF 34 65 A8 78 56 EF AF ...)..<3.4e.xV..
    0010: 2F C3 4A 13 FA 49 EC DB FB 66 66 97 BC 5F 79 69 /.J..I...ff.._yi
    0020: 60 AD B6 21 D4 1E 00 00 02 00 09 01 00 `..!.........
    AWT-EventQueue-1, WRITE: SSL v3.1 Handshake, length = 45
    [write] MD5 and SHA1 hashes: len = 47
    0000: 01 03 01 00 06 00 00 00 20 00 00 09 06 00 40 3C ........ .....@<
    0010: 33 EF 34 65 A8 78 56 EF AF 2F C3 4A 13 FA 49 EC 3.4e.xV../.J..I.
    0020: DB FB 66 66 97 BC 5F 79 69 60 AD B6 21 D4 1E ..ff.._yi`..!..
    AWT-EventQueue-1, WRITE: SSL v2, contentType = 22, translated length = 16340
    AWT-EventQueue-1, READ: SSL v3.1 Handshake, length = 670
    *** ServerHello, v3.1
    RandomCookie: GMT: 1009970996 bytes = { 225, 193, 138, 42, 75, 55, 82, 98, 128,
    65, 108, 86, 20, 94, 198, 33, 33, 115, 40, 27, 29, 0, 117, 169, 21, 60, 48, 113
    Session ID: {60, 51, 239, 52, 239, 124, 121, 133, 111, 116, 246, 8, 10, 20, 99,
    150, 141, 208, 153, 124, 223, 176, 115, 34, 158, 29, 153, 32, 194, 198, 217, 12
    6}
    Cipher Suite: { 0, 9 }
    Compression Method: 0
    %% Created: [Session-1, SSL_RSA_WITH_DES_CBC_SHA]
    ** SSL_RSA_WITH_DES_CBC_SHA
    [read] MD5 and SHA1 hashes: len = 74
    0000: 02 00 00 46 03 01 3C 33 EF 34 E1 C1 8A 2A 4B 37 ...F..<3.4...*K7
    0010: 52 62 80 41 6C 56 14 5E C6 21 21 73 28 1B 1D 00 Rb.AlV.^.!!s(...
    0020: 75 A9 15 3C 30 71 20 3C 33 EF 34 EF 7C 79 85 6F u..<0q <3.4..y.o
    0030: 74 F6 08 0A 14 63 96 8D D0 99 7C DF B0 73 22 9E t....c.......s".
    0040: 1D 99 20 C2 C6 D9 7E 00 09 00 .. .......
    *** Certificate chain
    chain [0] = [
    Version: V1
    Subject: CN=prasadv, OU=nms, O=mindtree, L=bangalore, ST=karnataka, C=IN
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@479809
    Validity: [From: Wed Jan 02 14:46:52 GMT+05:30 2002,
                   To: Thu Jan 02 14:46:52 GMT+05:30 2003]
    Issuer: CN=prasadv, OU=nms, O=mindtree, L=bangalore, ST=karnataka, C=IN
    SerialNumber: [    3c32d004 ]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 71 00 A6 5A 95 8D 02 1F FD DF 51 55 73 14 59 C2 q..Z......QUs.Y.
    0010: 51 40 D5 38 BE 0C 52 17 44 01 CC 6B 72 05 69 94 [email protected].
    0020: 9E 01 2D C5 E4 FF D9 B6 73 8F 0C 84 6F 2A 4B A4 ..-.....s...o*K.
    0030: 42 B7 EE E2 B2 32 A6 64 28 6B A2 F1 91 A8 D2 36 B....2.d(k.....6
    0040: 09 E8 50 72 1F 25 77 B5 0D 92 48 96 87 EE 76 AF ..Pr.%w...H...v.
    0050: 67 FD BF 7F 77 35 36 2F F2 2F 2D 9E 1F 2C F2 8C g...w56/./-..,..
    0060: BF B6 44 9F 49 EE E8 E3 13 ED EC 3D 17 1B EC 28 ..D.I......=...(
    0070: 6A 37 36 37 BC C3 36 3F 76 22 FF 1C 02 AB 90 0A j767..6?v"......
    AWT-EventQueue-1, SEND SSL v3.1 ALERT: fatal, description = certificate_unknown
    AWT-EventQueue-1, WRITE: SSL v3.1 Alert, length = 2
    IO exceptionuntrusted server cert chain
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission
    exitVM)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:272)
    at java.security.AccessController.checkPermission(AccessController.java:
    399)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.lang.SecurityManager.checkExit(SecurityManager.java:765)
    at java.lang.Runtime.exit(Runtime.java:91)
    at java.lang.System.exit(System.java:701)
    at Connection.<init>(Connection.java:94)
    at Main$2.actionPerformed(Main.java:373)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14
    50)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1504)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:378)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:216)
    at java.awt.Component.processMouseEvent(Component.java:3717)
    at java.awt.Component.processEvent(Component.java:3546)
    at java.awt.Container.processEvent(Container.java:1164)
    at java.awt.Component.dispatchEventImpl(Component.java:2595)
    at java.awt.Container.dispatchEventImpl(Container.java:1213)
    at java.awt.Component.dispatchEvent(Component.java:2499)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
    at java.awt.Container.dispatchEventImpl(Container.java:1200)
    at java.awt.Window.dispatchEventImpl(Window.java:912)
    at java.awt.Component.dispatchEvent(Component.java:2499)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
    3)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.Dialog.show(Dialog.java:370)
    at Main.validate(Main.java:434)
    at Main$MenuItemListener.actionPerformed(Main.java:729)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14
    50)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1504)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:378)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250
    at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
    d(BasicMenuItemUI.java:886)
    at java.awt.Component.processMouseEvent(Component.java:3717)
    at java.awt.Component.processEvent(Component.java:3546)
    at java.awt.Container.processEvent(Container.java:1164)
    at java.awt.Component.dispatchEventImpl(Component.java:2595)
    at java.awt.Container.dispatchEventImpl(Container.java:1213)
    at java.awt.Component.dispatchEvent(Component.java:2499)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
    at java.awt.Container.dispatchEventImpl(Container.java:1200)
    at java.awt.Component.dispatchEvent(Component.java:2499)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
    3)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
    errors at server side :
    trustStore type is : jks
    init truststore
    adding private entry as trusted cert: [
    Version: V1
    Subject: CN=prasadv, OU=nms, O=mindtree, L=bangalore, ST=karnataka, C=IN
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@291aff
    Validity: [From: Wed Jan 02 14:46:52 GMT+05:30 2002,
                   To: Thu Jan 02 14:46:52 GMT+05:30 2003]
    Issuer: CN=prasadv, OU=nms, O=mindtree, L=bangalore, ST=karnataka, C=IN
    SerialNumber: [    3c32d004 ]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 71 00 A6 5A 95 8D 02 1F FD DF 51 55 73 14 59 C2 q..Z......QUs.Y.
    0010: 51 40 D5 38 BE 0C 52 17 44 01 CC 6B 72 05 69 94 [email protected].
    0020: 9E 01 2D C5 E4 FF D9 B6 73 8F 0C 84 6F 2A 4B A4 ..-.....s...o*K.
    0030: 42 B7 EE E2 B2 32 A6 64 28 6B A2 F1 91 A8 D2 36 B....2.d(k.....6
    0040: 09 E8 50 72 1F 25 77 B5 0D 92 48 96 87 EE 76 AF ..Pr.%w...H...v.
    0050: 67 FD BF 7F 77 35 36 2F F2 2F 2D 9E 1F 2C F2 8C g...w56/./-..,..
    0060: BF B6 44 9F 49 EE E8 E3 13 ED EC 3D 17 1B EC 28 ..D.I......=...(
    0070: 6A 37 36 37 BC C3 36 3F 76 22 FF 1C 02 AB 90 0A j767..6?v"......
    trigger seeding of SecureRandom
    done seeding SecureRandom
    Befotre main step
    Waiting for request under port
    matching server alias : alias
    Finalizer, SEND SSL v3.1 ALERT: warning, description = close_notify
    Finalizer, WRITE: SSL v3.1 Alert, length = 2
    Waiting for request under port
    [read] MD5 and SHA1 hashes: len = 3
    0000: 01 03 01 ...
    [read] MD5 and SHA1 hashes: len = 44
    0000: 00 06 00 00 00 20 00 00 09 06 00 40 3C 33 EF 34 ..... .....@<3.4
    0010: 65 A8 78 56 EF AF 2F C3 4A 13 FA 49 EC DB FB 66 e.xV../.J..I...f
    0020: 66 97 BC 5F 79 69 60 AD B6 21 D4 1E f.._yi`..!..
    Thread-0, READ: SSL v2, contentType = 22, translated length = 45
    *** ClientHello, v3.1
    RandomCookie: GMT: 1009970996 bytes = { 101, 168, 120, 86, 239, 175, 47, 195, 7
    4, 19, 250, 73, 236, 219, 251, 102, 102, 151, 188, 95, 121, 105, 96, 173, 182, 3
    3, 212, 30 }
    Session ID: {}
    Cipher Suites: { 0, 9 }
    Compression Methods: { 0 }
    %% Created: [Session-1, SSL_NULL_WITH_NULL_NULL]
    *** ServerHello, v3.1
    RandomCookie: GMT: 1009970996 bytes = { 225, 193, 138, 42, 75, 55, 82, 98, 128,
    65, 108, 86, 20, 94, 198, 33, 33, 115, 40, 27, 29, 0, 117, 169, 21, 60, 48, 113
    Session ID: {60, 51, 239, 52, 239, 124, 121, 133, 111, 116, 246, 8, 10, 20, 99,
    150, 141, 208, 153, 124, 223, 176, 115, 34, 158, 29, 153, 32, 194, 198, 217, 12
    6}
    Cipher Suite: { 0, 9 }
    Compression Method: 0
    Cipher suite: SSL_RSA_WITH_DES_CBC_SHA
    *** Certificate chain
    chain [0] = [
    Version: V1
    Subject: CN=prasadv, OU=nms, O=mindtree, L=bangalore, ST=karnataka, C=IN
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@47c5fc
    Validity: [From: Wed Jan 02 14:46:52 GMT+05:30 2002,
                   To: Thu Jan 02 14:46:52 GMT+05:30 2003]
    Issuer: CN=prasadv, OU=nms, O=mindtree, L=bangalore, ST=karnataka, C=IN
    SerialNumber: [    3c32d004 ]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 71 00 A6 5A 95 8D 02 1F FD DF 51 55 73 14 59 C2 q..Z......QUs.Y.
    0010: 51 40 D5 38 BE 0C 52 17 44 01 CC 6B 72 05 69 94 [email protected].
    0020: 9E 01 2D C5 E4 FF D9 B6 73 8F 0C 84 6F 2A 4B A4 ..-.....s...o*K.
    0030: 42 B7 EE E2 B2 32 A6 64 28 6B A2 F1 91 A8 D2 36 B....2.d(k.....6
    0040: 09 E8 50 72 1F 25 77 B5 0D 92 48 96 87 EE 76 AF ..Pr.%w...H...v.
    0050: 67 FD BF 7F 77 35 36 2F F2 2F 2D 9E 1F 2C F2 8C g...w56/./-..,..
    0060: BF B6 44 9F 49 EE E8 E3 13 ED EC 3D 17 1B EC 28 ..D.I......=...(
    0070: 6A 37 36 37 BC C3 36 3F 76 22 FF 1C 02 AB 90 0A j767..6?v"......
    *** ServerHelloDone
    [write] MD5 and SHA1 hashes: len = 670
    0000: 02 00 00 46 03 01 3C 33 EF 34 E1 C1 8A 2A 4B 37 ...F..<3.4...*K7
    0010: 52 62 80 41 6C 56 14 5E C6 21 21 73 28 1B 1D 00 Rb.AlV.^.!!s(...
    0020: 75 A9 15 3C 30 71 20 3C 33 EF 34 EF 7C 79 85 6F u..<0q <3.4..y.o
    0030: 74 F6 08 0A 14 63 96 8D D0 99 7C DF B0 73 22 9E t....c.......s".
    0040: 1D 99 20 C2 C6 D9 7E 00 09 00 0B 00 02 4C 00 02 .. ..........L..
    0050: 49 00 02 46 30 82 02 42 30 82 01 AB 02 04 3C 32 I..F0..B0.....<2
    0060: D0 04 30 0D 06 09 2A 86 48 86 F7 0D 01 01 04 05 ..0...*.H.......
    0070: 00 30 68 31 0B 30 09 06 03 55 04 06 13 02 49 4E .0h1.0...U....IN
    0080: 31 12 30 10 06 03 55 04 08 13 09 6B 61 72 6E 61 1.0...U....karna
    0090: 74 61 6B 61 31 12 30 10 06 03 55 04 07 13 09 62 taka1.0...U....b
    00A0: 61 6E 67 61 6C 6F 72 65 31 11 30 0F 06 03 55 04 angalore1.0...U.
    00B0: 0A 13 08 6D 69 6E 64 74 72 65 65 31 0C 30 0A 06 ...mindtree1.0..
    00C0: 03 55 04 0B 13 03 6E 6D 73 31 10 30 0E 06 03 55 .U....nms1.0...U
    00D0: 04 03 13 07 70 72 61 73 61 64 76 30 1E 17 0D 30 ....prasadv0...0
    00E0: 32 30 31 30 32 30 39 31 36 35 32 5A 17 0D 30 33 20102091652Z..03
    00F0: 30 31 30 32 30 39 31 36 35 32 5A 30 68 31 0B 30 0102091652Z0h1.0
    0100: 09 06 03 55 04 06 13 02 49 4E 31 12 30 10 06 03 ...U....IN1.0...
    0110: 55 04 08 13 09 6B 61 72 6E 61 74 61 6B 61 31 12 U....karnataka1.
    0120: 30 10 06 03 55 04 07 13 09 62 61 6E 67 61 6C 6F 0...U....bangalo
    0130: 72 65 31 11 30 0F 06 03 55 04 0A 13 08 6D 69 6E re1.0...U....min
    0140: 64 74 72 65 65 31 0C 30 0A 06 03 55 04 0B 13 03 dtree1.0...U....
    0150: 6E 6D 73 31 10 30 0E 06 03 55 04 03 13 07 70 72 nms1.0...U....pr
    0160: 61 73 61 64 76 30 81 9F 30 0D 06 09 2A 86 48 86 asadv0..0...*.H.
    0170: F7 0D 01 01 01 05 00 03 81 8D 00 30 81 89 02 81 ...........0....
    0180: 81 00 D2 18 99 9D 29 35 BC 5F AB 80 0C 14 F2 19 ......)5._......
    0190: 13 B4 27 28 B1 37 AC 8F 33 CE 2F 08 BF F0 8E 88 ..'(.7..3./.....
    01A0: DA BA 40 4B 94 F6 CE CB F3 C9 79 1F 80 CD BA D9 [email protected].....
    01B0: 3B 19 8C 70 37 CE E4 DD 49 C7 EF AA FC 30 87 78 ;..p7...I....0.x
    01C0: BF D7 8A 68 CE 13 F2 56 8C 08 51 CB AE 17 B1 DC ...h...V..Q.....
    01D0: 0B 40 E7 35 AC F6 57 16 A5 B1 AA DB 88 26 2E 6A [email protected]......&.j
    01E0: 4A C7 83 45 7F 79 D2 9F 28 ED 54 28 B8 56 48 A1 J..E.y..(.T(.VH.
    01F0: 0D 95 47 E0 1F DB 70 0B 38 CA E5 B7 A0 DC 3C 87 ..G...p.8.....<.
    0200: BC 07 02 03 01 00 01 30 0D 06 09 2A 86 48 86 F7 .......0...*.H..
    0210: 0D 01 01 04 05 00 03 81 81 00 71 00 A6 5A 95 8D ..........q..Z..
    0220: 02 1F FD DF 51 55 73 14 59 C2 51 40 D5 38 BE 0C [email protected]..
    0230: 52 17 44 01 CC 6B 72 05 69 94 9E 01 2D C5 E4 FF R.D..kr.i...-...
    0240: D9 B6 73 8F 0C 84 6F 2A 4B A4 42 B7 EE E2 B2 32 ..s...o*K.B....2
    0250: A6 64 28 6B A2 F1 91 A8 D2 36 09 E8 50 72 1F 25 .d(k.....6..Pr.%
    0260: 77 B5 0D 92 48 96 87 EE 76 AF 67 FD BF 7F 77 35 w...H...v.g...w5
    0270: 36 2F F2 2F 2D 9E 1F 2C F2 8C BF B6 44 9F 49 EE 6/./-..,....D.I.
    0280: E8 E3 13 ED EC 3D 17 1B EC 28 6A 37 36 37 BC C3 .....=...(j767..
    0290: 36 3F 76 22 FF 1C 02 AB 90 0A 0E 00 00 00 6?v"..........
    Thread-0, WRITE: SSL v3.1 Handshake, length = 670
    Thread-0, READ: SSL v3.1 Alert, length = 2
    Thread-0, RECV SSLv3 ALERT: fatal, certificate_unknown
    html file used at client side
    <HTML>
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.3 -->
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 600 HEIGHT = 200 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = Main>
    <PARAM NAME = CODEBASE VALUE = . >
    <PARAM NAME = machinename VALUE = "127.0.0.1" >
    <PARAM NAME = port VALUE = "2002" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="false">
    </OBJECT>
    </HTML>
    Please help me to solve out this problem.
    Thanks,
    prasad.

    Are u using MS JVM i.e default IE browser or you have installed the plug in?

  • How to handle and Manage Multi DataBase access with LCDS in runtime ?

    Hello there
    I got several customer working with the same application and I wonder how,  with LCDS,  to manage  in a runtime a multi dataBase access; without creating a configuration "mxl" file in
    the folder catalina for each database.
    Indeed, each customer have their own dataBase, and so far, I did not find out how to avoid creating a config xml file in catalina for every single database; which force me to create as well for each customer a  folder application, since the name of the config file in catalina require a folder application to be ran under tomcat....
    Thus, my question is :
    Is there anyway to create only one configuration mxl file in catalina (in the server side) and then from the client side (application) let the user select its environment (meaning its database) to run the application.... this technic can be also used for multi database environment such as : Dev / Test / Prod   environment (or database) where the same application can access to.
    Please if any one have an idea or already delt with; just let me know, because I'm entering in a bootle neck and the situation is getting serioulsy critical....
    Regards

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • Can I use SQLite as a server-side Database?

    In a web based iphone application can we use SQLite as the database which will handle tens of millions of records without failing at the server side?
    Or else what will be better for that purpose?
    Thanks in advance,
    Satya.

    Nice to see u again my friend.
    I have one doubt. I feel like SQLite is an embedded database for iPhone/iPad/iPod devices. And my requirement is something that I want to use the database to be stored and maintained at the server-side as like a day-to-day web-server.
    For example database used for IRCTC or gmail server's database etc. I have certain things to maintain at server-side as like login details(Name, password, location of launching application, Date, time) or something like offers of the month, and to retrieve the details either mails or any other details of the loggedin person with the iPhone from any location as we do with our system to access the mail accounts from server.
    The server's database should bear loads for more than millions of users logging in.
    Will SQLite handle such a thing. or I have to use something like MySql or Oracle?
    Which will be best for that reason(ofcourse with a minimal of cost)?

  • Database access with JSP custom tags

    i have created one file in which i am making the connection with mysql data base with con.mysql.jdbc.Driver.and usking J connector and that i'm doing with custom tag.this is the error which i'm getting in tomcat.
    and the tag handler class and TLD file and jsp file is below
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax.servlet.jsp.JspException: null
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:841)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:778)
    org.apache.jsp.DbTry_jsp._jspService(org.apache.jsp.DbTry_jsp:72)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
    Try.Connect.<init>(Connect.java:26)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    java.lang.reflect.Constructor.newInstance(Unknown Source)
    java.lang.Class.newInstance0(Unknown Source)
    java.lang.Class.newInstance(Unknown Source)
    org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:116)
    org.apache.jsp.DbTry_jsp._jspx_meth_db_connect_0(org.apache.jsp.DbTry_jsp:84)
    org.apache.jsp.DbTry_jsp._jspService(org.apache.jsp.DbTry_jsp:62)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
    Apache Tomcat/5.5.4
    Tag handler class
    package Try;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.PageContext;
    import javax.servlet.jsp.tagext.TagSupport;
    import java.sql.*;
    public class Connect extends TagSupport {
    private String driver = "com.mysql.jdbc.Driver";
    private String dbtype = "mysql";
    private String host = "localhost";
    private String username = "root";
    private String password = "203131";
    private String database = "compose";
    private String scope = "page";
    private String id = "";
    JspWriter out = pageContext.getOut();
    public void setDriver(String str) {
    driver = str;
    public void setDbtype(String str) {
    dbtype = str;
    public void setHost(String str) {
    host = str;
    public void setUsername(String str) {
    username = str;
    public void setPassword(String str) {
    password = str;
    public void setDatabase(String str) {
    database = str;
    public void setScope(String str) {
    scope = str;
    public void setId(String str) {
    id = str;
    public int doStartTag() throws JspException {
    try {
    Class.forName("com.mysql.jdbc.Driver");
    String url= "jdbc:" + dbtype + "://" + host + "/" + database;
    Connection connection = DriverManager.getConnection(url,username,password);
    out.println("right ;;one");
    catch (SQLException e1) {
    System.out.println("Error in HeadingTagv: " + e1);
    catch (Exception e) {
    System.out.println("Error in HeadingTag: " + e);
    return SKIP_BODY;
    TLD is lib.tld
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>db</short-name>
    <display-name>Database Tags</display-name>
    <description>
    A set of tags for working with SQL database access
    </description>
    <tag>
    <name>connect</name>
    <tag-class>Try.Connect</tag-class>
    <body-content>empty</body-content>
    <description>
    </description>
    <attribute>
    <name>driver</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    </description>
    </attribute>
    <attribute>
    <name>dbtype</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    </description>
    </attribute>
    <attribute>
    <name>host</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    Host name of the computer where database is located.
    Default is "localhost".
    </description>
    </attribute>
    <attribute>
    <name>username</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    Username for logging onto the database.
    Default is "root".
    </description>
    </attribute>
    <attribute>
    <name>password</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    Password for logging onto the database.
    Default is the empty string.
    </description>
    </attribute>
    <attribute>
    <name>database</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <description>
    Can be given by a run-time expression.
    The name of the database that will be used for
    the SQL commands. Default is no database specified.
    </description>
    </attribute>
    <attribute>
    <name>id</name>
    <required>false</required>
    <description>
    </description>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <description>
    </description>
    </attribute>
    </tag>
    </taglib>
    JSP file is
    <%@ taglib uri="/WEB-INF/lib.tld" prefix="db" %>
    <html>
    <body>
    <db:connect username="root" password="203131" database="compose" />
    </body>
    </html>

    Answered in your other post:
    http://forum.java.sun.com/thread.jspa?threadID=608780&tstart=0

  • Running server side methods prior to applet launch

    Hi all,
    I have recently become involved in the JSP world. My question is this:
    How can I get a server-side process to run prior to the launcing/running of an applet that must also be present on the page? Is there a way to force an order of execution within a JSP?
    Due to the nature of the code, it is impossible for me to create a secondary page that runs the server side process prior to being redirected to a page containing the applet.
    Any thoughts?
    Thanks from a newbie!
    --Speed Racer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey there,
    Yes, it did help, however, I realized that a redirection of the action to another URL (jsp) instead of the assigned action class would allow me to manage the auditing I needed to do.
    Thanks for the response!
    --Speed Racer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

  • How do I define server-side spam rules with Yosemite & Server 4

    Really surprised that this isn't functionality available in the server UI. Poking around in the dovecot/spamassassin docs imply this is possible using sieve, but the configuration looks more complex than I'd like to have to figure out on my own. It seems that sieve might be possible to use. In /Library/Server/Mail/Config/dovecot/conf.d, the option sieve_dir is uncommented, pointing to /Library/Server/Mail/Data/rules/%u. That seems to imply I could create user directories there and apply some sieve rules, has anyone tried this?
    I'd rather not do user-specific rules, I'd prefer to use the default and attempt to move all spam into a spam folder for each user.
    I've seen notes that the webmail client Roundcube provided server-side rules, but I really don't need the web mail client, and various search results seem to raise questions about whether Roundcube is compatible with Sever 4 / Yosemite.
    Any help would be appreciated...

    Was able to get it working with some digging. The basic summary is that you need to create a rules directory for each mail user, and then add a sieve rule in each of the directories you create. I did this manually, which is manageable because I'm using OS X server for my household, and we don't add members to my household that often... :-). Summary of the steps:
    1) Each user has a directory in /Library/Server/Mail/Data/mail that is in UUID format (long hex string with sections broken by - characters).
    2) For each of the users you identify in (1), create an equivalent UUID directory in /Library/Server/Mail/Data/rules
    3) Create a file named "dovecot.sieve" in each of the directories you created in (2). For a basic rule that moves mail marked by SpamAssassin as spam to the Junk folder that Mail.app should create by default, you can use the following:
         require ["fileinto"];
         # rule:[SPAM]
         if header :contains "X-Spam-Flag" "YES" {
                 fileinto "Junk";
    4) Ensure that all of the directories/files are owned by _dovecot. I marked dovecot.sieve as executable, but I'm not sure that was necessary.
    5) Once you've done steps 1-4, you should start to see evidence that sieve is being used for delivery of mail in /Library/Logs/Mail/mailinfo.log. Grep for "sieve" in that to see activity. If there are errors, you'll likely see notices that there are sieve logs being created in the rules directories you set up in (2). I ran into errors for at least one account that didn't have a Junk folder created; if you hit that just have the user create a folder named Junk to clear it up.
    Hope this helps others...

  • Enabling server-side load balancing with Oracle 10g RAC

    Hi, all.
    I created a RAC database on vmware by using DBCA.
    By default, remote_listener and tnsname.ora have been configured.
    The followings are part of dba_services from my RAC database.
    NAME, GOAL, ENABLED, CBL_GOAL
    SYS$BACKGROUND NONE NO SHORT
    SYS$USERS NONE NO SHORT
    DEVDB NO LONG
    By default(created by DBCA), server-side load balancing is enabled for
    the RAC database, DEVDB??
    --> GOAL of DEVDB is null, but CBL_GOAL IS LONG.
    After creating a RAC db by using "DBCA", do I need to do something
    for server-side load balancing??
    If so what I need to do?? How can I test it??
    And what is beneficial in enabling server-side loadbalancing ??
    Is it good in the real world??
    Thanks for reading.
    Best Regards.
    Message was edited by:
    user507290

    [urgent] 10gR2 RAC Load Balancing Configuration (client and server side)!!
    [urgent] 10gR2 RAC Load Balancing Configuration (client and server side)!!
    Virag

  • VLV & Server Side Sort Query with ODSEE 11g

    Hi
    We are trying to integrate Microsoft FIM with ODSEE.. When FIM does a Full Import it with VLVControl and SortControl ON it gets the following error
    1100 objects were returned on import, exceeding the configured page size in the Run Profile of 500. Only the first 500 objects were processed. Import aborted.
    Now looking at ODSEE Logs it does the following
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 - SRCH base="<BASENAME>" scope=2 filter="<FILTER NAME>" attrs="<LONG LIST OF ATTRIBUTES>"
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:40 (0)
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:4 (0)
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:6412 (0)
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:685 (0)
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:232 (0)
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 - RESULT err=0 tag=101 nentries=1100 etime=1
    [27/Mar/2015:08:29:55 +1100] conn=3 op=2 msgId=402744 - UNBIND
    Ofcourse as we can see it is returning 1100 but FIM is expecting only 500.. Microsoft suggests that VLV index and server side sort is not correctly configured on our end. What could be going wrong here? We have both the supported controls ON in ODSEE. I have created a vlvindex entry in dse.ldif matching the SORT dn and vlvbase,vlvscope and vlvfilter
    Not well versed with VLV and sort index..

    Hello,
    Could you try to perform an equivalent search with the ldapseatch that comes with DSEE and check how many entries are returned ?
    See ldapsearch(1) (Sun Java System Directory Server Enterprise Edition 6.2 Man Page Reference) , option -G
    If the ldapsearch returns more than 500 entries, I would encourage you to contact the Oracle Support.
    -Sylvain
    Please mark this response as correct or helpful when appropriate to make it easier for others to find it

  • Database access with Jave Web Start

    Can a java application, that has been deployed by using Java Web Start, access information from a database that's located on the web server from where the application was deployed?

    Yes, if you use the type 4 (ie, thin) driver and include the driver's jar file as part of the app.
    Technically you can do it with a thick driver but then you have first install the driver on the client machine and I assume this isn't what you are looking for,

  • Database access with xslt document

    Hello,
    I have a big problem. I have a database with three tables and more than hundred records. From the records of these three tables a xml document should be generated. I already have a xslt file which gets the data from the database and brings in a xml form. Is there in BPEL a possibility with the help of a xslt file to access a table? And if so like this is done? Can one give the xslt file in the data bank adaptor? The xslt file has the following appearance:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <xsl:apply-templates select="RESULTSETS/SELECT[@NAME='idoc_element']">
    <xsl:with-param name="parent_id" select="'0'"/>
    </xsl:apply-templates>
    </xsl:template>
    <xsl:template match="RESULTSETS/SELECT[@NAME='idoc_element']">
    <xsl:param name="parent_id"/>
    <xsl:for-each select="ROW[(parent_id=$parent_id)]">
    <xsl:variable name="element_name" select="name"/>
    <xsl:variable name="element_id" select="id"/>
    <xsl:variable name="position" select="position"/>
    <xsl:variable name="child" select="/RESULTSETS/SELECT[@NAME='idoc_element']/ROW[(parent_id=$element_id)]"/>
    <xsl:element name="{$element_name}">
    <xsl:for-each select="/RESULTSETS/SELECT[@NAME='idoc_attribute']/ROW[(element_id=$element_id)]">
    <xsl:variable name="attr_name" select="name"/>
    <xsl:attribute name="{$attr_name}"><xsl:value-of select="value"/></xsl:attribute>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test="$child">
    <xsl:apply-templates select="/RESULTSETS/SELECT[@NAME='idoc_element']">
    <xsl:with-param name="parent_id" select="$element_id"/>
    </xsl:apply-templates>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="value"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    This xslt forms a loop about the suitable data and joins them to a xml file.
    It would be really great if somebody could help me there.
    Thanks
    Greeting Cathleen

    Hello,
    I know that I can define the relations between the tables in the DB Adapter.
    But how do I say to him which data he from the tables should get and how should these be joined?
    Since my tables are built up as follows:
    Table 1 contains the head of the xml document.
    Table 2 contains the attributes.
    And table 3 contains the real elements of the xml document.
    This is, for example, table 3:
    Element | Name | Value
    /root/E1 | E1     
    /root/E1/E2 | E2
    /root/E1/E2/E21 | E21 | 7777
    /root/E1/E2/E22 | E22 | Germany
    /root/E1/E3 | E3 | UTIL
    And this structure should have afterwards the following construction:
    <root>
    <E1>
    <E2>
    <E21>7777</E21>
    <E22>Germany</E22>
    </E2>
    <E3> UTIL </E3>
    </E1>
    </root>
    Besides, subdivide themselves Element2 and Element3 and there is of it more than 100. It is very big xml document at the end.
    So a xml file should originate only from the records of the table and I know not at all like I should do this with the DB Adapter. OR as I give in the DB Adapter or where I give it.
    It would be really very nice and helpful ones if somebody can help me there. This is since very important for my work.
    Thanks
    Greeting Cathleen

  • Database access with JSP

    Hello,
    i have a Java Server Page where i fill in some data in a formular. I want to put these data (only two strings) in a database. I already use a servlet to give this data to a (already existing) stateless session bean. I also created and deployed an sda, so that the table exists in the database.
    But i do not understand, what to do next - how to use an entity bean to fill the table.
    Can anyone give me some hints?
    Thanks,
    André

    Hi Andre,
    you need to retrieve the Home Object of your entity bean and use it to create, the same way you create your session bean.
    Example:
    InitialContext initialContext = new InitialContext();
    EjbObject myEjb = null;
    try {
      java.lang.Object objRef = initialContext.lookup(EjbHome.JNDI_NAME);
    EjbHome home = (EjbHome)PortableRemoteObject.narrow(objRef, EjbHome.class);
             myEjb = home.create();
    } catch (Exception) {
             initialContext.close();
    The lookup to the home object can vary, you might also have helper classes for that, it depends on your application server, API and architecture.
    But however the call or whichever the server, you basically need to retrieve the home object of your entity bean and use the method create() - with any required parameters. Pretty much the same way you create a session bean.
    Hope this helps.
    regards,
    Dionisios

  • Database Access with JspDynpage

    Hi,
    I want to know if it ist possible to access the WAS Database over JspDynpage.
    If yes, can someone post me a tutorial or the way how to do that?
    Thanks and Regards,
    Dennis

    Hi Dennis,
       U can create a connection and do datasource lookup and access the database.
    InitialContext contx = new InitialContext();
    DataSource datasource = (DataSource)contx.lookup("jdbc/SAP<SID>DB");
    Connection connection = datasource.getConnection();
    Statement stmt = connection.createStatement();
    ResultSet rs = stmt.executeQuery("Select * from table");
    Also refer to this link for another example.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fe/68e343cc68414da4426258d3e896ae/content.htm
    Regards,
    Harini S

  • Database Connection with applet

    my code is:
    public class Test extends JApplet implements ActionListener,ItemListener{
    public void init(){
                   Connection con=null;
                             Statement st=null;
                             try{
                                            Class.forName("oracle.jdbc.driver.OracleDriver");
                                            con=DriverManager.getConnection("jdbc:oracle:thin:@192.9.200.10:1521:FBIC","FBICEXT","FBICEXT");//"jdbc:odbc:FBIC","FBICEXT","FBICEXT"
                                            st=con.createStatement();
                                            String attSelect= "select GRP_CODE,GRP_NAMS from T_GRP";
                                            ResultSet rs= st.executeQuery(attSelect);
                                       while(rs.next())
                                            String Grpcode=     rs.getString(1).trim();
                                            String GrpName=rs.getString(2).trim();
                                            System.out.println(Grpcode+""+GrpName);               
                                       }catch(Exception e)
                                            System.out.println("Database Exception:"+e);
    i copied classess111.jar file into classpath in Eclipse and i copied same .jar file into package where applet classes exists.
    but it is giving following exception:
    Database Exception:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    when i copy same code in normal class ,it is working fine
    could u please tell me where i should put this .jar file for drivers

    i found in http://forum.java.sun.com/thread.jspa?threadID=641300&tstart=100 thread with same problem,after creating policy file she solved his problem.
    how to create policy file and where it should it keep

  • Copying database access with App copy

    I have few applications that I need to copy (COPYAPP) including the security like user access to the databases but this is not getting done when I use COPYAPP esscmd.Any help/suggestion will be appreciated.Mohammad G

    I have tried Copying database from source A to destination B but still the users who has access to database A don't have access to database B.Anyone else???MG.

Maybe you are looking for