Can I use facelets in a Google App Engine app? - java

I would like to do some more learning of facelets. Now that Java is a supported Google app engine language, is there anything in the facelets implementation that would prevent use on App Engine?
Edit: This page at google now has a list of various frameworks and their status in regards to App Engine.

The 1.2 version of JSF was not working - because by default it would try to spawn threads. That's not allowed in GAE.
This is fixed in the latest version of JSF 1.2 (build 13), as well as the 2.0 Beta 2 release - and you can download the latest versions from here: http://javaserverfaces.java.net/
You need to add the a context parameter to your web.xml:
com.sun.faces.enableMultiThreadedStartup which defaults to true. This
option must be set to false when deploying to GAE.

I haven't tried it, but I don't imagine it would be any different from using Struts or Spring. As long as you can deploy with all the JARs you need in your WAR it should work.
The only question is whether JPA or JDO are sufficient. If the facelets require any other persistence mechanism you might have a problem.
JMS isn't available either, so features that depend on it can't work.
Isn't the first access limited? First 10,000 get in?

Related

ADF migrate app with 11.1.1.6 to 11.1.2.0

a question about migration of applications based on adf version 11.1.1.6 to version 11.1.2.0
app: core java jsf / adf components
whether there is a possibility to occur, there are any conflicts.
oracle writes http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html
If exist the ability to migrate to 11.1.1.9 with no problem.
Anyone have any experience related
You will require modifications to the application code?
You will be required to update the script builder app?
and it looks like a case of the configuration of WebLogic Server with an increase version.
If you are planning an upgrade go directly to the latest version 12.2.1 and not to the outdated 11.1.2.*.
See the support matrix:
http://www.oracle.com/technetwork/developer-tools/jdev/documentation/122-cert-2708091.html#MigrationSupport
In general the main difference is that the JSF engine switched from JSF 1 to 2 - when you open the application in the new JDeveloper it will migrate your project for you.

Can Struts 1 (which is EOL) work with Java EE7?

I understand that Struts 1 is EOL but I would like to know if a project that uses Struts 1 can work with Java EE7 or do I have to stop using Struts or start using Struts 2
I don't seem to find any documentation of that matter.
Struts only uses Servlet API from the EE implementation. As far as I know it's designed to be backward compatible with other servlet specifications. But you can try it on your own risk, because it might not be built or tested under the new specs. The best approach is to build the framework yourself to see if you have any problems with it. On the docs site (which included with the distro and no longer available online) and on Maven site you can find which Servlet API was supported, this information is also in release notes.
You can use old Struts as I already said on your own risk, means this framework is no longer supported. If you need a support from the community then you should upgrade to Struts 2.

Using a ResourceBundle.Control on Google-app-Engine for localization of a Java application

I am trying to take a JSF targetted localization application example, and move it from JBoss to Google App engine - and stumbling...
The internationalization example is taken from the final link in this answer: https://stackoverflow.com/a/4278571/723554. The article itself being based on using a ResourceBundle.Control.
This works fine when deployed to JBoss. However I'd like to see if it can be moved to GAE - and when I setup the Eclipse Project to use GAE, I get the error:
java.util.ResourceBundle.Control is not supported by Google App Engine's Java runtime environment
The only other similar question here on SO is a few years old - and seemingly unanswered.
So - the question:
Is there a better approach for internationalization on GAE than using a ResourceBundle.Control?
FYI: The intended technologies for the app will be JSF-2, PrimeFaces and PrimeFaces Mobile.
[1] App Engine 1.8.1
[2] JSF 2.0

Seam 2.2 App on JBoss 7.1?

We have deployed our JBoss Seam 2.2 application on JBoss 5.1 with PostgreSQL as the database. It makes use of EJBs, JPA (Hibernate), JSF (Richfaces and Primefaces), Servlets, and JMS queues and topics. Recently, we've decided to migrate the platform to JBoss 7.1 to take advantage of its lower overhead, as well as to keep in step with changes in technology.
Is it possible to run Seam 2.2 applications on JBoss 7.1? I realize the Hibernate/JPA version is different, and I'm assuming the JSF version is as well. Are there ways to compensate for this? What changes to our code and configuration could I potentially have to make in order to run it on this platform?
The short answer is yes you can migrate your Seam 2.2 app to JBoss AS 7.
The main challenge is going to be classloading because of how class loading is completely re-architected with AS 7.
Instead of me going through all the steps here I simply want to point you to the official documentation of how this was done on one of the sample apps (Seam Booking application). It provides a step-by-step guide on how you can migrate a Seam 2.x app to JBoss AS 7 and also points some of the issues you will face and how you can handle them.
The guide is located here.
Other useful references
JBoss AS 7 Classloading
Seam 2 JPA Example
Good luck!

Struts for IBM Application Server Toolkit

I'm looking to build a Struts 1.2.x application for Websphere, using IBM's Application Server Toolkit. Are there any plugins available for this toolkit (it is a version of Eclipse) that are known to help with this type of development? I am new to Struts so I will also be learning about the technology as I go along, but I want to make it as painless as possible.
A web search has only brought up things such as "MyEclipse", which I can't use in the corporate environment.
I don't know about Application Server Toolkit, but since it's Eclipse based, you might directly use the struts plugin from the Eclipse project. Beware of the version, since it's not based on the very last Eclipse version.
The easiest, albeit costly, route for corporates environments is through Rational Application Developer that IBM provides. It integrates nicely with WebSphere Application Server. It has a struts plug-in build-in.
Try StrutsIDE Eclipse plugin.
the name of the custom eclipse for IBM websphere is Rational Software Architect and i think it comes with a Struts plug-in
This can get tricky depending on the version of Websphere you are using. We have an old Struts 1.1 app that has been around for years. I use an old 5.x version of Websphere to run it, along with what used to be called Websphere Studio Application Developer. It is based on Eclipse, and all the Struts stuff is built in.

Categories