Tech Rocks

Coldfusion
Java
JQuery

An online resource for latest web technologies like Coldfusion, JRun, Pro*C, JQuery, HTML5, PHP, W3C, Java, J2EE, C, C++, ORACLE, PL/SQL, MySql, Ajax, Coldbox, Fusebox, UNIX, JavaScript, NodeJS and much more... contact@tech-rocks.org

Showing posts with label appengine. Show all posts
Showing posts with label appengine. Show all posts

Monday, April 7, 2014

Java Enterprise Edition (Java EE) Technologies on AppEngine

Supported

While we do not support the entirety of the Java EE specification, many of its individual components are supported. These include:

  • Java Data Objects (JDO)
  • Java Persistence API (JPA)
  • Java Server Faces (JSF) 1.1 - 2.0
  • Java Server Pages (JSP) + JSTL
  • Java Servlet API 2.4
  • JavaBeans™ Activation Framework (JAF)
  • Java Architecture for XML Binding (JAXB)
  • Java API for XML Web Services (JAX-WS) 4
  • JavaMail
  • XML processing APIs including DOM, SAX, and XSLT
  • 1 For a guide on "converting" between JPA and JDO.

    2 JSF 1.1 appears to be working out-of-the-box. JSF 1.2 and JSF 2.0 should also work if you set the com.sun.faces.enableMultiThreadedStartup context parameter to false to your web.xml file. Setting this parameter to false (it's set to true by default) will prevent additional threads from being spawned. For more information on running JSF 2.0 in App Engine.

    3 JSP session beans are not supported; to enable EL parsing, add <%@page isElIgnored="false" %> to your JSPs and <%@tag isElIgnored="false" %> to your tag files.

    4 JAX-WS is supported for web service clients but not for servers. To write a SOAP server on App Engine you must use javax.xml.soap and JAXB.

     

    Not supported

    There are various APIs and technologies that are not supported by App Engine at present for various reasons. These include:

  • Enterprise Java Beans (EJB)
  • JAX-RPC
  • Java Database Connectivity (JDBC)
  • Java EE™ Connector Architecture (JCA)
  • Java Management Extensions (JMX)
  • Java Message Service (JMS)
  • Java Naming and Directory Interface (JNDI)
  • Remote Method Invocation (RMI)
  • App Engine's underlying datastore is based on BigTable, not a traditional SQL-based RDBMS like MySQL or PostgreSQL. You may either use the low-level datastore API or the JDO or JPA object-relational mapping interfaces provided. Various JDBC wrappers are available for the datastore, and you may still be able to connect to in-memory databases such as the H2 database engine or HSQLDB.

    Thursday, October 10, 2013

    Thursday, September 12, 2013

    Google Plus list activities - java api

    List retval = new ArrayList();

    Plus.Activities.List listActivities =
    plusSvc.activities().list(userid, "public");

    listActivities.setMaxResults(100L);

    // get the 1st page of activity objects
    ActivityFeed activityFeed = listActivities.execute();

    // unwrap the request and extract the pieces we want
    List pageOfActivities = activityFeed.getItems();

    // loop through until we arrive at an empty page
    while (pageOfActivities != null) {
    for (Activity activity : pageOfActivities) {
    retval.add(activity);
    System.out.println("ID " + activity.getId() + " Content: " +
    activity.getPlusObject().getContent());
    }

    // we will know we are on the last page when the next page token
    // is null (in which case, break).
    if (activityFeed.getNextPageToken() == null) {
    break;
    }

    // prepare to request the next page of activities
    listActivities.setPageToken(activityFeed.getNextPageToken());

    // execute and process the next page request
    activityFeed = listActivities.execute();
    pageOfActivities = activityFeed.getItems();
    }

    Sunday, August 4, 2013

    appcfg.cmd deploy to Google

    cd C:\appengine-java-sdk-1.8.2\bin

    appcfg.cmd update C:\Users\jeetu\workspace-xxx\projectxxx\war

    email: xxx

    password: xxx

    Sunday, September 30, 2012

    Install PHP on App-engine

    Follow the articles mentioned below.

    Its well explained.

     

    Basic Steps

    Downloads – Download the src jar file and put it in the WEBINF/lib

    References

    Check link 1, link 2, link 3

    Create a phpinfo.php

    Web.xml changes

     

    See working Demo

    Wednesday, August 29, 2012

    Google Plugin for Eclipse 4.1 (Juno)

    Check this link for details on the Google Plugin.

    For online installation refer this link

    For offline installation refer this link

    Install the Google plugin for Eclipse and Get started with App-engine