• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

web.xml

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,all.
I have trouble while accessing database by using ejb.Is there any changes ruqired in the web.xml file or anywhere else?
I have a db in odbc its name is STOK.When I trying to connect it gives the following error: "invalid cursor state".
What can I do? Thanks...
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Try like this:-
stmt=con.createStatement();
ResultSet rs = stmt.executeQuery("Your Query statement");
Each time you want to fetch results from database create a new Statememt i.e. stmt=con.createStatement()
Hope This Helps
Anurag
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of EJB's are you talking of ? CMP, BMP or Session Beans ?
If you use CMP then you have to configure your app server and make the settings in the ejb-jar.xml and normally in an application dependent ejb-jar.xml.
 
Bora �elebi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I solved the problem without changing the context the "web.xml". But I have another question. I am getting the data xml format. How can I parse this xml in my .jsp page? I have installed jaxp. How can I bind this parser and my code ?
 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bora,
I think this page will help you : http://www.theserverside.com/resources/article.jsp?l=JAXP.
Kolay gelsin .
 
Bora �elebi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Saol abi...Yazdırabildim sonunda.(T�rk�n t�rkten başka dostu yokmuş
[ October 28, 2003: Message edited by: Bora �elebi ]
 
Squanch that. And squanch this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic