Using Air 2 as a java front end in a project idea

I watched this video on adobe tv where this guy called java process through air 2's new process invoking methods, and what I wanted to do was something simular. I have a java project that interacts with JBDC to talk to the oracle database, and currently can add, create, remove and bla to tabel entries.
what I want to know is the HOW DO I, make air talk to java...How do i make air the front end, and java the back end with out using servers and third party applications.

I think you may have to look at all your jar files in the project including struts jar packages, and watij home page, and verifying they all are java5 compatable. My guess is your error is caused by watij using java reflection to do something (assuming there is nothing in the project or struts using reflection) . You may try creating a small struts project that is java5 compatable and seeing if you can use the watij tool on it without an error. That way, you will isolate problems with watij and struts problem with java5, from who knows how many other problems the major project has with java5. Are you using a server such as tomcat? that has to be compatable with java5 too.

Similar Messages

  • Java Front End, PHP Back End

    Hi all, I am trying to create a java front end with a php back end. Using a tip from Core Java Technologies Tech Tips (http://java.sun.com/developer/JDCTechTips/2004/tt0210.html#2). I tried to convert their code from a command line to a GUI and have gotten preaty far but it is only allowing me to get one row of data from the php file. Here is my code so far:
    package test;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.net.URLConnection;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    * @author bdeonline
    public class test extends javax.swing.JFrame {
    private static URLConnection connection;
    private String inputLine;
    private static void connect( String urlString ) {
    try {
    URL url = new URL(urlString);
    connection = url.openConnection();
    } catch (MalformedURLException e){
    } catch (IOException e) {
    private String readContents() {
    BufferedReader in = null;
    try {
    in = new BufferedReader(
    new InputStreamReader(
    connection.getInputStream()));
    String inputLine;
    while (
    (inputLine = in.readLine()) != null) {
    return(inputLine);
    } catch (IOException e) {
    return inputLine;
    /** Creates new form test */
    public test() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    jButton1 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    jButton1.setText("jButton1");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    getContentPane().add(jButton1, java.awt.BorderLayout.SOUTH);
    jScrollPane1.setViewportView(jTextArea1);
    getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
    pack();
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    connect("http://localhost/test.php");
    jTextArea1.setText(readContents());
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new test().show();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration
    I am preaty new at java, I know PHP preaty well though so something like this could help me out alot. Most of this code was generated with the help of Netbeans.

    I dont see why it would unles it has something to do with your URLConnection being static. setText() is only going to give you one line as well. try
    jTextArea.append(inputLine);
    and make only one declairation of inputLine.
    The only thing that should be static in your code is the main method.

  • Java Front-end problems with Windows 200 Pro

    Hi,
    I have some problem on my pc with java applications front-end. I have windows 2000 Professional and use java(TM) 2 SDK, Standard Edition Version 1.3.1
    Using every java applications (also development environment as JBuilder 4 Professional and Together 4) I have always problems with front-end: the text is bad visualized everytime I use the scroolbar, menu items into a menu are bad visualized while I drag over of them the mouse and so on...
    To try to solve this my problem I have just installed Service Pack 2 for Windows 2000 Pro but I have not had good results - I keep to have the usual problem.
    I'm aware that it is difficult to reproduce and however if anyone has some idea to solve my problem I am opened to every suggestion.
    Thanks in advance

    the text says that what technolody that they are using its called "Off Screen Images" once i used them in my applications to improve the prefomance.
    What they says is to improve the time it takes to display componants that display text on them (Such as buttons, Labels...) they going to create an Off Screen Image of the text and then paste that image on to the screen whenever the componant has to be displayed/Re displayed instead of redrowing (Re rendering) the text on the screen repeatedly which take more time and processing power than rendering once and paste it to screen whenever needed but this solution will take some more memory.

  • BI - Java front end ...multiple BW abap back-ends?

    Experts,
    we have a BI java/portal running NW7.01sp6 (portal/BIjava application types).  We have used the config wizard to successfully  connect to our BW NW7.02 abap back-end in order to run bex, etc.
    My question is this: 
    Is it possible to connect the BI-java portal to multiple BW abap back-ends?  Or should we have one BI-java portal for each BW abap back-end?
    This may be the wrong forum for this question.  If so, please forgive me and point me to the correct one.
    Thanks
    NICK

    Hey Judith and experts,
    I found this note:
    Note 919197 - Troubleshooting: More than one master system found
    In there it states:
    Each SAP Web Application Server Java always has precisely one SAP Web Application Server ABAP, which serves as a BI master system. The metadata for Web items and Data Providers is read from this system, for example, and this is the only system from which you can start Web templates and Enterprise reports.
    If you want to display Web templates that originate from more than one SAP Web Application Server ABAP in an SAP Enterprise Portal, for example, you can use the Global Portal technology.
    Does anyone have any idea what they mean by "Global Portal technology"?  Or should I just bite the bullet and install another BI java portal to go with the ABAP instance.
    __NICK

  • Problem using the Web front end

    Hi
    I have been playing with the Web publishing tool and  I can get it working fine until I build an executable file.  Then when the vi is loaded using the .exe file the web front end comes up with the comment vi not loaded into memory?
    I am obviously doing something wrong but up until now I can not see it? 
    Any suggestinos welcome.
    Cheerrs
    Phill

    Phill,
    Have a look at this KnowledgeBase article:
    http://digital.ni.com/public.nsf/websearch/862567530005F09C8025673000529121?OpenDocument
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

  • Web Start beginner - Web Start front end to existing web app?

    Hi all,
    I'm new to Web Start, though have been hearing about it for some time. Even after reading the documentation, I have some basic questions about it.
    Specifically, is it possible to invoke business methods via something like a Struts ActionServlet through a Web Start gui? That is, say my Web Start app and my existing web-based Struts app were on the same server, could I easily invoke the ActionServlet by passing in a URL with parameters? Thus giving me the ability to completely reuse my 'MC' of my Model-View-Controller app, and just replacing/adding another view ('V')?
    Has anyone ever done this? If so, are there good examples?
    Thanks in advance,
    Mike

    WebStart is a deployment mechanism for otherwise perfectly normal Java applications. WebStarted applications run on the client, not the server. WebStarted apps run in a protected environment (the Java sandbox), meaning they can't do potentially harmful things on the client machine such as reading and writing files or creating network connections to any server other than the one they were loaded from, unless you obtain special permissions from the user (the application needs to be signed for this to happen).
    So there is nothing that specifically prevents you from using a WebStarted application as a front-end for a Struts webapp. If it makes sense to use a client-side application for that purpose is a question only you can answer.

  • Coldfusion back-end, AngularJS front-end, and Security

    The company I work for is building an application in which security is of the utmost importance.  We're really hoping to use Angular as the client-side application, and we're exploring how best to create our back-end in ColdFusion (which we've used for a few years now).
    I understand that only so much security can exist in the front-end of the app, and that the bulk of the work needs to happen on the server.  But I'm really unsure about how to move forward in that regard.  From what I've read, it sounds like we'll need some kind of Authentication Token to be created on login and stored on the backend.  This token should come along with every http request, and the server can then decide on the validity of the request.
    Does this sound about right?  And if so, are there best practices for implementing it?
    Any resources that might shed more light on the topic would be HUGELY appreciated.
    Thanks,
    Jonathan

    maheshguruswamy wrote:
    mycoffee wrote:
    maheshguruswamy wrote:
    847102 wrote:
    More and more teams in my company are now mixing technologies. For example they use java for the back end and C# for all the client side code i.e GUI.
    How can you mix these technologies. Ie how can c# code "talk" to java code?
    Not sure if this is the best place to ask, as its a java forum but I though I would give it a try!
    ThanksSimplest way would be to use web services.It is new thing for me to learn...
    How efficient to do it compared to all in one either C# or java? I guess it would be slower.
    Either C# or java can handle the job. Why both? I don't get it.It all depends on how big the teams are and how much "separation of concerns" you are looking for. In enterprise architecture what i aim to do is try to give the development groups freedom to use whatever technology they feel best suits their need...BUT...if they want to talk to other systems and vice versa, they have to follow certain standards (SOAP, REST etc). Architect the lines, not the boxes. If you are not looking for separation of concerns, sure build out everything in one technology..but keep it mind future changes.Thank,
    It is good thing to learn. I used to work with java front end calling Cobol back end (using transactions)
    I know C# and java can talk by SOAP or web services but only wondered about the reason.
    If I am going to design everything new, one technology is the answer.

  • Front End Runtimes in BI workload are always 0

    Hi,
               We have activated the technical content for BI Admin cockpit in Production. The delta process chains are
    running fine daily. The issue is we do not see the front end runtimes in BI workload via ST03N. Only for a very
    few queries we have RSDDSTAT settings activated at level 2. BI workload displays only OLAP and DM times
    for those queries. But the frontend times are always 0. We are extracting all the step categories. I can see
    the front end runtimes for all those queries in 0TCT_C01, but they are not shown in BI workload. Hence even
    the  Total Time of the query in BI workload is always smaller as it does not include the front end runtimes.
                Any idea why the data for front end runtimes is missing from BI workload ?
    Thanks,
    Sonali

    Hi,
    depending on your data flow you have to use the routines .
    Start routines - start routines:
    It is used to perform preliminary calculations.if you have any modifications required before the actual transformation is done, then you must write those routines in the start routine of 7.0.
    End routines - new:
    You can use an end routine to postprocess data after transformation on a package-by-package basis.
    Expert routine - update routine :
    You can use the expert routine if there are not sufficient functions to perform a transformation. The expert routine should be used as an interim solution until the necessary functions are available in the standard routine. You can use this to program the transformation yourself without using the available rule types. If you have already created transformation rules, the system deletes them once you have created an expert routine.
    Also Check the below link for detail info.
    Routine in Transformation.
    Reg
    Pra

  • Lync 2013 Enterprise load balancing on the front end and edge pool

    Hi,
    I am setting up a Lync 2013 Enterprise deployment consisting of a Front End pool (x2 FE servers) and an Edge pool (x2 Edge servers).  I'm seeing some conflicting advice regarding load balancing using hardware or DNS for the front end and the edge.
    On the front end I have 2 internal DNS records 'lyncfepool1.contoso.local' each of which map to one of the IPs of the FE servers.  I've used my details to populate the Detailed Design Planner excel spreadsheet and am told that I require a HLB to load
    balance my front end pool.  I'm aware of the need to load balance HTTPS traffic internally (which will be done by TMG) however other traffic to the front end (SIP, etc) can be balanced by DNS only, and not require a HLB?
    Can someone clarify the front end requirement?
    Also - looking now at the edge pool - this site again have two edge servers in a pool.  We are using a total of six private IP addresses, two per edge service (2 x av.contoso.com, 2 x sip.contoso.com and 2 x webcon.contoso.com).  These will be
    NAT'ed by the external firewall and directed to the respective external (DMZ) IP addresses on the Edge servers on port 443.  I know this isn't true roundrobin due to the intelligence of the Lync client when connecting (in that the Lync client will connect
    to one of the public IPs and if it can't connect, it will know to connect to the other service IP), however I want to clarify this set up, particularly the need to direct the external public IP traffic at the DMZ Edge IP specified in the topology builder.
    I've attached a basic diagram of the external/DMZ/Edge side which hopefully helps with this question
    Persevere, Persevere, Per..

    That is because you will always need HLB for a front-end server since it hosts the Lync webservices which use HTTP/HTTPS traffic.
    The description on the calculation tool also describes this correctly:
    Supports Standard and Enterprise pools (up to 12 nodes), with pure device-based load balancing or a combination of DNS load balancing and device-based load balancing (for
    Lync web services)
    You can use either Hardware or DNS loadbalancing for SIP traffic only, but you will always need a HLB for the webservices.  Both are applicable for the Front-End so you have either
    full HLB for both SIP and HTTP(S) traffic
    DNS LB for SIP traffic and HLB for HTTP(S) traffic
    Hope this is more clear :-)
    Lync Server MVP | MCITP Lync Server 2010 | If you think my post is the answer to your question, please mark it as answer so future visitors can easily find it.

  • Unable to search GAL on Lync 2013 Front End Pool through Lync 2013 client

    I'm in the beginning of a 2010 to 2013 migration and I'm currently testing co-existence functionality between pools.  I've noticed that users cannot search the GAL from their Lync client after being moved to the 2013 pool. 
    When trying to access the internal URL https://fepool13.domain.com/abs/handler the user is prompted to login and after three failed attempts, receives "401 - Unauthorized: Access is denied due to invalid credentials.  You do not have permission
    to view this directory or page using the credentials that you supplied".
    Searching withing a Lync 2010 or Lync 2013 client returns no results, but there are no errors as well as nothing in the event logs or tracing folder regarding not being able to search.
    The 2010 pool has been in production for a few years now and when accessing its internal ABS URL https://fepool10.domain.com/abs/handler the user is granted access after a successful login. 
    In the IIS logs there are slightly more detailed 401 error codes, but I’m not sure what to make of them.
    The rtcab database appears to have user information and all three front end servers appear to be syncing with active directory.  I say the rtcab database appears to have user info because the AbUserEntry table is filled with User ID'd, GUID's and a
    bunch of other stuff.
    The authentication on 2013 front end servers “internal lync website/abs/handler” is set to 1. Negotiate, 2. Ntlm - which is the same as the 2010 front end servers.
    Any ideas?

    Hi,
    Which step did you do among migration from Lync Server 2010 to Lync Server 2013?
    Did you already move CMS from Lync Server 2010 to Lync Server 2013?
    Please create a new Lync account on Lync Server 2013 pool and test the issue again.
    Please check if User Replication has completed with the help of the link below:
    http://technet.microsoft.com/en-us/library/jj204680.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How Front End pool deals with fail over to keep user state?

         Hello to all, I searched a lot of articles to understand how Lync 2010 keeps user state if a fail happens in a Front Pool node, but didn't find anything clear.
         I found a MS info. about ths topic : " The Front End Servers maintain transient information—such as logged-on state and control information for an IM, Web, or audio/video (A/V) conference—only for the duration of a user’s session.
    This configuration
    is an advantage because in the event of a Front End Server failure, the clients connected to that server can quickly reconnect to another Front End Server that belongs to the same Front End pool. "
        As I read, the client uses DNS to reconnect to another Front End in the pool. When it reconnects to an available server, does he lose what he/she was doing at Lync client? Can the server that is now hosting his section recover all
    "user's session data"? Is positive, how?
       Regards, EEOC.

    The presence information and other dynamic user data is stored in the RTCDYN database on the backend SQL database in a 2010 pool:
    http://blog.insidelync.com/2011/04/the-lync-server-databases/  If you fail over to another pool member, this pool member has access to the same data.
    Ongoing conversations and the like are cached at the workstation.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • BEx  in Windows Xp Front end

    We have BW ver 2.1.
    Recently I have upgraded my Front end from Windows 2000 to Windows XP. Now not able to run BW from Business Analyzer short cut.
    When I click its hang up & show not responding in Task manager.
    What could be the reason.
    Kindly help urgently.

    Hello Anupma
    Try to go via the start menu.
    do not use the shortcut
    Start-programs-sap front end-bex analyser.
    bye meps

  • ADF 3-tiered with Swing front-end is it possible?

    Hi,
    I'm beginning to use Oracle ADF and JDeveloper 10.1.3.
    My intention is to develop a 3-tiered application. In the persistence tier an Oracle database will be used, in the business tier I would like to use Oracle ADF, and in the front-end Swing with screens for edit and querying data. The Swing front-end will not have direct access to the database, and in the future the business tier could be used by a Web front-end with Servlets and JSPs.
    Which benefits I can get with Oracle ADF for this type of application?
    What ADF components can be used in the business tier?
    How can it deliver and receive data from the Swing front-end (EJB, Web Service, another approach)?
    Somebody knows some tutorial about ADF/Swing applications?
    Thank´s.

    I've been working on a soon-to-go-production 3-tier ADF Swing project for a while.
    I would say it is possible but not easy. A lot of effort in my project has gone into workarounds for various things that do not work as expected (and not as in 2-tier mode), refresh-issues, deployment issues and other. We have found workarounds for most of them and JDev 10.1.3 is a lot better for ADF Swing then earlier releases.
    Scalability is still an unsolved issue for us as a lot of functionality you'd expect in a rich gui is lost when using "batch mode" which probably scales better then "immediate".

  • PL/SQL as front end.....

    hi....
    Where we use PL/SQL as front end and How to use...? What package used to create the front end..... Give me a sample example... or Give me site link to know more about this.....
    Thanks
    S.Ashokkumar.

    > I think that is not entirely true. You can use Developer 9i where you can use
    the Pl/SQL code to construct a full capability of a web page using this
    PSP? PL/SQL Server Pages?
    PL/SQL (as used in PSP and APEX) is a server-side language. It has not User Interface abilities.
    This means that it
    - cannot display a form on the screen as it is not attached to a monitor/display
    - cannot read user keyboard input
    - cannot read user mouse input
    PL/SQL cannot "talk" to the end-user as it lacks the UI (User Interface) component.
    The only way for it to "talk" to an end-user is to communicate with the actual UI application of the user - and then that UI app can interact with the user, interface with the monitor, keyboard and mouse.
    So how does PL/SQL communicate with the UI? Two basic methods.
    Traditional client-server. The UI is a Delphi/Powerbuilder/VB application. It uses an Oracle Client Driver. It connects to Oracle, executes the PL/SQL code and that code returns data to the UI. The UI renders that data.
    The UI in traditional client-server is a tty (typewriter) device - meaning that each and every key or mouse input can be immediately send (if needed) to the server. E.g. typing text into a combo box can result in a SQL query per keystroke to list the matching values in the database for that filter.
    The UI in traditional client-server also has state. It opens a connection to Oracle. It uses and re-uses that connection. It can lock rows. It can run DML on those rows. It can commit and rollback those locks.
    Thin client-server. The UI is a browser. It has not Oracle Client Driver (or need any other Oracle client software). The UI makes a HTTP (or HTTPS) call to a web server that runs an "Oracle Interface Module". Via this module, a PL/SQL call is made. PL/SQL code writes to a buffer area. The code terminates. This buffer is streamed via the web server to the client UI. The web browser receives this HTTP stream and process it. It renders a web page, graphics, etc.
    The "Oracle Interface Module" is either:
    - a module called MOD_PLSQL used in Apache Web Server
    - a web servlet defined in the EPG web server in Oracle's XML DB
    The UI client is a block device. The user has to enter all the data on the UI. And then submit it. The UI gets a complete screen to render when it receives the data from PL/SQL via the web server.
    The UI client is stateless. It uses a new or different Oracle session each time it talks to the database. It cannot lock rows like in the traditional client-server. It needs to use optimistic locking. PL/SQL code needs to be written to manage the state data for the client. Etc.
    PL/SQL Server Pages are executed via a web server module - the PL/SQL code resides inside HTML pages. This code creates a dynamic HTML pages. This page is send to the web browser.
    Thus, PL/SQL cannot interact with the user. It has to interact with the UI. You cannot use PL/SQL itself as the front-end as it does not run on the client. The front-end has to be an application or browser. PL/SQL needs to send data to that. That UI renders that data and interact with the client. Not PL/SQL.

  • Missing file error when installing SAP Front End

    When installing SAP front end, i am receiving following file missing error, please assist:
    I am using Windows XP Professional
    The SAP Front-End Setup has not successfully installed all selected components on your computer, either because a component could not be installed or the process has been aborted.
    Click Finish to exit the wizard.
    The following program files are missing on the installation source:
    c:\sapexport34567\others\sapgui620\gui\windows\win32\sapgui\filc\odbc\mscreate.dir
    c:\sapexport34567\others\sapgui620\gui\windows\win32\sapgui\xxl\saplotgr.gid
    c:\sapexport34567\others\sapgui620\gui\windows\win32\sapgui\xxl\saplotuk.gid
    The installed applications may not function correctly until all program files are successfully installed. For detailed error descriptions, please open file://C:\SAPEXP1\Others\SAPGUI1\GUI\WINDOWS\WIN32\setup\saplogvw.exe .

    Hi Anand,
    I would not care about those files, because they are unneccessary. mscreate.dir is a 0 byte file which just tells that microsoft has created this directory. The *.gid files are winhelp files that get created when you first use the help function.
    Regards,
    Pascal

Maybe you are looking for

  • NetworkInterface objects disappear on Mac computers

    In our Java 6 program, we are trying to get the Mac address of all the network interfaces on the machine. It calls NetworkInterface.getNetworkInterfaces() to get a list of them. On Windows with the Sun JRE, everything works fine. However, on Mac comp

  • Oracle Filesync Configuration Problem

    hi. I installed Oracle File. it was working well. OCS R1 single box windows I can connect Oracle File using 1. http://hostname:7779/files/app 2. ftp://hostname now I am trying to use Oracle Filesync but after installation, "Web Server URL" is needed

  • Javax.mail emails not sent

    Hi, We are sending emails through the javax.mail class in our application, basically it works fine, however I was wondering how I could do one of the two: 1. validate an email address to be correct (existing, not using the java classes for rfc valida

  • Missing episodes after buying a season pass to a TV series

    I bought a season pass for Vampire Diaries Season 4 and the clowns at iTunes have released episode 15 before episodes 12, 13 & 14. I started watching the downloaded episode before realising it was the wrong one - massive spoilers!!! How do I get the

  • AD HOC connection EOS 6D to MacBook Pro

    Though successfully made an AD HOC connection to my smartphone I've had no such luck connecting to my Mac.  If it's possible on ios 7 it's gotta be possible on OS X Mavericks... I get all the way to the "select camera" option from the WFT pairing ico