Matlab Javabuilder using GWT - google-app-engine

Anyone know how to integrate the Matlab compiler runtime with Google Web Toolkit?
Basically, I have GWT client-server app where the server side does some big computation using Java components compiled using the MATLAB Builder JA. Then server side sends the result back to the client (typical stuff).
I get the GWT app to compile fine but I can not access any of the .dylib files in the Matlab compiler runtime directories once running.
Typical error:
Caused by:
java.security.AccessControlException:
access denied (java.io.FilePermission
/Applications/MATLAB/MATLAB_Compiler_Runtime/v713/runtime/maci64/libmwmclmcrrt.7.13.dylib
read)
I know that it's killing my access b/cuz of sandbox issues. But, I have to access these dylib files somehow. What is the best/secure way to to integrate these libraries with GWT?
Additional info:
using Mac OSX 10.6.5
Eclipse JavaEE Helios + GWT 2.1 and app-engine plugin
Any help would be awesome.
Cheers

I think it is not necessary to integrate with GWT. Because GWT is pure client side. You must access MATLAB or any libraries from servlet. So you must integrate your matlab libraries with java servlets. Try access them from simple java application and use in servlets in the same way.

Google App Engine and Matlab are not good options to use together. Therefore I recommend you not to use Google App Engine. You can use , any other server side technology such as servlet for matlab computation..

Related

What is the difference between endpoints-framework:clientLibs and endpoints-framework:generateSrc?

I've just tested both of them and got the same results. Why?
My intent is to generate server stubs for Google Java Endpoints Framework from OpenAPI specification. Is it possible?
First, I must say I do not believe that our intention is not facilitate the creation of new projects using these tools. These tools were built for migrating old projects and are not a recommended path forward.
But to answer your question:
endpoints-framework:clientLibs is an operation your run on your server side project (appengine). It just downloads a client library (zip) for you. You can process and use this downloaded library in another project to consume the endpoint.
endpoints-framework:generateSrc is an operation you run on the endpoints consumer (or client). This is a helper that automatically includes the client library code in your project (it also downloads the client library), so you don't have to copy that code in yourself (or generate a library an import it in)

How can I build a standalone MQSeries client under Linux using the C API?

IBM offer an installable MQSeries Client software that allows you to access queue managers on remote hosts. They also offer some C-callable libraries that let you do messaging from a C application.
My problem is that I don't have admin access on the hosts I plan to test-deploy on, and getting an application installed comes with bigtime Enterprise hassle. IBM, meanwhile, acts as if there's no alternative to installing their whole client package. Assuming I'm willing to forgo their support, can I get around this? i.e. is there some set of objects/libraries I can link with to produce a standalone client?
From v8.0.0.4 onwards, IBM provides set of libraries as a zip/tar and you don't need to install whole client package. See here: http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ins.doc/q122882_.htm.
But you still need queue manager running somewhere to test your application.

IDE with remote build feature that is compatible with MIT Kerberos

I'm using cluster resources from my academic provider (PDC, Sweden) that uses the MIT-Kerberos authentication protocol for the users to sign in securely.
I'm also using Netbeans to develop C and Fortran code. Netbeans has a feature that lets you build your code on a remote host while you are working on your localhost/Desktop machine. Naturally, this feature requires you to log into your remotehost.
Since Netbeans is using its own SSH client, I cannot connect to the above mentioned remotehost even if I have a valid Kerberos ticket. I have googled this issue, but couldn't find anything related to it.
Has anybody else had a similar issue?
Does anybody know of an IDE for C/Fortran that has a build on remotehost feature and is capable of using the Kerberos protocol?
Eclipse with the Photran plugin are commonly mentioned. I never used it myself, but Eclipse should also support authentication via Kerberos.
See here for more on Eclipse and SSH.

gradle-gae-plugin example project does not work

I took some time to create a small example project that uses gradle-gae-plugin.
I based it on one of the tutorial projects that google has.
For some reason it fails to run 100% locally (the upload of order fails) and the upload to google appengine fails.
See https://github.com/oakstair/gradle-gae-plugin-tryout
The example project works fine for me with Java 7. This is the specific version I am using:
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b12)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
One thing that needs fixing in your build script is the definition of the gaeSdk dependency. That may not be declared within the gae closure. It needs to go in the dependencies configuration block outside of the gae closure.
Running the application with gaeRun works fine for me. I haven't fully tested the upload. Executing gaeUpdate asks me for your password so I assume it's not broken. What is the error you are seeing?

Import .pyd file in google app engine?

I have some old fortran77 codes, and I convert them into .pyd files using f2py. However, I could import these .pyd files in app engine... So does that mean GAE does not support .pyd file? If so, is there any way to call those fortran77 code when my website is hosted by GAE?How about compiling the fortran 77 code on a Linux machine?
#Guido van Rossum any official confirmation?
Thanks!
So does that mean GAE does not support .pyd file?
That is correct; AppEngine only supports pure-Python modules, nothing compiled whatsoever.
I don't know enough about Fortran/Python interop. to comment on the second question, except to say that you can open() files uploaded with your app and evaluate them manually.

Resources