[java ee programming] JDBC close in Session bean

2009-03-24 Thread Ondrej Medek
Hi, I use JDBC in a stateless session bean in JBoss. (I know it's a bad practice.) I get the connection via the JBoss DataSource: try { InitialContext ic = new InitialContext(); dataSource = (DataSource) ic.lookup(java:/testDS); Connecion conn = dataSource.getConnection(); PreparedStatement

[java ee programming] Re: Lab-1020 Version problem with the JDBCSample

2009-03-24 Thread Sang Shin
supriya khare wrote: Hi I have JDK6.0 installed and after downloading the lab1020 and trying to open JDBCSample I get resolve problem: *Problem: The project uses the Java Platform called JDK_1.5, but this platform was not found*. I have been successfully able to work on other

[java ee programming] Re: Slides for section 4205 Struts Basic.

2009-03-24 Thread Rabin
Karl, You can find the MailReader example application at http://struts.apache.org/download.cgi#struts1310. Please download the examples. You can even find the MailReader training at http://opensource.atlassian.com/confluence/oss/display/STRUTS/MailReader. But it focuses mainly in Struts2. Hope

[java ee programming] Re: Homework #4018

2009-03-24 Thread Karl
hmmm, well I guess that may be so. Oh well, a little more work from me, What doesn't kill you makes you stronger. But the instructions clearly said ... Passion. --- On Tue, 3/24/09, fredrik fredrik.bok...@gmail.com wrote: From: fredrik fredrik.bok...@gmail.com Subject: [java ee

[java ee programming] Re: jsf-guessnumber application question

2009-03-24 Thread VAN Thanh Trung
Dear Tanya, I'm a JSF beginner but I'll try to answer your questions :-) I have 2 questions about UserBean minimum and maximum properties: 1) Why are they defined both in the UserBean class and in the faces-config.xml file? They are defined in the UserNumberBean class because they are

[java ee programming] Re: [Hibernate basics hands-on lab] HibernateSimpleDao project

2009-03-24 Thread Fernando Abreu
I think It should have the close(session) like others.Since we are not using EntityManager in an injected context, we should always close the Factory. Maybe somebody forgot to take the comment slashes out, or, even better, after you a find a single object, you may as well do some operations with

[java ee programming] hi to all my dear freind guide me from where do i start my journey

2009-03-24 Thread ravi soni
hi to all my freinds i m new to this please help me n gudie me how n from where do i start my journey ? i dont know please help me n guide me thanks a lot Quoteable Quotes There is never a wrong time 2 do right thing. --~--~-~--~~~---~--~~ You received

[java ee programming] Jdk vs netbean 6.5

2009-03-24 Thread Olosunde Olayemi
What jdk is compatible with netbean 6.5?i downloaded jdk 6 but i could not complete its installation.it give an error message when it starts copying new files make sure that file sb160120.cab exist and you can access it.I don't know anything about java,if you have any source for free training