Tuesday August 18, 2009
LOTD #22: How to inject JPA resources ? - PersistenceUnit vs PersistenceContext
Java Persistence API defines a standard object/relational mapping using
POJOs. In JPA, a persistence
unit is described using "persistence.xml", bundled with
the web application, injected into your web application and then POJOs
are used to access all the information from the underlying persistence
mechanism such as a database.
JPA can injected into your application couple of different ways as
shown below:
| @PersistenceUnit EntityManagerFactory emf; |
| @PersistenceContext EntityManager manager; |
Posted by Arun Gupta in General | Comments[1]
|
|
|
|
|
Wednesday April 22, 2009
LOTD #21: Production Deployment Tips for running Rails on GlassFish v2 using Windows
SeaChange
Affinity uses Rails and GlassFish
as their deployment platform. One of their core developers posted
tips based upon their experience so far and they are
available at:
Rails
on GlassFish v2 using Windows
Here are some of the quotes:
Glassfish can really
handle a heavy load
and
handling 400
simultaneous users under a supremely heavy load, the
memory was holding great
All previous links in this series are archived at LOTD.
Technorati: lotd
glassfish
jruby
rubyonrails
windows
Posted by Arun Gupta in web2.0 | Comments[0]
|
|
|
|
|
Thursday April 09, 2009
LOTD #20: How to create a JPA application using GlassFish Tools Bundle for Eclipse ?
Here is a great screencast (from the community) that shows how to
create a JPA application
using EclipseLink and deploy on GlassFish v2.1 - all using GlassFish
Tools Bundle for Eclipse.
Click on the image below for the video:

Thanks!
I'll work on a MySQL version of it :)
All previous links in this series are archived at LOTD.
Technorati: lotd
glassfish
eclipse
jpa javadb screencast
Posted by Arun Gupta in General | Comments[4]
|
|
|
|
|
Wednesday April 01, 2009
LOTD #18: Campus Ambassadors presenting on GlassFish - France & India
Agnieszka and Julien, the Sun
Campus Ambassadors at INSA
Lyon presented
on GlassFish.
Read the complete report here
and enjoy a picture:

Here is another
report on Hibernate/NetBeans/GlassFish presentation - again
at INSA Lyon.
Dwarkanath, the Campus Ambassador at Sastra, presented on
GlassFish as part of Student Technology Camp. Read the complete report here
and enjoy a picture:

If you are interested in learning/talking about GlassFish at your
university, spotlight.dev.java.net/start
provides a comprehensive set of slides (with speaker notes), demos,
screencasts, training materials and other resources to get you started!
All previous links in this series are archived at LOTD.
Technorati: lotd
glassfish
students
campusambassadors
france
india
spotlight
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Monday February 09, 2009
LOTD #17: Sun GlassFish Enterprise Server Administration and Deployment Course - SAS 4455
![]() |
Interested in learning how to configure, administer,
and deploy web applications, EJB applications, and Web services on
GlassFish ? This 4-day instructor-led workshop (with numerous hands-on labs) introduces you to various Sun GlassFish Enterprise Server (GlassFish) concepts and functions ranging from introductory to advanced and provides you with hands-on experience via remote labs. You also learn to enable various advanced GlassFish features, such as in-memory replication, high availability database (HADB), load balancing, monitoring and logging, clustering, and security. |
Posted by Arun Gupta in web2.0 | Comments[0]
|
|
|
|
|
Wednesday February 04, 2009
LOTD #16: Hotspot Flags, JRuby Version String, and JRuby/MRI Benchmark
This post shares 3 links that were recently published.
The first one is about the Favorite
Hotspot JVM Flags by Charlie.
See how you can use them for tweaking performance or investigating
runtime metrics.
The second one is about using JRuby
Version String. It explains the detailed meaning of the
version string printed by "jruby --version". If you read it carefully
then you know the date, hardware, platform, SVN revision and even state
of Charlie's local git-svn clone.
The third and the last one is about benchmark results between MRI and
JRuby with the following summary:
From my tests it appears
that MRI is faster in single threaded mode, but JRuby makes up for the
loss big time in the multi-threaded tests. It's also interesting to see
that the multi-threaded mode gives MRI(green threads) a performance
boost, but it's nowhere close to the boost that JRuby(native threads)
can squeeze out from using multiple threads.
Read Igor's
report for more results.
And while you are reading this entry, did you know that GlassFish
Gem 0.9.2 was recently
released ? Use it for running your Rails applications
seamlessly :)
All previous entries in this series are archived at LOTD.
Technorati: lotd
glassfish
v3 gem jruby ruby hotspot vm
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Wednesday December 03, 2008
LOTD #15: Deploying Merb application on GlassFish v3 using Warbler
GlassFish
v3 with Merb and Warbler explains how to use Warbler to
deploy a Merb application on GlassFish
v3. Here is a quote from the blog:
this lovely server had a
gem which you can use to fire up a Glassfish server. Easy as pie and
within no time at all we were developing our Merb app on Glassfish.
The blog requires some workaround for Warbler and Nick is
planning to fix them in the next rev. And other workaround is required
because of Webrat's
recently introduced dependency on Nokogiri
which does not run on JRuby yet.
In addition, TOTD
#52 explains how to deploy a Merb application using GlassFish
gem and TOTD
#53 explains how to create a scaffold in Merb.
Submit your Merb/GlassFish bugs here,
talk to us using GlassFish
Forum, and get the latest information on JRuby
wiki.
All previous entries in this series are archived at LOTD.
Technorati: lotd
glassfish
v3 gem warbler merb
Posted by Arun Gupta in web2.0 | Comments[3]
|
|
|
|
|
Monday November 24, 2008
![]() |
GlassFish v2 allows you to configure cluster of multiple nodes/instances to meet various availability requirements, from the highly scalable service availability configuration to the business-critical, 99.999% service-and-data availability configuration. A cluster can be deployed using different toplogies with a choice of service/data availability, in-Memory/HADB, co-located/non-colocated and other factors. This new white paper explains reference configurations on that can be used for deploying business services. |
Posted by Arun Gupta in General | Comments[4]
|
|
|
|
|
Wednesday November 12, 2008
LOTD #13: Warbling with RMagick on GlassFish

