Screencast #37: Java EE 6 with NetBeans and GlassFish - Webinar Replay and Q&A

The replay of Java EE 6 with NetBeans and GlassFish webinar is now available:

This video can also be seen in full screen HD mode.

The complete source code built during this webinar can be downloaded here.

And here is a transcript of Q&A session from the webinar:

Q. How can I using NetBeans generate an entity class with SequenceGenerator annotation for a PostGreSQL table?
A. If you use NetBeans to generate entities from database, it should do the right thing, based on the SQL types of your DB columns. If not, please file a bug report against NetBeans. Thanks.

Q. Do I need to have a good idea in Java EE 6 to attend this conference ?
A. I would help a bit, but NetBeans is doing a great job at helping discovering Java EE 6 with GlassFish

Q. Is there a EOL for GlassFish?
A. There is no EOL for GlassFish as a product. As the reference implementation for Java EE, GlassFish is a strategic product for Oracle. As with any software product, specific versions of GlassFish will EOL over time, as newer releases come out. For example, Oracle GlassFish Server 2.x will be supported until 2014, and we are working now on releasing GlassFish Server 3.1 in the near future.

Q. What is the link to file a bug report for NetBeans IDE?
A. This should help: http://netbeans.org/community/issues.html

Q. Can we you eclipse instead of netBeans?
A. Yes. The GlassFish Eclipse Plugin is available. Screencast #36 shows how to use Eclipse for Java EE 6 development and deployment with GlassFish.

Q. I would love to see a GF 3.0.2 fixing the known memory leaks. Any plans on that, or will it be GF 3.1? (And when?)
A. Fixes for GlassFish Server 3.0.1 will be available either through a support contract (patch), or you can always publish an issue on issuetracker at http://glassfish.java.net, and it will get addressed in the trunk (and 3.1 releases).

Q. Hi, My name is Andrew. i'd like to know all the possible ways to pass values between different JSF pages.and the value which need to be passed is dynamic. A. The easiest way is to use the new Flash scope in JSF 2.0. Failing that you can put it in session and remove it. You could also use @ConversationScoped from CDI.

Q. Why we have no glassfish rpm packets even for Oracle Enterprice Linux?
A. We have to support many Unix/Linux variant so we provide one shell script for all flavors including OS X. In the next release we provide topology creation in the installer which make a RPM less viable. Zip installs are also available.

Q. can you repeat? what blog?
A. The blog we mentioned is hosted by Arun Gupta, blogs.sun.com/arungupta - and a link to all webinar content will always be available at http://glassfish.org/webinars/

Q. How do we do junit without depending on Glassfish server. I want my junit to be totally independent of runtime.
A. If you want to test EJB and CDI code, you will need the embeddable container, which is server-specific. If you want to only test utility classes or JPA, this can be server-independent.

Q. is there any online classes on Java EE6 with Netbeans and GlassFish?
A. This is a great starting page: http://netbeans.org/kb/trails/java-ee.html. See for example the 5-part video screencast.


Q. it is possible.. they dont have any support
A. If you are asking about support for the products, yes - support is available from Oracle for GlassFish server, and for Netbeans you can go to http://netbeans.org/community/lists/index.html You can also obtain incident support for Netbeans from Oracle at http://netbeans.org/kb/support.html If you would like more information, please email glassfish_ww@oracle.com

Q. What kind of support is NetBeans providing for REST frameworks like Spring-RS?
A. NetBeans has a very good and extensive REST support for JerSey (The reference implementation of JAX-RS) and GlassFish 3 which contains JerSey. For Sprin-RS you would need to regsiter as an external library... I am not sure how well it is tested with GlassFish, since there is no need to use a external RS implementation when one is provided in the Java EE 6 runtime

Q. I feel like this is just a heavy adaptation of the Ruby on Rails scaffolding capability, don't you think ?
A. Yes, Rails definitely had a good influence on Java server-side development. Many good things in Java are inspired by Rails.

Q. where i can download Netbeans ?
A. netbeans.org

Q. What is the difference between singleton EJB and an EJB with maxbeans-in pool=initialbeans-inpool=1 ?
A. A quick answer is that the @Singleton annotation is defined by the Java EE 6 specification, is much more readable by developers, and less error-prone than editing container configuration (or other historical workarounds such as static fields). You can also ask at the GlassFish users forum at http://www.java.net/forums/glassfish/glassfish

Q. My Netbeans 6.9.1 does not have Servers or Glassfish on the Services tab, do I need Netbeans 7 to bring up Servers?
A. Which edition of NetBeans do you have? If you have "all-in-one", then the Java EE development features may not be activated. When you start creating a web project, these features will be activated and you will see Servers. You need "Java" or "all-in-one" edition.

Q. What is the Oracle strategy to move forward with NETBEANS and Jdeveloper?
A. Both will continue as supported IDEs at Oracle. Jdeveloper is usually for ADF development and other Fusion development. NetBeans is great for cutting edge Java SE/EE/FX/ME development. Large teams continue to work on both products. They are both swing based IDE tools -- JDeveloper may start to incorporate select netbeans features in the future.

