How can you connect a Flex UI to a Unix backend server? - apache-flex

Im working on a project with the following basic needs:
Need to invoke a Flex Webapp in a new Tab from another Webapp in Java/Jsp
This Flex UI must be connected to a unix backend to show the backend operations on the UI
The unix backend server has telnet operations and SSO
Is this possible? how?
Any further help on getting that Java Api
Using it as Adobe Air will require use of a server rite... I wanna do it without any extra server. Just the UI and the backend Unix server.

You'll need some kind of middleware solution (java based api) that flex can call over the web. Either that or use Flex as a local application (Adobe Air) which can run more OS specific commands

Related

Understanding Blazor hosting

Disclaimer
I am referring to Blazor hosted , not server-side !
Can someone please explain me when running browser-hosted Blazor , why do i need to place in the Server.Startup the extension app.UseBlazor<Client.Startup> ?
If the Blazor client is already hosted in a net core project -> Client.Startup why does my Server project need to add this extension ?
Isn't the client supposed to be decoupled from the server?
I am missing something here ? Why does my Server project need to know about the Client since my Client project is already standalone ?
I have added a picture.
So as you can see in my picture , if the server is communicating via http with the client, why do i need to add the extension ?
Blazor is already running in a asp-net-core which is the Client project am i not right?
"Why does my Server project need to know about the Client since my Client project is already standalone ?"
No, yours is not a standalone project. Your project contains two apps. Just read what you wrote yourself. Do try to remove your server project and run the Blazor app. You've got a front-end app (Blazor) running in the Browser. But you need an app to serve the Blazor app: ASP.NET Core app that runs on a server.
"Blazor is already running in a asp-net-core which is the Client project am i not right?"
As far as I know, Blazor is running under mono webassembly.
I would suggest you to read the contents of the UseBlazor method to learn what it does, and why it is needed. And as far as I recall it's Client.Program rather than Client.Startup.

The target execution of WebSphere Application Server v7.0 is not defined

I'm using spring with flex (with IDE flash builder 4.6)
I have this error The target execution of WebSphere Application Server v7.0 is not defined. please where should I configure the server
thanks for helping
Sounds like you're running into a problem using FB's application server integration. I don't even remember FB supporting WebSphere.
It's getting hard to remember how this used to be done, but I know we never used to use this type of functionality in Flash Builder. It's possible to deploy your mid-tier app in Tomcat (or WAS), start that, and then run/debug your Flex app which connects to that independently started server.
Depending on how it connects (Blaze/Granite remoting, REST, etc) it may be harder or easier to do that, but the point is that I'm sure you don't need to use this functionality in FB.
If you still want to try using that functionality, I'm pretty sure the configuration is somewhere in that list on the left side of the dialog posted, but again I never bothered with it.

Securing a Java FX standalone application

I have created a JavaFX standaone application.
I cannot have it deployed in webserver, as some of the users do not have javafx runtime installed in their system. So, i package the application along with the javafx runtime and send it to them for use.
I am using persistence.xml to connect to the database. The password is saved as a plain text file.
So, i have to secure it.
Can someone please give an example of a standalone application accessing a datasource in application server using JNDI?
Would this approach allow for container managed connection pool handling?

How to access local file system from Flex web application?

I'm trying to access local file system from Flex web application.
I know it is pretty difficult, but I think there must be a way. Is there a way that Flex app can use AIR components or maybe web application can call some AIR module in order to choose files and upload?
There is no direct way that a web based Flex/Flash application can access AIR based APIs. They aren't built into the Flash Player, but are rather extensions built into the AIR runtime. You can't access them directly because they aren't there.
If you have an AIR app installed on the user's local machine you can, in theory, use that app as a proxy with localConnection. That way the AIR app can access the file system directly, triggered by the browser based app. I'm not sure how user interaction would work, though.
If you have server software installed on the client machine, you can trigger file processing commands from Flex using RmoteObject/HTTPService/WebService commands. This wouldn't give the user any interaction ability and is not usually practical unless you have strong control over your client machines.
Either approach would present an app installation nightmare; which almost defeats the purpose of a browser based app in the first place.
You can use FileReference's methods to ask user to select files to open (load into flash, upload into server) or save (from server or bytes from flash).

Is it possible to develop Flex w/ ASP.NET projects on OSX via remote connection?

I recently completed a Flex app (using Flex Builder 3, PHP, and MySQL) on my Mac and now I want to write a very similar application to use on a client's ASP.NET site.
Flex Builder apparently refuses to set up an ASP.NET project if there's no local IIS server (which I don't have).
Is there a way I could develop the Flex app locally using a remote testing server?
note- Running IIS on Parallels is not an option for this particular project...
Thanks
What method are you using to communicate between the Flex project and the ASP.NET project? If you're communicating using web services, you shouldn't need to set up a server technology in Flex Builder - you only need a crossdomain.xml file on the client server.

Resources