Eclipse WTP missing in Pulse Catalog
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...
View ArticleBash command completion
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...
View ArticleOne reason a Rails application breaks with no error message
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...
View ArticleLog4j and MySQL
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...
View ArticleHello World! REST web service using Jersey and Glassfish
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...
View ArticleProgrammatic Login to Authenticate Against a EJB in Glassfish
What?This is the method used to authenticate a standalone java client (including Eclipse RCP plugins) to the Glassfish EJB...
View ArticleArticle 6
Set the Application Server > Logging > Log Levels > Deployment > Debugging to FINE to quickly troubleshoot deployment issues in Glassfish
View ArticleStandalone EJB 3.0 client for remote EJB server
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...
View ArticleEJB 3.0 + Glassfish + JPA + Eclipse
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...
View ArticleGlassFish + JNDI + LDAP + JAVA
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:...
View ArticleScripting FTP in BASH
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...
View ArticleJDBC via JNDI
// define sql queryString sql = "select firstname from users";// initialize database connection objectsConnection conn = null;Statement stmt = null;ResultSet rs = null;// get JNDI JDBC...
View Article