Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,160,401 members, 7,843,177 topics. Date: Tuesday, 28 May 2024 at 07:54 PM

How Can I Implement A Local Area Networking For My App - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Can I Implement A Local Area Networking For My App (840 Views)

Check My App Pin Pals Out / How To Implement A Programming Language In Javascript / Implement A Digital System In Any Programming Language Of Your Choice (2) (3) (4)

(1) (Reply) (Go Down)

How Can I Implement A Local Area Networking For My App by Danyl(m): 8:22am On May 15, 2013
Good day fellows, i'm almost through with an app that uses java derby database as my back end. I want the applicatn to be run on a local area network while the users can all access the derby database located in the host system in the LAN. My questn is how do i make it such that all the uses can access the database concurrently. Though i used the ClientDriver version of d derby driver. I'm thinking of using remote method invocation but it might not be necessary. Pls guys how do i go about it. Thanks.
Re: How Can I Implement A Local Area Networking For My App by javadoctor(m): 4:06pm On May 15, 2013
If u re using the low level api in jbdc
con.setAutoCommit(false); should allow concurrent connections,
Re: How Can I Implement A Local Area Networking For My App by Danyl(m): 8:46am On May 16, 2013
I have done dat,though am using JPA-java persistence API, i've seen some resources 2handle it anyway. Bt until i test it,i may not knw wat the outcome wil be.
Re: How Can I Implement A Local Area Networking For My App by javadoctor(m): 11:54am On May 16, 2013
You shouldn't have to setAutocommit to false when using container transactionality.
The spec says that you "must not use any resource-manager specific transaction management methods that would interfere with the container’s demarcatn,exampe java.sql.Connection. This has nothing to do with a java client on LAN network, nevertheless you shouldnt manage your transactions directly. When u obtain an entitymanager em, em.getTransaction.begin(); actually sets autoCommit to false in d lower class api. em.getTransaction.commit() sets it to true ,or rollback. Good choice using JPA though,

(1) (Reply)

A Clarion Call For A Programming Team At Ogun State. / Pls Can Som1 Giv Me A Link To Download Free Netbeans IDE Free? / The Key Differences Between Python 2.7.x & Python 3.x With Examples

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.