<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2294552994579990626</id><updated>2011-09-08T08:19:39.910+03:00</updated><category term='glassfish'/><category term='maven'/><category term='certification'/><category term='eclipse'/><category term='ubuntu'/><category term='nullpointer'/><category term='7.10'/><category term='ejb3'/><category term='hardware'/><category term='netbeans'/><category term='deploy'/><category term='tutorial'/><title type='text'>Computer says null;</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-4289385012888459270</id><published>2011-09-08T08:19:00.000+03:00</published><updated>2011-09-08T08:19:39.945+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>NetBeans 7 and Maven 3 dependecy problem? Not so fast..</title><content type='html'>The other day me and a colleague faced some weird behavior on Maven's part when downloading dependencies.&lt;br /&gt;&lt;br /&gt;What made it worse is that he was using a NetBeans 7.0.1 and I am still on the 6.9.1 so we tried to dig around what was causing this unexpected behavior.&lt;br /&gt;&lt;br /&gt;It just happens that NetBeans 7.x has a different embedded version of Maven, the version 3 to be more precise, and what was seen as 'okay' for Maven to deal in the version 2 stopped being the case with the new version. &lt;a href="https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html"&gt;Apparently for the better&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;We then changed the IDE to point to a Maven 2 installation and voilá. Everything was working like a charm.&lt;br /&gt;&lt;br /&gt;Check the screenshot below for more information:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-f-uS_po38Sc/Tme9sNw3vLI/AAAAAAAAV1c/m5QXrxvJGnw/s1600/maven.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://4.bp.blogspot.com/-f-uS_po38Sc/Tme9sNw3vLI/AAAAAAAAV1c/m5QXrxvJGnw/s320/maven.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-4289385012888459270?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/4289385012888459270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=4289385012888459270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4289385012888459270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4289385012888459270'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2011/09/netbeans-7-and-maven-3-dependecy.html' title='NetBeans 7 and Maven 3 dependecy problem? Not so fast..'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-f-uS_po38Sc/Tme9sNw3vLI/AAAAAAAAV1c/m5QXrxvJGnw/s72-c/maven.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-4260288377195213575</id><published>2008-12-17T10:49:00.002+02:00</published><updated>2008-12-17T10:53:06.846+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><title type='text'>SCSNI - Passed</title><content type='html'>Just went to Prometric website and got the information that I passed the SCSNI, Sun Certified Specialist NetBeans IDE.&lt;br /&gt;&lt;br /&gt;Was really tiring exam and I am very relieved that I passed it since I went to Helsinki, there was no exam appointments here in Tampere, and of course it was a beta exam meaning FREE ;).&lt;br /&gt;&lt;br /&gt;But anyway I posted my notes and few links I found through the web related to this exam in this blog. Hope that it can help someone that might need.&lt;br /&gt;&lt;br /&gt;I am still studying for SCBCD, using NB of course, I hope will be trying next year close to february (as part of my new years resolution).&lt;br /&gt;&lt;br /&gt;After this one I'm much in doubt in what to do next. Have been thinking about some IBM certification or Microsoft ones. Database related would be nice to have.&lt;br /&gt;&lt;br /&gt;Opinions, suggestions feel free to send me.  :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-4260288377195213575?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/4260288377195213575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=4260288377195213575' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4260288377195213575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4260288377195213575'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/12/scsni-passed.html' title='SCSNI - Passed'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-2793063406680098288</id><published>2008-11-12T14:46:00.002+02:00</published><updated>2008-12-19T15:12:37.991+02:00</updated><title type='text'>SCSNI Exam Testing Objectives</title><content type='html'>Very useful faq that can be used with many of the sections down here.&lt;br /&gt;&lt;a href="http://wiki.netbeans.org/NetBeansUserFAQ"&gt;http://wiki.netbeans.org/NetBeansUserFAQ&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Exam Testing Objectives&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;br /&gt; Section 1: IDE Configuration&lt;br /&gt; &lt;/li&gt;&lt;ul&gt;&lt;li&gt;      1.1 Demonstrate the ability to configure the functionality available in the IDE, including using enabling and disabling functionality and using the Plugin Manager.&lt;br /&gt;   &lt;/li&gt;&lt;li&gt;      1.2 Explain the purpose of the user directory and the netbeans.conf file and how these can be used to configure the IDE.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;You can pass startup parameters to the IDE launcher using the IDE-HOME/etc/netbeans.conf file. The launcher reads this file prior to parsing the command-line options, including any parameters you have added.&lt;br /&gt;--cp:p additional-classpath prefixes specified classpath to the ides classpath&lt;br /&gt;--cp:a additional-classpath appends specified classpath to the ides classpath&lt;br /&gt;-Jjvm-flags Passes the specified flags directly to the JVM software.&lt;br /&gt;&lt;div&gt;&lt;a href="http://wiki.netbeans.org/FaqNetbeansConf"&gt;http://wiki.netbeans.org/FaqNetbeansConf&lt;/a&gt;&lt;div&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;      1.3 Demonstrate the ability to work with servers in the IDE, such as registering new server instances and stopping and starting servers.&lt;br /&gt;   &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a title="http://developers.sun.com/webtier/reference/techart/deploy_nb.html#1" href="http://developers.sun.com/webtier/reference/techart/deploy_nb.html#1" id="b5jt"&gt;http://developers.sun.com/webtier/reference/techart/deploy_nb.html#1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;        1.4 Describe how to integrate external libraries in the IDE and use them in coding and debugging your project.&lt;br /&gt;     &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a title="http://platform.netbeans.org/tutorials/nbm-quick-search.html" href="http://platform.netbeans.org/tutorials/nbm-quick-search.html" id="bkw8"&gt;http://platform.netbeans.org/tutorials/nbm-quick-search.html&lt;/a&gt; &lt;ul&gt;&lt;ul&gt;&lt;li&gt;&lt;br /&gt;       1.5 Demonstrate knowledge of working with databases in the IDE, including registering new database connections and tables running SQL scripts.&lt;br /&gt;     &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a href="http://www.netbeans.org/kb/trails/java-se.html"&gt;http://www.netbeans.org/kb/trails/java-se.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.netbeans.org/kb/60/ide/java-db.html"&gt;http://www.netbeans.org/kb/60/ide/java-db.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://www.netbeans.org/kb/61/ide/mysql.html" href="http://www.netbeans.org/kb/61/ide/mysql.html" id="xuet"&gt;http://www.netbeans.org/kb/61/ide/mysql.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://www.netbeans.org/kb/60/java/gui-db.html" href="http://www.netbeans.org/kb/60/java/gui-db.html" id="b.7z"&gt;http://www.netbeans.org/kb/60/java/gui-db.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;ul&gt;&lt;br /&gt;     &lt;li&gt;&lt;br /&gt;       1.6 Describe how to integrate and use different versions of the JDK in the IDE for coding, debugging, and viewing Javadoc documentation.&lt;br /&gt;     &lt;/li&gt;&lt;br /&gt;   &lt;/ul&gt;&lt;/ul&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;On properties on project node &lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;br /&gt;   &lt;li&gt;&lt;br /&gt;     Section 2: Project Setup&lt;br /&gt;     &lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         2.1 Describe the characteristics and uses of a free-form project.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.netbeans.org/kb/articles/freeform-import.html"&gt;http://www.netbeans.org/kb/articles/freeform-import.html&lt;/a&gt;&lt;/li&gt;&lt;li style="text-align: left;"&gt;&lt;a title="http://www.netbeans.org/kb/55/freeform-config.html" href="http://www.netbeans.org/kb/55/freeform-config.html" id="w-b0"&gt;http://www.netbeans.org/kb/55/freeform-config.html&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.netbeans.org/kb/articles/freeform-import.html"&gt;&lt;/a&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         2.2 Demonstrate the ability to work with version control systems and the IDE. (Which VCS's are available, which ones you need an external client for, how to pull sources out of a repository, view changes, and check them back in).&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.netbeans.org/kb/60/ide/cvs.html"&gt;http://www.netbeans.org/kb/60/ide/cvs.html&lt;/a&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         2.3 Describe the ways in which you can change the build process for a standard project, such as configuring project properties and modifying the project's Ant build script.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;a href="http://wiki.netbeans.org/NetBeansUserFAQ"&gt;http://wiki.netbeans.org/NetBeansUserFAQ&lt;/a&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         2.4 Configure your project to compile against and run on a specific version of the JDK.&lt;br /&gt;       &lt;/li&gt;&lt;br /&gt;     &lt;/ul&gt;&lt;b&gt;On properties on project node &lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;br /&gt;   &lt;li&gt;&lt;br /&gt;     Section 3: Java SE Development&lt;br /&gt;     &lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         3.1 Demonstrate the ability to create NetBeans projects from the source code of an existing Java SE program.&lt;a href="http://www.netbeans.org/kb/trails/java-se.html"&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.netbeans.org/kb/trails/java-se.html"&gt;http://www.netbeans.org/kb/trails/java-se.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.netbeans.org/kb/55/import_j2se.html"&gt;http://www.netbeans.org/kb/55/import_j2se.html&lt;/a&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;3.2 Describe how to manage the classpath of a Java SE project, including maintaining a separate classpath for compiling and debugging.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a title="http://hg.netbeans.org/release61/raw-file/4e4d8f99769f/java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/project/proj_free_classpath.html" href="http://hg.netbeans.org/release61/raw-file/4e4d8f99769f/java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/project/proj_free_classpath.html" id="dbsr"&gt;http://hg.netbeans.org/release61/raw-file/4e4d8f99769f/java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/project/proj_free_classpath.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a title="http://forums.netbeans.org/viewtopic.php?p=5329#5329" href="http://forums.netbeans.org/viewtopic.php?p=5329#5329" id="ucg9"&gt;http://forums.netbeans.org/viewtopic.php?p=5329#5329&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;3.3 Demonstrate the knowledge of the NetBeans GUI Builder and the ability to lay out and hook up basic forms using it.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a title="http://www.netbeans.org/kb/60/java/gui-functionality.html" href="http://www.netbeans.org/kb/60/java/gui-functionality.html" id="q4ov"&gt;http://www.netbeans.org/kb/60/java/gui-functionality.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://www.netbeans.org/kb/60/java/quickstart-gui.html" href="http://www.netbeans.org/kb/60/java/quickstart-gui.html" id="d7g7"&gt;http://www.netbeans.org/kb/60/java/quickstart-gui.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;3.4 Demonstrate the ability to package and distribute a built Java Desktop project for use by another user.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a title="http://www.netbeans.org/kb/articles/javase-deploy.html" href="http://www.netbeans.org/kb/articles/javase-deploy.html" id="wetw"&gt;http://www.netbeans.org/kb/articles/javase-deploy.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;br /&gt;   &lt;li&gt;&lt;br /&gt;     Section 4: Java EE Web Development&lt;br /&gt;     &lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         4.1 Describe how to create a NetBeans project from the source code of an existing Web application.&lt;br /&gt;       &lt;/li&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         4.2 Distinguish between a visual web application and web application.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;div&gt;(under &lt;span style="color: rgb(51, 51, 51);"&gt;&lt;b&gt;&lt;span style="font-size:85%;"&gt;Visual Web Application Development&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;&lt;span style="font-size:85%;"&gt;) &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;a href="http://www.netbeans.org/kb/trails/web.html"&gt;http://www.netbeans.org/kb/trails/web.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         4.3 Demonstrate knowledge of which web frameworks are available in NetBeans IDE and how they are added to and used in a web application.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;a title="http://www.netbeans.org/features/web/web-app.html" href="http://www.netbeans.org/features/web/web-app.html" id="dn0y"&gt;http://www.netbeans.org/features/web/web-app.html&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         4.4 Describe how to monitor HTTP requests when running a web application.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://blogs.sun.com/klc/entry/a_lesson_learnt_with_netbeans6"&gt;http://blogs.sun.com/klc/entry/a_lesson_learnt_with_netbeans6&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.netbeans.org/kb/60/web/tutorial-webapps.html"&gt;http://www.netbeans.org/kb/60/web/tutorial-webapps.html&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         4.5 Demonstrate a knowledge of basic tasks related to building and deploying web applications to a server, such as changing the target server and undeploying an application.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://hubpages.com/hub/NetBeans--JBoss-Aplication-Server-Bundle"&gt;http://hubpages.com/hub/NetBeans--JBoss-Aplication-Server-Bundle&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;br /&gt;     Section 5: Editing&lt;br /&gt;     &lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         5.1 Describe the purpose and uses of refactoring and demonstrate the ability to perform basic refactoring on Java source code.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;a title="http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/#refactoring" href="http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/#refactoring" id="y3mm"&gt;http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/#refactoring&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         5.2 Describe how to use the Options window to change the default appearance and behavior of the Source Editor.&lt;/li&gt;&lt;/ul&gt;Netbeans help under "Using the Options Window"&lt;br /&gt;&lt;b&gt;The Options window enables you to change any of the IDE's configurable settings. The Options window offers two views for editing IDE settings.&lt;br /&gt;Basic Options view (default). In the Basic Options view, you select a category at the top of the window to display its settings in the lower pane. Depending on the category, you can click on the tabs in the lower pane to access additional settings. When you change settings in Basic Options, the changes are not applied until you click OK.&lt;br /&gt;Advanced Options view. In the Advanced Options view, select a node in the tree view in the left pane to display the property sheet in the right pane. The property sheet contains the names and values of the settings for the item selected in the left pane. When you change settings in the property sheet, the changes are applied immediately. The Advanced Options view enables you to access some settings not available in Basic Options. In the Advanced Options view you can apply specific settings globally or at the user level.&lt;br /&gt;When you open the Options window, the default view is Basic Options. To switch between views, click the Advanced Options or Basic Options buttons in the Options window.&lt;br /&gt;To edit IDE settings in the Options window:&lt;br /&gt;Open the Options window by choosing Tools &amp;gt; Options from the main menu. (If you are running on Mac OS X, choose NetBeans &amp;gt; Preferences.)&lt;br /&gt;If you want to edit settings in Advanced Options, click Advanced Options in the Options window.&lt;br /&gt;Depending on which view you are in, select the category in the upper pane (Basic) or node in the left pane (Advanced) to display the configurable settings.&lt;br /&gt;Modify the settings.&lt;br /&gt;Close the Options window.&lt;br /&gt;Editing Settings in Advanced Options&lt;br /&gt;Editing property sheets When you are editing settings in Advanced Options, you can edit the property sheet in the following ways:&lt;br /&gt;If the setting is a string, you edit the value inline and press Enter to save the change.&lt;br /&gt;If a drop-down list appears when you select the option's node, click the arrow to select the value.&lt;br /&gt;If an ellipsis (...) button appears when you select the option node, click the button to open the property's editor.&lt;br /&gt;In Advanced Options, changes are applied immediately.&lt;br /&gt;Levels of settings When you are in Advanced Options, you can store settings at two levels:&lt;br /&gt;Default. Initial settings provided with the IDE installation. The IDE's default settings cannot be altered, however, they can be overriden by defining them at the User level.&lt;br /&gt;User. Settings defined at the User level that override settings at the Default level.&lt;br /&gt;By default the columns for User and Default are hidden. To display the User and Default columns, click &amp;lt;&amp;lt; in the column heading. To hide the columns, click &amp;gt;&amp;gt;.&lt;br /&gt;The following table defines the icons used in Advanced Options to indicate the levels at which settings are applied.&lt;br /&gt;Icon&lt;br /&gt;Description&lt;br /&gt;&lt;br /&gt;The settings for the corresponding options are defined at the level indicated in the column's title. Any changes made to those settings apply at that level.&lt;br /&gt;&lt;br /&gt;The settings for the corresponding options are inherited from a higher level.&lt;br /&gt;&lt;br /&gt;The settings for the corresponding options are ignored at the indicated level.&lt;br /&gt;To define an option's value at the User level:&lt;br /&gt;Select the node for the option you want to configure.&lt;br /&gt;Click the cell in the User column for the options node you selected and choose Define Here.&lt;br /&gt;The   icon appears in the User column.&lt;br /&gt;In the property sheet, configure the desired settings.&lt;br /&gt;The new values for the selected options override the default values.&lt;br /&gt;To revert to the default settings for an option:&lt;br /&gt;Select the node for the option you want to configure.&lt;br /&gt;Click the cell in the Default column for the options node you selected and Choose Revert Definition.&lt;br /&gt;In the the dialog box, click Yes if you are sure you want to remove the selected option's User-level configuration.&lt;br /&gt;The default values for the selected options are restored. The   icon appears in the Default column and the   icon appears in the User column.&lt;br /&gt;When reverting to default settings, the IDE removes any values stored at the User level for the selected option.&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         5.3 Describe the ways that the IDE highlights errors in source code and the tools the IDE offers for correcting those errors.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a id="zes2" href="http://www.netbeans.org/kb/60/java/editor-tips.html#Code-Highlighting" title="http://www.netbeans.org/kb/60/java/editor-tips.html#Code-Highlighting"&gt;http://www.netbeans.org/kb/60/java/editor-tips.html#Code-Highlighting&lt;/a&gt;&lt;br /&gt;&lt;a id="xexe" href="http://wiki.netbeans.org/Java_EditorUsersGuide#section-Java_EditorUsersGuide-HowToUseHighlights" title="http://wiki.netbeans.org/Java_EditorUsersGuide#section-Java_EditorUsersGuide-HowToUseHighlights"&gt;http://wiki.netbeans.org/Java_EditorUsersGuide#section-Java_EditorUsersGuide-HowToUseHighlights&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         5.4 Demonstrate the ability to use editor hints, such as implementing all the methods for an implemented interface.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;(&lt;b&gt;source editing&lt;/b&gt; &lt;b&gt;features&lt;/b&gt;) &lt;a title="http://www.netbeans.org/kb/trails/java-se.html" href="http://www.netbeans.org/kb/trails/java-se.html" id="ztfa"&gt;http://www.netbeans.org/kb/trails/java-se.html&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         5.5 Demonstrate the ability to use live code templates such as automatic generation of constructors, try/catch loops, and getters and setters.&lt;br /&gt;       &lt;/li&gt;&lt;br /&gt;     &lt;/ul&gt;&lt;a title="http://www.netbeans.org/kb/60/java/editor-tips.html#Smart-Code-Completion-and-Live-Templates" href="http://www.netbeans.org/kb/60/java/editor-tips.html#Smart-Code-Completion-and-Live-Templates" id="b8-e"&gt;http://www.netbeans.org/kb/60/java/editor-tips.html#Smart-Code-Completion-and-Live-Templates&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt;   &lt;li&gt;&lt;br /&gt;     Section 6: Testing, Profiling, and Debugging&lt;br /&gt;     &lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         6.1 Demonstrate the ability to work with JUnit tests in the IDE, such as creating JUnit tests and interpreting JUnit test output.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.netbeans.org/kb/trails/java-se.html"&gt;http://www.netbeans.org/kb/trails/java-se.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;6.2 Describe how to debug a local (desktop) application, including setting breakpoints and stepping through code.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;a title="http://www.netbeans.org/kb/60/java/javase-intro.html#test" href="http://www.netbeans.org/kb/60/java/javase-intro.html#test" id="z_xe"&gt;http://www.netbeans.org/kb/60/java/javase-intro.html#test&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         6.3 Describe the difference between local and remote debugging and describe how to debug a remote (web) application.&lt;br /&gt;       &lt;/li&gt;&lt;/ul&gt;&lt;a title="http://debuggercore.netbeans.org/docs/VM-options.html" href="http://debuggercore.netbeans.org/docs/VM-options.html" id="u.z8"&gt;http://debuggercore.netbeans.org/docs/VM-options.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://debugger.netbeans.org/overview.html#Remote_Debugging" href="http://debugger.netbeans.org/overview.html#Remote_Debugging" id="p0of"&gt;http://debugger.netbeans.org/overview.html#Remote_Debugging&lt;/a&gt;&lt;br /&gt;&lt;a title="http://hg.netbeans.org/release61/raw-file/4e4d8f99769f/java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/debug/debug_remote.html" href="http://hg.netbeans.org/release61/raw-file/4e4d8f99769f/java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/debug/debug_remote.html" id="bful"&gt;http://hg.netbeans.org/release61/raw-file/4e4d8f99769f/java.helpset/javahelp/org/netbeans/modules/java/helpset/docs/debug/debug_remote.html&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;       &lt;li&gt;&lt;br /&gt;         6.4 Describe the purpose of profiling applications and how to profile a local desktop application in the IDE.&lt;br /&gt;       &lt;/li&gt;&lt;br /&gt;     &lt;/ul&gt;&lt;a title="http://www.netbeans.org/kb/60/java/profiler-screencast.html" href="http://www.netbeans.org/kb/60/java/profiler-screencast.html" id="wnix"&gt;http://www.netbeans.org/kb/60/java/profiler-screencast.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://www.netbeans.org/kb/60/java/profiler-intro.html" href="http://www.netbeans.org/kb/60/java/profiler-intro.html" id="s9ln"&gt;http://www.netbeans.org/kb/60/java/profiler-intro.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://www.netbeans.org/features/java/profiler.html" href="http://www.netbeans.org/features/java/profiler.html" id="f658"&gt;http://www.netbeans.org/features/java/profiler.html&lt;/a&gt;&lt;br /&gt;&lt;a title="http://wiki.netbeans.org/ProfilerIntroDemoAndTour" href="http://wiki.netbeans.org/ProfilerIntroDemoAndTour" id="wc4l"&gt;http://wiki.netbeans.org/ProfilerIntroDemoAndTour&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt; &lt;/ul&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-2793063406680098288?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/2793063406680098288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=2793063406680098288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/2793063406680098288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/2793063406680098288'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/11/scsni-exam-testing-objectives.html' title='SCSNI Exam Testing Objectives'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-4756548758198700891</id><published>2008-11-11T13:54:00.006+02:00</published><updated>2008-11-11T16:25:51.468+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><title type='text'>Sun Certified Specialist NetBeans IDE</title><content type='html'>The SCSNI is a certification exam for the NetBeans IDE.&lt;br /&gt;The topics range from profiling, VCS, debugging, creationg of desktop/web applications and others...&lt;br /&gt;&lt;br /&gt;Its a really nice exam, even though the beta exam was very extensive and tiring to say at least.&lt;br /&gt;&lt;br /&gt;I have collected few links as a study guide and also created a document, google docs,  with the topics and links for tutorials on each subject. I prefer tutorials than the help pages since its kinda boring to be reading just the topics on the help.&lt;br /&gt;&lt;br /&gt;Another thing is that experience with the IDE is required. I dont think that just few reading, like with every certification exam, would make you pass... And since there are no books yet to this exam the best place to find sources is the NetBeans page.&lt;br /&gt;&lt;br /&gt;Here are the links:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://sites.google.com/site/netbeansscsni/"&gt;http://sites.google.com/site/netbeansscsni/&lt;/a&gt; : very good page with topics and explanation, much like the document I created but somewhat short in some topics.&lt;/li&gt;&lt;li&gt;&lt;a href="http://wiki.netbeans.org/CertExamStudyGuide"&gt;http://wiki.netbeans.org/CertExamStudyGuide&lt;/a&gt; : The study guide from the netbeans wiki. Also very good.&lt;/li&gt;&lt;li&gt;&lt;a href="http://docs.google.com/Doc?id=dx49w9x_122ch742cd6"&gt;http://docs.google.com/Doc?id=dx49w9x_122ch742cd6&lt;/a&gt; : I created this document with lots of links and some passages from the IDE's Help.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;In my opinion, the combination of these 2 links and the one that I created will work pretty well...&lt;br /&gt;Any questions or suggestions feel free to contact me...&lt;br /&gt;&lt;br /&gt;Good luck with the studies.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-4756548758198700891?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/4756548758198700891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=4756548758198700891' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4756548758198700891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4756548758198700891'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/11/sun-certified-specialist-netbbeans-ide.html' title='Sun Certified Specialist NetBeans IDE'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-4052056329129318964</id><published>2008-04-08T09:55:00.002+03:00</published><updated>2008-04-10T12:39:04.908+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><title type='text'>Studying for certification ? Netbeans is the answer...</title><content type='html'>                        For me this is the best IDE so far to help me in my studies in Java Certification.&lt;br id="qy33"&gt; It helped me a lot with SCJP and SCWCD and still helps me a lot with the SCBCD.&lt;br id="dt2h"&gt; &lt;br id="u0qj"&gt; Why ? Because I just download one package of the IDE, install and start coding the examples in the book and studying them...&lt;br id="oc01"&gt; &lt;br id="e.1h"&gt; With some other IDE you need to configure a heck lot of stuff... It drives you away from the fact that you NEED to study the technology and not be configuring it to suit your best needs. Let's face it... If you are studying already a certification is because you have little knowledge about a specific subject and you want to make it better.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-4052056329129318964?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/4052056329129318964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=4052056329129318964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4052056329129318964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/4052056329129318964'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/04/studying-for-certification-netbeans-is.html' title='Studying for certification ? Netbeans is the answer...'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-3733641609822111446</id><published>2008-04-07T22:00:00.000+03:00</published><updated>2008-04-07T21:30:51.356+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='7.10'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>X-Fi on Ubuntu 7.10</title><content type='html'>"&lt;span style="font-style:italic;"&gt;[Alsa-user] Sound Card SB X-Fi Extreme Audio finally working&lt;br /&gt;&lt;br /&gt;mario dupuis&lt;br /&gt;Sun, 13 Jan 2008 11:15:14 -0800&lt;br /&gt;&lt;br /&gt;For those who may have encountered problems with no sound coming from this card&lt;br /&gt;under ubuntu Gutsy-Gibbon 7.10 (kernel 2.6.22-14-generic), here's the solution&lt;br /&gt;that worked for me (could work with other distros as well, but i can't test them&lt;br /&gt;all)&lt;br /&gt;&lt;br /&gt;Download the latest version here:&lt;br /&gt;http://www.alsa-project.org/main/index.php/Main_Page&lt;br /&gt;&lt;br /&gt;After that, do the following in a terminal:&lt;br /&gt;to make sure all will operate correctly, do the following, before any install&lt;br /&gt;$ sudo apt-get install build-essential&lt;br /&gt;and after that you do that:&lt;br /&gt;&lt;br /&gt;$ cd &lt;to_where_you_downloaded_the_alsa-drivers&gt;&lt;br /&gt;$$ tar xvzf alsa-driver-1.0.15.tar.bz2&lt;br /&gt;$$ cd alsa-driver-1.0.15&lt;br /&gt;$$ sudo ./configure&lt;br /&gt;$$ make&lt;br /&gt;$$ sudo make install&lt;br /&gt;&lt;br /&gt;reboot, and it should work&lt;br /&gt;&lt;br /&gt;Another thing, you must deactivate in the volume panel EC958, if it is&lt;br /&gt;activated, and use only analog settings (front/center/side/rear, depending on&lt;br /&gt;your speaker setup, chose only analog front for 2.0 speaker system). You may&lt;br /&gt;have to go into edit--&gt;preferences (into the volume panel) to have the volume&lt;br /&gt;sliders enabled for analog. You may use (although not tested) the digital&lt;br /&gt;settings, if you connect your card to a digital sound system through the digital&lt;br /&gt;output of your soundcard.&lt;br /&gt;&lt;br /&gt;That's the way it worked for me. So don't throw your soundcard over the window,&lt;br /&gt;there is a possible solution.&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;Sadly the sound isn't that awesome as you expect it to be...&lt;br /&gt;The problem is exactly with creative who should let it go of this struggle to keep the drivers from being open sourced... I also have logitech z-10 speakers which make it even more confusing for the system...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-3733641609822111446?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/3733641609822111446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=3733641609822111446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/3733641609822111446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/3733641609822111446'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/04/x-fi-on-ubuntu-710.html' title='X-Fi on Ubuntu 7.10'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-5900805507046125529</id><published>2008-04-07T21:14:00.009+03:00</published><updated>2008-04-07T21:27:53.559+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ejb3'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><title type='text'>NetBeans6.1+EJB3+Struts [PART 4]</title><content type='html'>&lt;div style="text-align: justify;"&gt;  	&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt; You will have something like this (note that the code is folded)&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_plD14pJSI/AAAAAAAAHLE/J3W5IPOck7Q/s1600-h/03.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 457px; height: 71px;" src="http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_plD14pJSI/AAAAAAAAHLE/J3W5IPOck7Q/s320/03.png" alt="" id="BLOGGER_PHOTO_ID_5186569037549217058" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;span style=""&gt;Now Right click the &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;BookCRUDAction&lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt; and select &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;Enterprise Resources-&gt;Call Enterprise Bean.&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;span style=""&gt;Click on &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;MyApp-ejb&lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt;, select &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;BookFacade&lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt; and click &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;OK&lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YSJ3j0HXHX8/R_plpF4pJTI/AAAAAAAAHLM/qtkhFjmhr5M/s1600-h/04.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_YSJ3j0HXHX8/R_plpF4pJTI/AAAAAAAAHLM/qtkhFjmhr5M/s320/04.png" alt="" id="BLOGGER_PHOTO_ID_5186569677499344178" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt; The following method will be implemented for you:&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: italic; text-align: justify;"&gt; private BookFacadeLocal lookupBookFacade()&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt; This way you will be able to access your bean from MyApp-war.&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;span style=""&gt;Now, open struts-config.xml from &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;Configuration Files &lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt;directory and insert these lines:&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;action input="/" name="BookForm" parameter="read" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt; &lt;action input="/" name="BookForm" parameter="update" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt; &lt;action input="/" name="BookForm" parameter="delete" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;    &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;    	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote&gt;&lt;p style="margin-bottom: 0in; font-style: normal;"&gt; &lt;action input="/" name="BookForm" parameter="read" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt; &lt;action input="/" name="BookForm" parameter="update" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt; &lt;action input="/" name="BookForm" parameter="delete" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YSJ3j0HXHX8/R_pnCF4pJUI/AAAAAAAAHLU/C4im5TSSayM/s1600-h/05.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 464px; height: 82px;" src="http://2.bp.blogspot.com/_YSJ3j0HXHX8/R_pnCF4pJUI/AAAAAAAAHLU/C4im5TSSayM/s320/05.png" alt="" id="BLOGGER_PHOTO_ID_5186571206507701570" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;*(&lt;span style="font-weight: bold;"&gt;&lt;span style="font-style: italic;"&gt;somehow i couldnt post these lines in blogger, dunno why...&lt;/span&gt;&lt;/span&gt;)*&lt;br /&gt;&lt;action input="/" name="BookForm" parameter="read" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;action input="/" name="BookForm" parameter="update" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/action&gt;&lt;br /&gt;&lt;action input="/" name="BookForm" parameter="read" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;action input="/" name="BookForm" parameter="update" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;action input="/" name="BookForm" parameter="delete" path="/book.do" scope="request" type="action.BookCRUDAction"&gt;&lt;/action&gt;&lt;/action&gt;&lt;/action&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;   &lt;/div&gt;&lt;p style="margin-bottom: 0in; font-style: normal; text-align: justify;"&gt; These lines will tie the methods from the Action to struts-config mappings.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-5900805507046125529?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/5900805507046125529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=5900805507046125529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/5900805507046125529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/5900805507046125529'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/04/netbeans61ejb3struts-part-4.html' title='NetBeans6.1+EJB3+Struts [PART 4]'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_plD14pJSI/AAAAAAAAHLE/J3W5IPOck7Q/s72-c/03.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-8236529359774793685</id><published>2008-04-07T20:34:00.010+03:00</published><updated>2008-04-07T21:28:26.040+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ejb3'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><title type='text'>NetBeans6.1+EJB3+Struts [PART 3]</title><content type='html'>&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style="margin-bottom: 0in;"&gt;Now right click on &lt;i&gt;MyApp-war&lt;/i&gt;, choose &lt;i&gt;Properties-&gt;Frameworks-&gt;Add-&gt;Struts&lt;/i&gt; and press &lt;i&gt;Ok&lt;/i&gt; and then &lt;i&gt;Ok&lt;/i&gt; one more time.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;If you right click &lt;i&gt;MyApp-war, &lt;/i&gt;&lt;span style="font-style: normal;"&gt;choose Properties and click on &lt;/span&gt;&lt;i&gt;Frameworks&lt;/i&gt;&lt;span style="font-style: normal;"&gt; you are going to notice that Struts Framework was added to the list of &lt;/span&gt;&lt;i&gt;Used Frameworks.&lt;/i&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Now in MyApp-war, &lt;/span&gt;&lt;i&gt;Right Click-&gt;New-&gt;Other...&lt;/i&gt;&lt;span style="font-style: normal;"&gt; and choose &lt;/span&gt;&lt;i&gt;Struts&lt;/i&gt;&lt;span style="font-style: normal;"&gt; in the &lt;/span&gt;&lt;i&gt;Categories&lt;/i&gt;&lt;span style="font-style: normal;"&gt; list.&lt;br /&gt;And in &lt;/span&gt;&lt;i&gt;File Types&lt;/i&gt;&lt;span style="font-style: normal;"&gt; list choose &lt;/span&gt;&lt;i&gt;Struts Action&lt;/i&gt;&lt;span style="font-style: normal;"&gt;.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YSJ3j0HXHX8/R_pdol4pJQI/AAAAAAAAHK0/kMcuIZpH3Hg/s1600-h/02.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_pd014pJRI/AAAAAAAAHK8/cCZgHopwIOQ/s1600-h/02.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_pd014pJRI/AAAAAAAAHK8/cCZgHopwIOQ/s320/02.png" alt="" id="BLOGGER_PHOTO_ID_5186561083269784850" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;br /&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Click &lt;/span&gt;&lt;i&gt;Next &gt; &lt;/i&gt;&lt;span style="font-style: normal;"&gt; and enter the following information:&lt;br /&gt;In&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;i&gt;Class Name&lt;/i&gt;&lt;span style="font-style: normal;"&gt;: BookForm&lt;br /&gt;In &lt;/span&gt;&lt;i&gt;package&lt;/i&gt;&lt;span style="font-style: normal;"&gt;: action&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Click &lt;/span&gt;&lt;i&gt;Finish&lt;/i&gt;&lt;span style="font-style: normal;"&gt; and the FormBean will be created and the information will be written in the struts-config.xml&lt;/span&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;One more time in MyApp-war, &lt;/span&gt;&lt;i&gt;Right Click-&gt;New-&gt;Other...&lt;/i&gt;&lt;span style="font-style: normal;"&gt; and choose &lt;/span&gt;&lt;i&gt;Struts&lt;/i&gt;&lt;span style="font-style: normal;"&gt; in the &lt;/span&gt;&lt;i&gt;Categories&lt;/i&gt;&lt;span style="font-style: normal;"&gt; list.&lt;br /&gt;And in &lt;/span&gt;&lt;i&gt;File Types&lt;/i&gt;&lt;span style="font-style: normal;"&gt; list choose &lt;/span&gt;&lt;i&gt;Struts Action&lt;/i&gt;&lt;span style="font-style: normal;"&gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;a name="DDE_LINK1"&gt;&lt;/a&gt;&lt;span style="font-style: normal;"&gt;Click &lt;/span&gt;&lt;i&gt;Next &gt; &lt;/i&gt;&lt;span style="font-style: normal;"&gt; and enter the following information:&lt;/span&gt;&lt;/p&gt;      &lt;p style="margin-bottom: 0in;"&gt;&lt;a name="DDE_LINK2"&gt;&lt;/a&gt;&lt;i&gt;Class Name&lt;/i&gt;&lt;span style="font-style: normal;"&gt;: BookCRUDAction&lt;/span&gt;&lt;br /&gt;&lt;i&gt;Package&lt;/i&gt;&lt;span style="font-style: normal;"&gt;: action&lt;/span&gt;&lt;br /&gt;&lt;i&gt;Superclass&lt;/i&gt;&lt;span style="font-style: normal;"&gt;: select in the dropdown &lt;/span&gt;&lt;i&gt;MappingDispatchAction&lt;br /&gt;Action Path&lt;/i&gt;&lt;span style="font-style: normal;"&gt;: /book.do&lt;br /&gt;Click &lt;/span&gt;&lt;i&gt;Next &gt;&lt;/i&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;In the second part of the Action Wizard type the following information:&lt;/p&gt;    &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;i&gt;Scope&lt;/i&gt;: Request&lt;br /&gt;&lt;i&gt;ActionFormBean Name&lt;/i&gt;: BookForm&lt;br /&gt;&lt;i&gt;Parameter&lt;/i&gt;: create&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YSJ3j0HXHX8/R_pdol4pJQI/AAAAAAAAHK0/kMcuIZpH3Hg/s1600-h/02.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_YSJ3j0HXHX8/R_pdol4pJQI/AAAAAAAAHK0/kMcuIZpH3Hg/s320/02.png" alt="" id="BLOGGER_PHOTO_ID_5186560872816387330" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;And hit the &lt;i&gt;Finish&lt;/i&gt; button.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;The BookCRUDAction is then opened in your editor window. The mapping for the newly created Action is also added in struts-config.xml.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Now change the signature of the method from:&lt;/p&gt;    &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;    public ActionForward &lt;b&gt;customMethod&lt;/b&gt;(ActionMapping mapping, ActionForm  form,&lt;br /&gt;HttpServletRequest request, HttpServletResponse response) throws Exception&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;to:&lt;/p&gt;    &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;    public ActionForward &lt;b&gt;create&lt;/b&gt;(ActionMapping mapping, ActionForm  form,&lt;br /&gt;HttpServletRequest request, HttpServletResponse response) throws Exception&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;This is done to be aligned with the information that was typed in the Parameter box while creating the Action class.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Copy and paste the entire method &lt;span style=""&gt; THREE more times so you will have the &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;read&lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;update &lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style=""&gt;delete&lt;/span&gt;&lt;/i&gt;&lt;span style=""&gt; methods.&lt;/span&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-8236529359774793685?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/8236529359774793685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=8236529359774793685' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/8236529359774793685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/8236529359774793685'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/04/netbeans61ejb3struts-part-3.html' title='NetBeans6.1+EJB3+Struts [PART 3]'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_pd014pJRI/AAAAAAAAHK8/cCZgHopwIOQ/s72-c/02.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-3900481587983326896</id><published>2008-04-02T22:23:00.005+03:00</published><updated>2008-04-03T09:19:47.485+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ejb3'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><title type='text'>NetBeans6.1+EJB3+Struts [PART 2]</title><content type='html'>   	&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Click &lt;i&gt;Next&lt;/i&gt; and in &lt;i&gt;packages&lt;/i&gt; you type &lt;i&gt;entities &lt;/i&gt;and hit the &lt;i&gt;Finish&lt;/i&gt; button.&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;This will generate the Java POJO's for you directly from the Database with all of the Annotations required.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Now navigate to &lt;i&gt;Source Packages&lt;/i&gt; and open your Java Class. Take a look at how much code the IDE has already created. Also methods like &lt;i&gt;hashCode&lt;/i&gt;, &lt;i&gt;equals&lt;/i&gt; and even a &lt;i&gt;@NameQueries&lt;/i&gt; annotation was added.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;font style="font-style: normal;"&gt;Now add &lt;/font&gt;&lt;i&gt;@GeneratedValue(strategy = GenerationType.AUTO)&lt;/i&gt;&lt;font style="font-style: normal;"&gt; to the top of your id field.&lt;/font&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;After adding the Annotation your code will look like this:&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;    &lt;/p&gt;    &lt;p style="margin-bottom: 0in;"&gt;&lt;i&gt;@Id&lt;br /&gt;@Column(name = "ID", nullable = false)&lt;br /&gt;@GeneratedValue(strategy = GenerationType.AUTO)&lt;br /&gt;private Integer id;&lt;/i&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;This will tell the Entity Manager to take care of the ID sequence.&lt;/p&gt;      &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Right click again on &lt;i&gt;MyApp-ejb&lt;/i&gt;,  &lt;i&gt;New-&gt;Other-&gt;Persistence-&gt;Session Beans for Entity Classes.&lt;/i&gt;&lt;br /&gt;Click on &lt;i&gt;Next&lt;/i&gt;&lt;br /&gt;select the entity class available&lt;br /&gt;click Add &gt;&lt;br /&gt;And click &lt;i&gt;Finish&lt;/i&gt;.&lt;/p&gt;      &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;This will create the the Session Bean interface and the implementation.&lt;br /&gt;Two classes will open in your editor.&lt;br /&gt;Click on the &lt;i&gt;Facade&lt;/i&gt; one and check it out all of the methods that the IDE generated one more time for you. You have a CRUD just with few clicks. ;)&lt;br /&gt;&lt;br /&gt;Creating all of those classes through the IDE diminishes the eventuality of error-prone code of the many, many Session Beans you might be creating by hand. And also removes the tedious/slow work of editing xml's and the necessity of redundant code writing. ;)&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-3900481587983326896?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/3900481587983326896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=3900481587983326896' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/3900481587983326896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/3900481587983326896'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/04/netbeans61ejb3struts-part-2.html' title='NetBeans6.1+EJB3+Struts [PART 2]'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-3033429300211853911</id><published>2008-04-02T22:09:00.012+03:00</published><updated>2008-04-03T09:19:08.734+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ejb3'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><title type='text'>NetBeans6.1+EJB3+Struts [PART 1]</title><content type='html'>&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { size: 8.5in 11in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;&lt;/style&gt;Hi all, I just decided to start a blog and with the new blog comes already a review about the new NetBeans 6.1, still in beta phase but incredibly stable and FAST.   &lt;p style="margin-bottom: 0in;"&gt;&lt;a name="DDE_LINK1"&gt;&lt;/a&gt;In this tutorial we will use NetBeans 6.1 Web &amp;amp; Java EE version.&lt;br /&gt;This is the list of software one might need:&lt;/p&gt;   &lt;ul&gt;&lt;li&gt;JDK 1.5&lt;/li&gt;&lt;li&gt;GlassFish V2 UR1&lt;/li&gt;&lt;li&gt;some database (I will use for this tutorial java db but mysql is also a good option)&lt;/li&gt;&lt;/ul&gt;  &lt;p style="margin-bottom: 0in;"&gt;NetBeans 6.1 Web &amp;amp; Java EE comes already bundled with GlassFish and Tomcat. In just 105 mb!!!. It's awesome to download just one package and a small one.&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;With NB6.1 you will see how fast it can be to configure/create/code with it.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;I will assume that you have already a table in one database of your preference.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;After downloading, installing and running NetBeans you will need to create a new project.  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Click in &lt;i&gt;File-&gt;New Project...&lt;/i&gt;&lt;span style="font-style: normal;"&gt;choose &lt;/span&gt;&lt;i&gt;Enterprise&lt;/i&gt;&lt;span style="font-style: normal;"&gt; and then &lt;/span&gt;&lt;i&gt;Enterprise Application.&lt;/i&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Inside the &lt;/span&gt;&lt;i&gt;Enterprise Application&lt;/i&gt;&lt;span style="font-style: normal;"&gt; NetBeans will automatically create for you an &lt;/span&gt;&lt;i&gt;EJB Module &lt;/i&gt;&lt;span style="font-style: normal;"&gt;and &lt;/span&gt;&lt;i&gt;Web Application Module&lt;/i&gt;&lt;span style="font-style: normal;"&gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Type &lt;/span&gt;&lt;i&gt;MyApp&lt;/i&gt;&lt;span style="font-style: normal;"&gt; in the Project Name and leave all of the other settings as it is.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YSJ3j0HXHX8/R_PasV4pJKI/AAAAAAAAHJE/b5a7JeWSkz4/s1600-h/01.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_YSJ3j0HXHX8/R_PasV4pJKI/AAAAAAAAHJE/b5a7JeWSkz4/s320/01.png" alt="" id="BLOGGER_PHOTO_ID_5184728051357394082" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;    &lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { size: 8.5in 11in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Click in &lt;/span&gt;&lt;i&gt;Next&lt;/i&gt;&lt;span style="font-style: normal;"&gt; and &lt;/span&gt;&lt;i&gt;Finish&lt;/i&gt;&lt;span style="font-style: normal;"&gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-style: normal;"&gt;Notice that in on the left side in the &lt;/span&gt;&lt;i&gt;Projects&lt;/i&gt;&lt;span style="font-style: normal;"&gt; tab 3 modules were added: &lt;/span&gt;&lt;i&gt;MyApp, MyApp-ejb &lt;/i&gt;&lt;span style="font-style: normal;"&gt;and &lt;/span&gt;&lt;i&gt;MyApp-war.&lt;/i&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;Right click on &lt;i&gt;MyApp-ejb &lt;/i&gt;and select &lt;i&gt;New-&gt;Other-&gt;Persistence-&gt;Persistence Unit.&lt;/i&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Click in the dropdown box in&lt;i&gt; Data Source &lt;/i&gt;and select your DB connection. Then in &lt;i&gt;Table Generation Strategy &lt;/i&gt;select &lt;i&gt;create. &lt;/i&gt;And leave &lt;i&gt;Use Java Transaction APIs selected.&lt;/i&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-style: normal;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_Pbml4pJLI/AAAAAAAAHJM/NccKImIo5_8/s1600-h/01-p.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_YSJ3j0HXHX8/R_Pbml4pJLI/AAAAAAAAHJM/NccKImIo5_8/s320/01-p.png" alt="" id="BLOGGER_PHOTO_ID_5184729052084774066" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-style: normal;"&gt;    &lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)"&gt;    &lt;style type="text/css"&gt;  &lt;!--   @page { size: 8.5in 11in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Once &lt;i&gt;Finish&lt;/i&gt; is clicked a persistence.xml tab will open.&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;The persistence unit will tell your container how the entities will be persisted and managed in the application.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;Now right click again in &lt;i&gt;MyApp-ejb&lt;/i&gt; and select &lt;i&gt;New-&gt;Entity Classes from Database&lt;/i&gt;.  &lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: normal;"&gt;In &lt;i&gt;Data Source&lt;/i&gt; select the JNDI name that you have configured and the tables will appear in the right side of the panel, select the table you want to create the Java Classes and click in &lt;i&gt;Add&gt;&lt;/i&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YSJ3j0HXHX8/R_PcY14pJMI/AAAAAAAAHJU/iy_3ntsGhbs/s1600-h/02-session+bean.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_YSJ3j0HXHX8/R_PcY14pJMI/AAAAAAAAHJU/iy_3ntsGhbs/s320/02-session+bean.png" alt="" id="BLOGGER_PHOTO_ID_5184729915373200578" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-3033429300211853911?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/3033429300211853911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=3033429300211853911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/3033429300211853911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/3033429300211853911'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/04/netbeans61ejb3struts-part-1.html' title='NetBeans6.1+EJB3+Struts [PART 1]'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_YSJ3j0HXHX8/R_PasV4pJKI/AAAAAAAAHJE/b5a7JeWSkz4/s72-c/01.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2294552994579990626.post-8124310221231589860</id><published>2008-03-30T15:09:00.003+03:00</published><updated>2008-03-30T16:52:51.080+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='deploy'/><category scheme='http://www.blogger.com/atom/ns#' term='nullpointer'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><title type='text'>Can't publish web app to GlassFish</title><content type='html'>"&lt;span style="font-style: italic;"&gt;Hi, &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;The easy fix for this is to add your Dynamic Web Project to an EAR project - &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;EDIT: you could also just update your eclipse, I just did this, and the patch is included in the WTP updates, after I found the solution with adding it to an EAR project, I installed the updates, and verified that it works with publishing a WAR file as well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;For me that works like a charm, I'm running eclipse 3.3.2 (j2ee distribution) and GlassFish v2ur1 and the GlassFish eclipse plugin on Ubuntu Linux 7.10. (eclipse and glassfish are totally fresh installs)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;If you already have a Dynamic Web Projecct, then create a new EAR project (right click in project explorer and select "new -&gt; project..." and under j2ee select "Enterprise Application Project" name it, and follow the wizard, then selecting your Dynamic Web Project.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Then under your server view, right click on your server and select "add and remove projects..." and add your EAR project.&lt;/span&gt;"&lt;br /&gt;&lt;a href="http://forums.java.net/jive/thread.jspa?threadID=37469&amp;amp;tstart=1"&gt;http://forums.java.net/jive/thread.jspa?threadID=37469&amp;amp;tstart=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I also found out that by removing the white spaces in between your workspace would solve the problem. I had a similar problem with Glassfish but in NetBeans. Maybe not a problem of eclipse/netbeans at all...(?!)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2294552994579990626-8124310221231589860?l=rhawi.dantas.biz' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhawi.dantas.biz/feeds/8124310221231589860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2294552994579990626&amp;postID=8124310221231589860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/8124310221231589860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2294552994579990626/posts/default/8124310221231589860'/><link rel='alternate' type='text/html' href='http://rhawi.dantas.biz/2008/03/cant-publish-web-app-to-glassfish.html' title='Can&apos;t publish web app to GlassFish'/><author><name>Rhawi Dantas</name><uri>http://www.blogger.com/profile/16516916817897725904</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
