<?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-3652125895997164070</id><updated>2012-01-30T11:55:09.841-06:00</updated><category term='REST web service jersey glassfish'/><category term='EJB'/><category term='JPA'/><category term='remote EJB server'/><category term='jdbc'/><category term='authentication'/><category term='EJB client'/><category term='rails'/><category term='jndi'/><category term='MySQL log4j'/><title type='text'>Sud's Blog</title><subtitle type='html'>Java, Eclipse, GlassFish, TopLink, AspectJ, Bash</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-6369252358256263585</id><published>2009-07-24T15:09:00.002-05:00</published><updated>2009-07-24T15:17:20.090-05:00</updated><title type='text'>Eclipse WTP missing in Pulse Catalog</title><summary type='text'>If you use pulse to manage your local eclipse installation (if not, you should check it out) the Galileo profiles are slightly different from Ganymede. Previously you could add WTP to your profile. But now, WTP is no longer listed in the catalog and there is no way to add it to a profile. Instead, you must start with the Java EE profile (which BTW also brings in Mylyn and Data Tools). I learnt </summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/6369252358256263585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=6369252358256263585' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/6369252358256263585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/6369252358256263585'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2009/07/eclipse-wtp-missing-in-pulse-catalog.html' title='Eclipse WTP missing in Pulse Catalog'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-7496296635788246820</id><published>2009-01-27T19:31:00.003-06:00</published><updated>2009-01-27T19:43:41.237-06:00</updated><title type='text'>Bash command completion</title><summary type='text'>If you cannot live without command completion in the linux shell, check this out...you can even get completion working for command arguments!! I was pretty thrilled to learn about this.See the debian documentation for details. In Ubuntu Hardy, the /etc/bash_completion that provides this functionality is missing. You can download this missing file from here. I extracted it from the source. </summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/7496296635788246820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=7496296635788246820' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/7496296635788246820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/7496296635788246820'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2009/01/bash-command-completion.html' title='Bash command completion'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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-3652125895997164070.post-2144923274783360024</id><published>2008-10-28T15:07:00.004-05:00</published><updated>2008-10-28T15:16:12.508-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><title type='text'>One reason a Rails application breaks with no error message</title><summary type='text'>I'm new to Ruby and Rails and spent about 3 hours trying to figure out why objects of my Purchase model which references my Transaction model weren't being presisted. Rails would say that the object was saved in the database but there were no records being created. Also Rails wouldn't throw any error message either.After pulling hair for 3 hours I nailed it down to my Transaction model. </summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/2144923274783360024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=2144923274783360024' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/2144923274783360024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/2144923274783360024'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2008/10/one-reason-rails-application-breaks.html' title='One reason a Rails application breaks with no error message'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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-3652125895997164070.post-831531094553258949</id><published>2007-11-07T13:06:00.000-06:00</published><updated>2007-11-07T13:15:39.844-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL log4j'/><title type='text'>Log4j and MySQL</title><summary type='text'>When configuring log4j with an appender to log to a MySQL database there are some nuances you might need to be aware of.First, here is what the relevant settings in the log4j.properties file should look like:# Set root logger level to DEBUG and its only appender to DB.log4j.rootLogger=DEBUG, DB# The database loggerlog4j.appender.DB=org.apache.log4j.jdbc.JDBCAppenderlog4j.appender.DB.URL=jdbc:</summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/831531094553258949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=831531094553258949' title='73 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/831531094553258949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/831531094553258949'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2007/11/log4j-and-mysql.html' title='Log4j and MySQL'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>73</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-8098826738193307213</id><published>2007-10-30T18:50:00.001-05:00</published><updated>2008-03-23T15:21:16.547-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='REST web service jersey glassfish'/><title type='text'>Hello World! REST web service using Jersey and Glassfish</title><summary type='text'>Recently I had the need to expose some EJB application functionality to a client PHP application. I wanted to avoid the heavy weight SOAP protocol and REST seemed like a good choice. Wanting to stay within the JAVA language for a more seamless developer experience I came across the JSR 311  spec and the implementation Jersey.If you are a JAVA programmer and are wanting to use REST in your </summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/8098826738193307213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=8098826738193307213' title='112 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/8098826738193307213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/8098826738193307213'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2007/10/hello-world-rest-web-service-using.html' title='Hello World! REST web service using Jersey and Glassfish'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>112</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-2041906658389607708</id><published>2007-10-26T09:04:00.000-05:00</published><updated>2007-10-26T09:14:48.710-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EJB'/><category scheme='http://www.blogger.com/atom/ns#' term='authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='remote EJB server'/><category scheme='http://www.blogger.com/atom/ns#' term='EJB client'/><title type='text'>Programmatic Login to Authenticate Against a EJB in Glassfish</title><summary type='text'>What?This is the method used to authenticate a standalone java client (including Eclipse RCP plugins) to the Glassfish EJB container.Referenceshttp://java.sun.com/developer/EJTechTips/2006/tt0225.html#2How?See here on how to configure Glassfish's server.policy file: https://glassfish.dev.java.net/javaee5/docs/DG/beabg.html#beacmMake sure the following jars from Glassfish are in the classpath:</summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/2041906658389607708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=2041906658389607708' title='141 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/2041906658389607708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/2041906658389607708'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2007/10/programmatic-login-to-authenticate.html' title='Programmatic Login to Authenticate Against a EJB in Glassfish'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>141</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-5195925934502915516</id><published>2007-07-08T12:31:00.000-05:00</published><updated>2007-07-08T12:34:38.699-05:00</updated><title type='text'></title><summary type='text'>Set the Application Server &gt; Logging &gt; Log Levels &gt; Deployment &gt; Debugging to FINE to quickly troubleshoot deployment issues in Glassfish</summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/5195925934502915516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=5195925934502915516' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/5195925934502915516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/5195925934502915516'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2007/07/set-debugging-to-fine-to-quickly.html' title=''/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-1534944339592847048</id><published>2007-03-04T16:07:00.000-06:00</published><updated>2007-03-04T16:36:17.304-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='remote EJB server'/><category scheme='http://www.blogger.com/atom/ns#' term='EJB client'/><title type='text'>Standalone EJB 3.0 client for remote EJB server</title><summary type='text'>In order for a client to connect to your remote GlassFish server you need to add a second IIOP listener with the hostname listening at a different port (ex: 3701). You can do this via the GlassFish admin console.Create a Java project in Eclipse that will be a standalone EJB 3.0 client application.When deploying the previously created EJB jar on glassfish using the admin console check the option </summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/1534944339592847048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=1534944339592847048' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/1534944339592847048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/1534944339592847048'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2007/03/standalone-ejb-30-client-for-remote-ejb.html' title='Standalone EJB 3.0 client for remote EJB server'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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-3652125895997164070.post-5950176607958752888</id><published>2007-03-04T15:59:00.000-06:00</published><updated>2007-03-04T16:35:45.528-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EJB'/><category scheme='http://www.blogger.com/atom/ns#' term='JPA'/><title type='text'>EJB 3.0 + Glassfish + JPA + Eclipse</title><summary type='text'>Follow instructions here to create the EJB project in eclipse.http://www.webagesolutions.com/knowledgebase/javakb/jkb005/index.htmlCreate the jdbc connection pool and the corresponding resource via the GlassFish admin console.Now create a persistence.xml fiel in the src/META-INF folder in your project to point to the JDBC resource.&lt;persistence&gt; &lt;persistence-unit name=\"myPU\"&gt;  &lt;jta-data-source&gt;</summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/5950176607958752888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=5950176607958752888' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/5950176607958752888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/5950176607958752888'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2007/03/ejb-30-glassfish-jpa-eclipse.html' title='EJB 3.0 + Glassfish + JPA + Eclipse'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-6900009154574415557</id><published>2006-11-16T16:44:00.000-06:00</published><updated>2006-11-16T16:56:48.434-06:00</updated><title type='text'>GlassFish + JNDI + LDAP + JAVA</title><summary type='text'>STEP 1: Create JNDI LDAP ResourceIn the GlassFish admin console create a JNDI Custom Resource with the following parameters:1. Give it a JNDI name such as myLDAP2. Resource Type: javax.naming.directory.Directory3. Factory Class: com.sun.jndi.ldap.LdapCtxFactoryAdd the following as additional parameters:1. Name: java.naming.security.principal Value: the reader dn2. Name:</summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/6900009154574415557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=6900009154574415557' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/6900009154574415557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/6900009154574415557'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2006/11/glassfish-jndi-ldap-java.html' title='GlassFish + JNDI + LDAP + JAVA'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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-3652125895997164070.post-9008829906745862688</id><published>2006-11-14T22:02:00.000-06:00</published><updated>2006-11-14T22:13:59.504-06:00</updated><title type='text'>Scripting FTP in BASH</title><summary type='text'>The following code snippet can be embedded in a bash script to ftp a file or script other ftp functions. It also includes error checking if the ftp of the file fails.function ftpfile {    # failure or success flag    #    FLAG=0 # assume success    # Start the actual ftp of the file    RETUR=$(ftp -n &lt;&gt;${LOGFILE}        open $SERVER        user $USERNAME $PASSWORD        ascii        put file.txt</summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/9008829906745862688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=9008829906745862688' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/9008829906745862688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/9008829906745862688'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2006/11/following-code-snippet-can-be-embedded.html' title='Scripting FTP in BASH'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3652125895997164070.post-4811056576819268263</id><published>2006-11-04T13:25:00.000-06:00</published><updated>2006-11-04T13:27:51.821-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jndi'/><category scheme='http://www.blogger.com/atom/ns#' term='jdbc'/><title type='text'>JDBC via JNDI</title><summary type='text'>// define sql queryString sql = "select firstname from users";// initialize database connection objectsConnection conn = null;Statement stmt = null;ResultSet rs = null;// get JNDI JDBC connectionInitialContext ctxt = new InitialContext();DataSource ds = (DataSource) ctxt.lookup("jdbc/TrackIt");conn = ds.getConnection();            // run sql objectsstmt = conn.createStatement();rs = </summary><link rel='replies' type='application/atom+xml' href='http://blogbysud.blogspot.com/feeds/4811056576819268263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3652125895997164070&amp;postID=4811056576819268263' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/4811056576819268263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3652125895997164070/posts/default/4811056576819268263'/><link rel='alternate' type='text/html' href='http://blogbysud.blogspot.com/2006/11/jdbc-via-jndi.html' title='JDBC via JNDI'/><author><name>sud</name><uri>http://www.blogger.com/profile/13628606966401327565</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></feed>