GlassFish
with RMagick explains the Warbler configuration required for
using RMagick
with GlassFish.
Did you know Rails application can be natively deployed on GlassFish v3 Prelude
? And you can even buy
production support!
All previous entries in this series are archived at LOTD.
Technorati: lotd
rubyonrails
rmagick
glassfish
Posted by Arun Gupta in web2.0 | Comments[2]
|
|
|
|
|
Wednesday November 05, 2008
LOTD #12: Technorati State of the Blogosphere 2008
Technorati.com released State
of the Blogosphere 2008. Here are some results from the
report:










All previous entries in this series are archived at LOTD.
Technorati: lotd
blogosphere
technorati
2008
Posted by Arun Gupta in General | Comments[3]
|
|
|
|
|
Friday October 10, 2008
LOTD #10: Running GlassFish on Joyent Accelerator
![]() |
Joyent provides a cloud computing environment for all your needs. |
Posted by Arun Gupta in General | Comments[4]
|
|
|
|
|
Saturday September 27, 2008
LOTD #9: Advantages of JRuby over MRI
Andreas blogged about why he likes
JRuby even though he dislikes Java.
JRuby is "It's just
Ruby" with more than 50,000 tests to ensure MRI compliance. The blog
highlights that there is no need to know Java, at all, to run JRuby.
Here are
some advantages that are described in the blog:
Posted by Arun Gupta in web2.0 | Comments[5]
|
|
|
|
|
Friday September 19, 2008
LOTD #8: sun.com/students launched: Everything about Sun and Students
sun.com/students
is one-stop for all students interested in Sun Microsystems.
It has content related to all students:
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
|
Thursday September 18, 2008
LOTD #7: Happy User of FREE GlassFish Hosting @ OStatic/LayerTech
Alex De Marco is a happy
user of FREE 12-months GlassFish Hosting @ OStatic. Here is
what he has to say:
Many thanks to OStatic
and LayeredTech for offering free hosting, and to Sun for providing a
powerful yet free application development stack: Glassfish, Java,
MySQL, and OpenSolaris. VERY MUCH appreciated!
You can avail this exclusive and limited-time offer here!
Technorati: glassfish
startup
hosting
ostatic
layeredtech
Posted by Arun Gupta in General | Comments[2]
|
|
|
|
|
Tuesday August 26, 2008
LOTD #6: Rails Deployment on GlassFish in 4 steps and 15 minutes
Charlie describes,
in 4 easy steps, how to deploy any Rails
application on GlassFish:

The main steps are:
Step 1: The App Server
Step 2: Package your App
Step 3: Deploy your application
Step 4: Tweaking (Optional)
And it should only take 15 minutes on GlassFish v2!
The conclusion of the blog is:
Hopefully
this walkthrough clears up some confusion around JRuby on Rails
deployment to an app server. It's really a simple process, despite the
not-so-simple history surrounding Enterprise Application Servers, and
GlassFish almost makes it fun :)
The next version, GlassFish
v3, allows Rails application to be deployed natively, i.e. no
packaging is required. You create a Rails application and run it - just
the way you are used to! Read all about it here.
All previous entries in this series are archived at LOTD.
Technorati: lotd
rubyonrails
jruby ruby glassfish
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Today's Page Hits: 4436
Total # blog entries: 1009