This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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...
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
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.
Joined: Oct 21, 2003
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 ?