Friday May 09, 2008

Announcing Project Socialsite

The SocialSite project is delivering social networking functionality by adding social networking platform support based on the OpenSocial standard to any community site. Any social application written for the OpenSocial based social network can be seamlessly and easily hosted on a transformed community site that is powered by the SocialSite project.

Check out this cool video.

Tuesday Jun 19, 2007

Testing your Update Center module

Before you "host" your module on a server for others to download, it would be wise to test it out yourself.

This blog describes how you can test your update center module locally on your GlassFish container through the updatetool client. Hopefully you already know how to create and package your update center module.

Here's what you do to "host" the module on your local running instance of GlassFish. Updatetool is available from GlassFish v2 onwards.

  1. Copy your final module jar to be tested into GF_V2_HOME/domains/domain1/docroot. This enables it to be accessible from http://localhost:8080/module.jar
  2. Copy GF_V2_HOME/updatecenter/registry/glassfish/server.xml to GF_V2_HOME/domains/domain1/docroot. Let's call it update_center.xml. Doing this will enable it to be accessible from http://localhost:8080/update_center.xml.
  3. Edit update_center.xml to have a single entry for the module. Add appropriate values for module codenamebase="my.package" distribution="http://localhost:8080/roller_module.jar". The module type should be "ADDON_INSTALLER".
    Don't worry about getting the exact numbers for downloadsize etc. for now.
  4. Edit GF_v2_HOME/updatecenter/config/config.xml.
    For the catalog name='glassfish' change the url to url='http://localhost:8080/update_center.xml'
  5. Run GF_V2_HOME/updatecenter/bin/updatetool and choose your module.

Trivia: Did you know that a Netbeans module or .nbm extension is just a fancy name for a .jar?

Important contact information: If you are interested in hosting your application on GlassFish Update Center repository, do touch base with the GlassFish Update Center team at: dev@updatecenter.dev.java.net and they'll be happy to work with you.

Thursday May 31, 2007

Debugging publish/subscribe

Tips to debug publish/subscribe in jMaki[Read More]

Tuesday May 22, 2007

Debugging attempting to create a new user

After installing Roller, I tried to actually start using it. So from the main page I clicked on "New User Registration Page" to create my first user.

The response?
"I'm sorry, but the administrator of this site has turned off new user registrations."

Grrr......I thought.

How could that be? I was sure I had followed all the steps meticulously. What could have gone wrong? :(

May be I was not thinking straight. I decided to call it a day and think about the problem while driving back home. Next morning, I came back and decided to do the most obvious thing- look at the logs under $CATALINA_HOME/logs/roller.log. The answer was right there. I had not set the value of search.index.dir in my roller-custom.properties, and hence the Roller app wasn't coming up properly.

Voila! Success!
Roller was pleased, and so was I!

I kept trying to browse different forums to get an answer -- but the answer was all along right there - in the roller logs!

Wednesday May 09, 2007

jMaki series - 1

There has been quite some buzz about jMaki and Web 2.0 this Java One. There were atleast 7 or 8 talks/sessions or BoFs! That sure is a lot!

Well I've been trying to get started with using jMaki in my own space too. I thought I'd write my blogs as a series of journals as I go along.

First we need to setup the environment. We need an IDE, a jMaki plugin, and an application server.

Here are my preferences-

  • IDE: Netbeans (ofcourse!) I got NetBeans 5.5.1 Release Candidate, though its soon to be replaced with the much better version 6. But 5.5.1 will do for now for me.
  • IDE Plugin: NetBeans jMaki Plugin I downloaded the NetBeans Ajax Update center module and installed it in NetBeans. Once installed, I'll have access to the latest jMaki builds from the NetBeans IDE.
  • Server: GlassFish (ofcourse :))

Now using the update center, I installed jMaki plugin in my NetBeans IDE. There is also a screencast that you can watch.

Now I'm all set to start writing applications using jMaki.

About

manveen

Search

Archives
« July 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
31
  
       
Today