Q. I understand netbeans IDE, but what is the benefit of glassfish?
A. GlassFish offers a lightweight, modular Java EE 6 runtime. It offers rapid development features such as saving HTTP session state on redeploy.

Q. What make me move to glassfish since there's lot IDE tools ?
A. GlassFish offers a lightweight, modular, and productive runtime for Java EE 6.

Thank you every body for attending the webinar!

The complete list of webinars (replay and upcoming ones) is listed at glassfish.org/webinars.

Technorati: conf webinar javaee6 glassfish netbeans

Comments:

Thanks for such great post having such useful video with questionnaire. I save this and would like to visit this site again.

Posted by java ecommerce on January 21, 2011 at 08:42 PM PST #

Mr. Gupta, do you have an alternate download URL for this video, one that allow me to use some sort of download accelerator? I'm from extreme north of Brazil and our internet link here is very very slow, like dial-up one.

Thanks for your great job.

Posted by Davi Shibayama on January 22, 2011 at 10:48 AM PST #

At 29:42 when you select the friendEJB.create and it is highlighted, I am not getting that highlight and ability to jump to create(). As a consequence my create page gives a java.lang.ClassCastException. Can't get over this. Suggestions?

Posted by Keith Smith on January 26, 2011 at 03:52 AM PST #

Compliments.

Do you already have a tutorial on Desktop Application Database: Client and Embedded.
Especially the one that has a sample of Network Database connections and that can handle multiple request to the database per time.

An example is the CRUD sample on Netbeans (http://platform.netbeans.org/tutorials/nbm-crud.html) but I am having a challenge with that particular sample. So, can you specify more samples, to help in resolving the issue.

Thanks for this piece, it has been very helpful.

Posted by John Okewole on January 26, 2011 at 12:48 PM PST #

Davi,

This tutorial can be viewed at http://www.youtube.com/watch?v=UBNaiVWwAZw as well. There are external tools available that will allow you to download the video for offline viewing.

Posted by Arun Gupta on January 28, 2011 at 07:22 AM PST #

John,

Please post your questions on that tutorial to nbusers@netbeans.org or more details about contacting NetBeans community are at:

http://netbeans.org/community/lists/index.html

Posted by Arun Gupta on January 28, 2011 at 07:24 AM PST #

Keith,

Does your EJB have that method defined ?

Posted by Arun Gupta on January 28, 2011 at 07:27 AM PST #

I have tried this but getting errors, the only change i made was friend to person entity.
when i try to run the testservlet part through the ejb . I get Illegalstatexcecption. The database is the samples and is connected. The error seems to be coming from the return em.createNamedQuery("Person.findAll").getResultList();

any ideas ? and what can I do about it.

Posted by adrianm on February 04, 2011 at 08:04 PM PST #

adrianm,

Does Person entity has the query Person.findAll NamedQuery ?

What is the exact error message ?

Output from server.log ?

Posted by Arun Gupta on February 08, 2011 at 06:52 AM PST #

Hi Arun
Thanks for that I did track down the problem it was due to the templates not having all these in them...
@Stateless
@Named
public class PersonSessionBean {

@PersistenceContext
EntityManager em;
@Inject Person person;
and ...
@Named
@RequestScoped
@Entity
@Table(name = "PERSON", catalog = "", schema = "APP")
@XmlRootElement

when i added all the persistence tags into the files it started working.

Posted by adrianm on February 09, 2011 at 04:31 AM PST #

Thank you for the webinar. I am stumbled at the place where we create beans.xml CDI file and datatable for Firends records. The deployer complains about not being able to parse beans.xml (I have it empty as suggested). On the other hand, the downloaded sample code is being deployed without problems. Silly situation, but I could not locate the difference in the sample code and the one that I created during Webinar. Any suggestions? Here is the error message The error states: deploy?DEFAULT=*****/JavaEE6Webinar/build/web&name=JavaEE6Webinar&force=true failed on GlassFish Server 3.1 Error occurred during deployment: Exception while loading the app : WELD-001202 Error parsing file:*****/JavaEE6Webinar/build/web/WEB-INF/beans.xml. Please see server.log for more details. *****/JavaEE6Webinar/nbproject/build-impl.xml:720: The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source)

Posted by guest on May 16, 2011 at 02:11 AM PDT #

guest, What version of NetBeans ? Have you tried "Clean and Build" and then Deploy the project again ? An empty beans.xml should not give any errors at all.

Posted by Arun Gupta on May 16, 2011 at 02:36 AM PDT #

I am having problems with netbeans. I have tried to install and uninstalling it several time but am still getting the error. What to do?

Posted by guest on July 12, 2011 at 04:41 AM PDT #

What error are you getting ?

Posted by Arun Gupta on July 12, 2011 at 10:28 AM PDT #

well appreciated.but still interested in having the link for the download of the video and Java EE 6 with NetBeans and GlassFish pdf tutorial

tnx

Posted by nnaemeka on September 26, 2011 at 02:58 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today