Archive

Archive for the ‘Glassfish’ Category

Atmosphere : Resin and Websockets

August 10, 2010 Leave a comment

I want to let you know that since the release of Caucho Resin 4.0, Atmosphere applications can be deploy on Resin and will be supported natively. Resin 4.0 implements Servlet 3.0.

That’s really good. Another web server that is supported.

What about the Websocket’s Caucho implementation… nah ! There implementation is too buggy right now. I suppose the code it using a early release of the Websocket specs, and never updated it. Anyway, Websocket application won’t work on Resin 4.0 :(

We posted a thread on there forum here : http://forum.caucho.com/showthread.php?t=10680

but still didn’t received news from them. So until they fix it, I suggest that you try your Websocket application on another web server like Glassfish.

You can follow me on Twitter

Native Websphere support for Atmosphere not yet

August 9, 2010 Leave a comment

Just a little note that we try to add Websphere native support for Atmosphere. We work really hard to find an API that could allow us to do that, but is simply impossible.

We were able to get in touch with the dev team of Websphere and the dev team of WebSphere Application Server Feature Pack for Web 2.0. They have demo that used bayeux for comet application or JMS to simulate asynchronous connections, but it’s not a complete asynchronous solution.

Even with the addon WebSphere Application Server Feature Pack for Web 2.0, you can’t suspend and resume a connection. Websphere server doesn’t support that. It’s not supported in WAS 7.0, but in 8.0 alpha there should be Servlet 3.0 support.

Until IBM do something about that, or wait for WAS 8.0, you will still be able to deploy Atmosphere application on WAS but it will use BlockingIO (one blocking thread by connection).

If that is not enough for you, I suggest Glassfish as alternative. Of course, we will continue to monitor the situation. Maybe the community call could be enough to wakeup them :)

You can follow me on Twitter

Native Websphere support for Atmosphere not yet

August 9, 2010 Leave a comment

Just a little note that we try to add Websphere native support for Atmosphere. We work really hard to find an API that could allow us to do that, but is simply impossible.

We were able to get in touch with the dev team of Websphere and the dev team of WebSphere Application Server Feature Pack for Web 2.0. They have demo that used bayeux for comet application or JMS to simulate asynchronous connections, but it’s not a complete asynchronous solution.

Even with the addon WebSphere Application Server Feature Pack for Web 2.0, you can’t suspend and resume a connection. Websphere server doesn’t support that. It’s not supported in WAS 7.0, but in 8.0 alpha there should be Servlet 3.0 support.

Until IBM do something about that, or wait for WAS 8.0, you will still be able to deploy Atmosphere application on WAS but it will use BlockingIO (one blocking thread by connection).

If that is not enough for you, I suggest Glassfish as alternative. Of course, we will continue to monitor the situation. Maybe the community call could be enough to wakeup them :)

You can follow me on Twitter

How to configure proxy on Glassfish v3

May 24, 2010 1 comment

If you are behind a proxy maybe you will want to set the proxy in Glassfish. There are few different ways to do that. #1 – You could use the admin web page. You can add the proxy settings : host and port with the admin. Into the admin web page, go to the Application Server at your left. After that on your right select : JVM Settings / JVM Options. Just add theses settings : http.proxyHost=myproxy.mydomain http.proxyPort=myproxy.port Glassfish_proxy.png Click here to enlarge #2 – You could use the command line Go into your Glassfish installation /bin and enter theses commands : asadmin create-jvm-options “-Dhttp.proxyHost=myproxy.mydomain” asadmin create-jvm-options “-Dhttp.proxyPort=myproxy.port” #3 – The last option is to edit manually domain.xml You add the settings in the “<java-config>” element. <java-config ...> <jvm-options>-Dhttp.proxyHost=myproxy.mydomain</jvm-options> <jvm-options>-Dhttp.proxyPort=myproxy.port</jvm-options> ...

Categories: Glassfish Tags:

