adspace
Answer Posted / Anjali Chaudhary
To achieve datasource-less (DSN-less) connectivity in Java 2 Enterprise Edition (J2EE), you can use the Java Naming and Directory Interface (JNDI) API. Here's a brief example of how to configure and access a database using JNDI:
1. Define the resource in your deployment descriptor (web.xml or application.xml).
2. Write code to look up the data source from JNDI context, typically in a utility class.
3. Use the data source object to create a connection and perform database operations as needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)
Explain the types of operations? Draw the figure for shift and rotate operations?
If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com
Give examples of macro quoting function?
hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad
what is class module in vb6? what it's use? with example..
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
please any one pass file aid,xpeditor and endeavor tools
Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance
can we extend a class having only one parameterised constructor.Suggest the process to do it.
How to get the index of the clicked field in reports in ABAP?