Meet FishCAT member Sebastien

May 24, 2010 Leave a comment

I just found an article on me writen by Judy Tang from SUN.

Sebastien Dionne ‘s email id is Survivant, if you read quality alias, you definitely know him, he is one of the most active FishCAT members in quality alias. He tested many, almost all the GlassFish v3 Prelude promote builds, filed many good bugs/RFEs which won him 100 CAT Points, #2 in the FishCAT v1 program. Congratulations Sebastien and thank you so much for helping us testing GlassFish v3 Prelude !

you can read the complete article there :http://blogs.sun.com/judy/entry/meet_fishcat_member_sebastien

Categories: Glassfish Tags: , ,

Joomla on Glassfish

May 24, 2010 2 comments

I’ll show you in this article how to setup the CMS Joomla on Glassfish. We won’t need Apache for this one. There are few ways to do PHP on a J2EE server. I’ll describe what I think the easiest way. First we will need to download and install PHP using PHP/JavaBridge (or you can use Quercus too here the link http://quercus.caucho.com/.

You can download PHP from this site http://www.php.net/downloads.php . I recommend to install it by the installer (if you use Windows).

After that you install PHP, you will have to add a system variable : PHP_HOME=path of php installation (ex : PHP_HOME=c:\php). You also need to add PHP in your path : (Windows : ;%PHP_HOME% ).

Now download the project PHP/JavaBridge from there web site : http://php-java-bridge.sourceforge.net/doc/ . Once you have the zip file of the project, you will have to extract it. You will obtain a file named : JavaBridge.war with others, but this file is the most important for the following steps.

Now that we have PHP install and the PHP/JavaBridge project, we can now starts intalling Joomla on Glassfish. Like I said in the beginning, I choose the most easiest way, so it’s not the most efficiant, (will you understand when you will see the next steps), but it will show you how it’s done.

Extract the file JavaBridge.war (Follow the same procedure for Quercus). Now copy the files and folders that are in the root of your Joomla site. Example : htdocs/joomla/ into the JavaBridge folder. (or copy the folder joomla into JavaBridge/Joomla but that will require more setup to do in Glassfish if you don’t want to URL to contain …/Joomla. I won’t convert it in this article).

Here the complete list of the files and folder into my JavaBridge folder. (of course that need a cleanup, but it’s just to show you that it can be done)

.htaccess
administrator
cache
CHANGELOG.php
components
configuration.php
configuration.php-dist
COPYRIGHT.php
CREDITS.php
documentClient.php
excel.php
hello.php
htaccess.txt
images
includes
index.php
index2.php
info.php
INSTALL.php
installation_
java
jsp+php.jsp
jsr223.jsp
language
libraries
LICENSE.php
LICENSES.php
locale
logs
MANIFEST.MF
media
metaconfig.xml
modules
numberguess.jsp
numberguess.php
plugins
robots.txt
sessionSharing.jsp
sessionSharing.php
settings.php
sitemap.xml
source.php
T.TXT
templates
test
test.php
TestInstallation$1.class
TestInstallation$2.class
TestInstallation$SimpleBrowser.class
TestInstallation.class
tmp
WEB-INF
xmlrpc

After that you obtain this ugly structure… compress it back into a .war. I’ll named it JavaBridge2.war.

Now the last step. Deploy it on Glassfish. Log into the admin web page and select deploy a war. Browse for JavaBridge2.war and deploy it.

Let take a look of the admin of Glassfish once JavaBridge2.war is deployed.

and the final touch.. See Joomla Live on Glassfish my entered the URL : http://localhost:8888/JavaBridge2 (8888 is my port of GF.. your should be 8080)

I hope that can help you to see are easy it can be to do PHP into Glassfish. The next step should be to benchmark Joomla on Glassfish with JavaBridge VS Joomla on Apache.

Categories: Glassfish, Web Tags: , , ,
Follow

Get every new post delivered to your Inbox.