Unable to pass object from pl-sql to wps

Hi Team
I am trying to pass an object to a different system via WPS 6.2. I am using WPS 6.2 and Oracle 10g.
I want to pass an array of objects returned from a Pl Sql procedure as an output to WPS. However, am unable the object values are not being currently received by WPS. WPS calls this procedure (PlSql), which returns an array of objects. However, it reads the object values as '???'. We tried to write them in an XML
<FetchGENEVACustomerOutput>
<ResponseHeader>
<Status>0</Status>
<ErrorMessage>Accounts Details found for Customer with CRN=525Test_SP_TAM</ErrorMessage>
</ResponseHeader>
<GenevaCustomerDetails>
<AccountNumber>???</AccountNumber>
<ProfileID>???</ProfileID>
<BillingCurrency>???</BillingCurrency>
<InfoCurrency>???</InfoCurrency>
<City>???</City>
<State>???</State>
<BillTerm>???</BillTerm>
<PaymentDueDate>???</PaymentDueDate>
I hope I am posting the question in a comprehensive manner. Never worked with WPS before, it is a different team in our organization. Both of us are trying to solve the issue.
Thanks in anticipation

Mohan,
Have you tried using UTL_SMTP? It uses UTL_TCP and encapsulates a lot of the stuff you're doing manually, so might be easier. Let me know if you need an example.
Hope this helps,
-Dan
http://www.compuware.com/products/devpartner/db/oracle_debug.htm
Debug PL/SQL and Java in the Oracle Database

Similar Messages

  • Can we pass objects to pl/sql block

    hi,
    can we pass objects to pl/sql block.i think we can.how to pass it.help me in getting the examples of "passing objects to pl/sql block"

    What exactly do you mean ? You can pass objects like any other parameters
    into and out from procedures/functions:
    SQL> create or replace procedure get_object(myobj in out nocopy my_obj)
      2  is
      3  begin
      4   dbms_output.put_line('ID : ' || myobj.empno);
      5   dbms_output.put_line('Salary : ' || myobj.sal);
      6   dbms_output.put_line('Department : ' || myobj.deptno);
      7   myobj.sal := myobj.sal*2;
      8  end;
      9  /
    Procedure created.
    SQL> declare
      2   mo my_obj := my_obj(1,1000,10);
      3  begin
      4   get_object(mo);
      5   dbms_output.put_line('New salary : ' || mo.sal);
      6  end;
      7  /
    ID : 1
    Salary : 1000
    Department : 10
    New salary : 2000
    PL/SQL procedure successfully completed.Rgds.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • How to reference multiple instances of the same Java object from PL/SQL?

    Dear all,
    I'm experimenting with calling Java from PL/SQL.
    My simple attempts work, which is calling public static [java] methods through PL/SQL wrappers from SQL (and PL/SQL). (See my example code below).
    However it is the limitation of the public static methods that puzzels me.
    I would like to do the following:
    - from PL/SQL (in essence it needs to become a forms app) create one or more objects in the java realm
    - from PL/SQL alter properties of a java object
    - from PL/SQL call methods on a java object
    However I fail to see how I can create multiple instances of an object and reference one particular object in the java realm through public static methods.
    My current solution is the singleton pattern: of said java object I have only 1 copy, so I do not need to know a reference to it.
    I can just assume that there will only ever be 1 of said object.
    But I should be able to make more then 1 instance of an object.
    To make it more specific:
    - suppose I have the object car in the java realm
    - from PL/SQL I want to create a car in the java realm
    - from PL/SQL I need to give it license plates
    - I need to start the engine of a scpecific car
    However if I want more then 1 car then I need to be able to refrence them. How is this done?
    Somehow I need to be able to execute the following in PL/SQL:
    DECLARE
    vMyCar_Porsche CAR;
    vMyCar_Fiat CAR;
    BEGIN
    vMyCar_Porsche = new CAR();
    vMyCar_Fiat = new CAR();
    vMyCar_Porsche.setLicensePlates('FAST');
    vMyCar_Porsche.startEngine();
    vMyCar_Fiat.killEngine();
    END;
    Thanks in advance.
    Best Regards,
    Ruben
    My current example code is the following:
    JAVA:
    ===
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED CODAROUL."RMG/BO/RMG_OBJECT" as package RMG.BO;
    public class RMG_OBJECT {
    private static RMG_OBJECT instance = new RMGOBJECT();
    private String rmgObjectNaam;
    private RMG_OBJECT(){
    this.rmgObjectNaam = "NonDetermined";
    public static String GET_RMGOBJECT_NAAM () {
    String toestand = null;
    if (_instance == null) {toestand = "DOES NOT EXIST";} else { toestand = "EXISTS";};
    System.out.println("instance : " + toestand);
    System.out.println("object name is : " + _instance.rmgObjectNaam);
    return _instance.rmgObjectNaam;
    public static Integer SET_RMGOBJECT_NAAM (String IN)
    try
    _instance.rmgObjectNaam = IN;
    return 1;
    catch (Exception e)//catch
    System.out.println("Other Exception: " + e.toString());
    e.printStackTrace();
    return 5;
    } //catch
    PL/SQL Wrapper:
    ==========
    CREATE OR REPLACE FUNCTION CODAROUL.SET_RMGOBJECT_NAAM(NAAM IN VARCHAR2) return NUMBER AS
    LANGUAGE JAVA NAME 'RMG.BO.RMG_OBJECT.SET_RMGOBJECT_NAAM (java.lang.String) return java.lang.Integer';
    Calling from SQL:
    ==========
    CALL dbms_java.set_output(2000);
    select CODAROUL.GET_RMGOBJECT_NAAM() from dual;
    Edited by: RubenS_BE on Apr 6, 2012 5:35 AM
    Edited by: 925945 on Apr 6, 2012 5:41 AM

    You can do this by manually creating a new iterator binding in your binding tab.
    So instead of dragging the VO directly to the page, go to the binding tab, add a new executable iterator binding, and point to that one from your ELs in the page itself.

  • Unable to pass variables from IRPT to on demand MDO in MII v12.2

    Hi all,
    Here is what I am trying to achieve - to pass an order input value from front end and fetch the results through on demand MDO.
    STEP 1: Created a BLS transaction with input parameter order and tested it to get Output XML - SUCCESSFUL.
    STEP 2: Created an On-Demand MDO object pointing to the BLS transaction, tested it by passing the value to input parameter in Dynamic Query Parameters - SUCCESSFUL.
    STEP 3: Created an MDO Query Template in SELECT mode pointing to the MDO object created, there are 2 things which I noticed. when I pass the value to OBJECT PARAMETER, it worked fine and when I pass it to PARAMETERS it Doest not work. I just used the object parameter because it worked for me.
    STEP 4: Created an Applet with MDO Query Template and Grid Display template. Tried passing the value using setParam(1, order). I found 3 different variations:
         Result 1: If Object Parameter in MDO Query is not set to any default value - "No Data Available" is seen on applet.
         Result 2: If Object Parameter is set to some valid default value say 123, irrespective of what I pass from UI setParam, I always see the data of 123.
         Result 3: If Object Parameter is set to some valid default value say 123 and in addition to that, I add Filter expression [val1] = [ param (dot)1 ] in my MDO select query, then when I pass 123 from UI, I see the result and when I pass someother input I see empty table, however now I can see the columns with empty table.
    Can someone tell me where I am going wrong?
    Any help is highly appreciated.

    Hi Michael,
    I am using the ramup version 12.2 and want to explore all the new features available in 12.2 and came downloaded the example project of MII 12.2 avaiable here. while doing that I came across an example of onDemand MDO query for pulling the data from Tag quieries and making it dymanic by passing speed or quality or perfomance parameters, however it just showed me only quality results always, I coudn't test it properly because it was a tag query so I created my own scenario and it didnt work from UI as expected.
    so wanted to know if I am going wrong somewhere before I conclud it is a bug.

  • Passing objects from two servlets residing in  two  servers

    Suppose i need to pass an object from one servlet to another servlet ,that are residing in two servers(Tomcat).How can i achieve this.
    Plz help me in this regard.
    Thanks in Advance......

    Serialize them to XML and send as POST parameter

  • ClassCastException while passing object from one context to another

    I am hoping that someone will bear with me as I think it is my knowledge of classloaders that is tripping me up. I am using Spring and have a SecurityContextImpl object that I want to pass from one web app (WA2) to another web app (WA1). In WA2 I do the following:
    ServletContext wa1Context = getServletContext().getContext("WA1");
    wa1Context.setAttribute("SPRING_SECURITY_CONTEXT" , SecurityContextImpl);WA1 then tries to get the SPRING_SECURITY_CONTEXT and cast it to a SecurityContext object. This is where I get the ClassCastException. I have:
    crossContext="true"in my context.xml fragment. My reading tells me that I may be able to get around this by copying all the spring jars into my Tomcat lib folder but I seem to have to copy so much in there (Spring, hibernate, atomikos etc.) that it does not seem to be a good solution; I gave up before copying all the dependencies it asked for. Is there another way around this problem?
    What I really want to do is find an easy way to copy this one object from WA2 into WA1.

    Thanks for taking the time to test this. I also tried with a String and was successful but still cannot get it to work with my SecurityContextImpl. I also tried passing a String wrapped in a custom bean with a single string property. I get the same ClassCastException. I think that using a String works because it is native to the JVM and somehow bypasses the class loading issue but as I say, my knowledge of classloaders is null.
    Here is the exact code I am running in WA1 and WA2:
    In WA2 (context is /forum):
    ServletContext servletContext = httpRequest.getSession().getServletContext().getContext("/");
    servletContext.setAttribute("SPRING_SECURITY_CONTEXT", httpRequest.getSession().getAttribute("SPRING_SECURITY_CONTEXT"));
    logger.debug("It was of type [" + httpRequest.getSession().getAttribute("SPRING_SECURITY_CONTEXT").getClass().getName() + "]");In WA1 (A JSP sitemesh decorator with context "/"):
    Object object = getServletContext().getAttribute("SPRING_SECURITY_CONTEXT");
    System.out.println("IN DECORATOR, OBJECT IS OF TYPE [" + object.getClass().getName() + "]");
    SecurityContext securityContext = (SecurityContext) object;The log output is:
    DEBUG uk.co.prodia.prosoc.security.spring.cas.login.CheckDecoratorKnowsAboutLogin  - It was of type [org.springframework.security.context.SecurityContextImpl]
    IN DECORATOR, OBJECT2 IS OF TYPE [org.springframework.security.context.SecurityContextImpl]

  • Unable to create object from stored procedure universe

    Dear All Experts,
    I am facing a problem on unable to create object dimensions on a Stored procedure universe. Fyi, I have successfully insert a stored procedure ('SP_Sales') with input parameter (@date) into universe (Universe_1). But I unable create any object based on the the stored procedured ('SP_Sales') due to it show nothing from the Edit Select Statement of 'Object1', empty for Tables nd columns windows.
    Thefore, i unable to drag data in WEBI when i select univese as "Universe_1", it will not sure any object. Please advise.
    I am using XI4.0, MSSQL2008.

    Hi ,
    You wont be able to edit the object definitions.
    u2022 Designer generates one table per selected stored procedure (or many
    tables if multiple result sets) and one object per column returned by a
    stored procedure.
    u2022 The result set structure is determined when you describe the function.
    Please refer chapter 7(Page 451) of below document for more details.
    [Universe Designer Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_designer_en.pdf]
    Hope this helps.
    Bilahari M

  • Passing Objects from Servlet to Servlet

    Hei,
    how do I pass an object from one servlet to another.. or back to the same again?
    I have my servlet and there I want
    first create an object, then pass that object for processing and manipulating and then pass it for output of the final result..
    How can I send and get the object in a servlet?
    Big thx,
    LoCal

    Hei,
    sorry.. maybe I gave to less informations. In fact it's only one servlet...
    I can't post the original code but something that makes it clear :)
    I wrote the whole project without using Servlet-Technique but normal Java-App. But I designed it so, that I only had to rewrite one class.. and least I thought so.. but now I stuck at this Object-passing problem.
    Sorry.. but I'm pretty new to Servlets
    Thank you very much in advance for your help.
    public class Logger extends HttpServlet {
      private Templates templ = new Templates();
      private Person pers;
      public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        String uname = req.getParameter("user");
        String pwd = req.getParameter("pwd");
        String sts = req.getStatus
        PrintWriter out = res.getWriter();
        switch(sts) {
          case 1: out.println(templ.getXHTMLEditPers(pers));
          break;
          case 2: out.println(templ.getXHTMLViewPers(pers));
          break;
          case 3: out.println(templ.getXHTMLView(pers));
          break;
          default: out.println(tmpl.getXHTMLLogin());
      public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
      doGet(req, res);     
    }

  • Pass output from PL/SQL proc back to ODI for logging

    Hi,
    In ODI (10g), is there any way to pass output from a PL/SQL procedure back to the calling stage?
    I am working on the run time of a batch, one part of which calls a procedure and so currently black box.
    I'd like to instrument the proc so that I can see in Operator some kind of timed activity so that I can profile its activity better.
    The best I've had suggested so far is to write out to file from the procedure and then use ODI to parse this and spit it out in the stage log. I don't like this approach for two reasons:
    1) Our DBAs quite rightly get very itchy with the privs required for writing to files, and another app to read from the same
    2) It's messy :)
    Any ideas?
    thanks, Robin.

    Robin
    I don't know ODI. However if you are calling a stored proc procA and you have control over what you call, at the very least you could write a wrapper procB as
    CREATE OR REPLACE PROCEDURE PROCB (parms)
    AS
    BEGIN
    SYS.DBMS_MONITOR.SESSION_TRACE_ENABLE();
    MYUSER.PROCA(parms);
    SYS.DBMS_MONITOR.SESSION_TRACE_DISABLE();
    END;
    / If ODI sets service,module and action (as it should) then you could ask the DBA to set SERV_MOD_ACT_TRACE_ENABLE instead.
    Niall Litchfield
    http://www.orawin.info/

  • [urgent[ Passing object from server to the midlet

    I am building a search function for my mobile application..
    I created a servlet "SearchServlet.java" that basically send a query to the dbase to retrieve the values in the database.
    In this servlet, I store the results in an arraylist..
    The servlet works just fine *I've tested it in the browser and accessed it through the local host"..
    The concern now is, what if I need to call the servlet from the midlet application..
    How to pass the object from the server to the midlet?
    Could someone explain to me the mechanism to pass the object?
    What object should be the return value in SearchServlet.java?
    Thank you very much..

    First of all use sober language on forums, its not
    your private forum where you can use your abusive
    language.And even if it is than its not good manners
    to speak in public.Well, quite honestly, my language was not that abusive... I aleady told you that that it's wrong several times... No response on those (at least nothing showing that i would be wrong). And if you keep linking to that code, I find that very anoying.
    Second of all. the try catch block sends response
    back to J2me app request.Its upto developer whatever
    response he wants to send back. There is nothing
    wrong in that.No, all it does it declare a string, nothing more, nothing less. No need to catch any exception!
    third of all if you think that writeUTF method is
    totally wrong, then why dont you show me the
    improved solution or correct solution. After all its
    forum site, if you know the better solution please
    show me rather than always criticising and using
    abusive languages.I told you several times that you should read the api docs! It's all in there and you see why you should not read data with readline() when you write that data with writeUTF(). If you fail to do that, and are not capable to learn from that, then that's your own problem. Sure I could show you what it should be (and I beleive I did more than ones), but what does that teach you? Not a lot! Only to keep coming back here and ask more questions that can be found if you take two minutes of time and read docs or search the internet using google or whatever search engine you like (or even the forum search enigne, since that is also rarely used). I'm not talking about you in particular, but about the general level of the questions asked here. 75% of the answers can be found with a little more effort, and in less time than it would take to wait for someone else to come up with an answer.
    So please, read what writeUTF() does, and you'll understand what's wrong.
    Let me show you:
    Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.
    First, two bytes are written to the output stream as if by the writeShort method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for the character. If no exception is thrown, the counter written is incremented by the total number of bytes written to the output stream. This will be at least two plus the length of str, and at most two plus thrice the length of str. What does readline() do? It reads UTF-8 text until some endline character. So it will also read the two length bytes of the wirteUTF method. Is this good? No, it's not. If the lengt is to long, it could even insert extra text characters in the line that should not be there, since readline doesn't know anything about the length bytes, and theats them as normal UTF-8 text.
    If you think I dont understand API properly than make
    me explain, thats what forums are for...You never said you didn't understand the api docs... I think they are very clear
    To end it I really doubt that you are developer/
    coder. If you think yourself too perfect please guide
    me.I'm not perfect, I'm just putting effort into finding solution myself.
    If you are going to continue such an attitude I have
    to report to Java forums administrator.I realy don't mind.
    Note to original user who posted this message: I am
    sorry to write such a comment in your thread, but
    "deepspace" user really needs some help.Please, if you want to make a comment, be constuctive. Talking about abusive language... This might be subtle, but it still is abusive! Tell that to all the users I helped already... I bet I'm the most active user here at the moment and I think I helped a whole lot of them very well. Some didn't like my method at first, but in the end, most wil apriciate what I did. I like to let user find out stuff for themselfs, and not give them what they want. They learn much more thay way for sure!

  • Use HTTP Session to pass Object from Web Dynpro for Java to JSP page

    Is it possible to get a handle on the HTTP Session object from within a Web Dynpro application? I want to place a Java object in there that can be retrieved by a JSP page.
    Thanks in advance.

    Hi Tom Cole,
       You can try this. i am not sure if this will work or not.
    HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
    You can also try this.
    IWDRequest mm_request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    HttpServletRequest request = (HttpServletRequest)mm_request.getProtocolRequest();
    IWDRequest basically wraps the HttpServletRequest. if you are using NW04s then the getProtocolRequest() may not be available.
    Regards,
    Sanyev

  • Unable to remove object from arraylist

    Hello,
    I am trying to remove a few objects from an arraylist and it isnt happeneing in one loop :
                         for(int i=0;i<someList.size();i++){
                             empVo = (EmpVO)colList.get(i);
                             if(empVo.getempName().trim().equalsIgnoreCase("A") ||empVo.getempName().trim().equalsIgnoreCase("B") ||empVo.getempName().trim().equalsIgnoreCase("C") )
                                colList.remove(i);
                         }So, it doesnt remove the object all the time whenever the names of A,B or C appear, so I have to run this loop thrice so it deletes all the data pertaining to these three emp names. Then I thought may be the size of the arraylist is changing and used a temp var for the someList.size, but that doesnt work either. Could you please tell me what is going wrong ?
    Edited by: Sarvananda on Sep 3, 2010 12:10 PM
    Also, the exact test has names A to F. So say A, D and E will be deleted in the first loop, then I have to specifically sysout and see which ones were deleted and then write another loop for B,C and F. Ofcourse at the end A - F are removed. But why two loops for it

    Encephalopathic wrote:
    What if you do this using an iterator to remove items, or if you start from the top of the list and iterate down to the first item?thanks for your reply. I was just looking at the API, and stumbled on this :
    The iterators returned by this class's iterator and listIterator methods are fail-fast: if the list is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove or add methods, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.Any pointers on where I could look or how I could I move from here ?
    Another question I had was, there is no efficient way to 'move' objects in an arraylist (based on their indexes), isn't it ?
    I always have to remove and add at a certain index.

  • Unable to create object from stored procedure

    Hi,
    we are trying to use a stored procedure to do data preparation.
    When we add the stored procedure to a universe, the procedure is executed succesfully and a table with one column, called "1" is created. When we try to create an object from this column, Designer does not allow us to do so.
    We already tried to alias the column name in the stored procedure but we still get an unusable column called "1" back.
    BO version used is XI R3.0. The stored procedure is written in Cobol on DB2 mainframe.
    Does somebody know what we do wrong ?

    Problem solved.
    First we aliased the result columns in the stored procedure, that got rid of the "1".
    Then we still could not create an object based on the column in the result set.
    Apparently this issue occurs when the length of the column of the result set is too long.
    We decreased the length and now we can create the object

  • How to pass Objects from Java App to JavaFX Application

    Hello,
    New to the JavaFX. I have a Java Swing Application. I am trying to use the TreeViewer in JavaFX since it seems to be a bit better to use and less confusing.
    Any help is appreciated.
    Thanks
    I have my Java app calling my treeviewer JavaFX as
    -- Java Application --
    public class EPMFrame extends JFrame {
    Customer _custObj
    private void categoryAction(ActionEvent e)   // method called by Toolbar
            ocsCategoryViewer ocsFX;    //javaFX treeviewer
            ocsFX = new ocsCategoryViewer();    // need to pass in the Customer Object to this Not seeing how to do it.
                                                  // tried ocsFX = new ocsCategoryViewer(_custObj) ;    nothing happened even when set this as a string with a value
    public class ocsCategoryViewer extends Application {
    String _customer;
    @Override
        public void start(Stage primaryStage) {
         TreeView <String> ocsTree;
         TreeItem <String> root , subcat;
      TreeItem <String> root = new TreeItem <String> ("/");
            root.setExpanded(true);
             ocsTree = new TreeView <String> (root);
             buildTree();     // this uses the Customer Object.
            StackPane stkp_root = new StackPane();
            stkp_root.getChildren().add(btn);
            stkp_root.getChildren().add(ocsTree);
            Scene scene = new Scene(stkp_root, 300, 250);
            primaryStage.setTitle("Tree Category Viewer");
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            _customer = args[0];      // temporarily trying to pass in string.
            launch(args);

    JavaFX and Swing integration is documented by Oracle - make sure you understand that before doing further development.
    What are you really trying to do?  The answer to your question depends on the approach you are taking (which I can't really work out from your question).  You will be doing one of:
    1. Run your Swing application and your JavaFX application as different processes and communicate between them.
    This is the case if you have both a Swing application with a main which you launch (e.g. java MySwingApp) and JavaFX application which extends application which you launch independently (e.g. java MyJavaFXApp).
    You will need to do something like open a client/server network socket between the applications and send the data between them.
    2. Run a Swing application with embedded JavaFX components.
    So you just run java MySwingApp.
    You use a JFXPanel, which is "a component to embed JavaFX content into Swing applications."
    3. Run a Java application with embedded Swing components.
    So you just run java MyJavaFXApp.
    You use a SwingNode, which is "used to embed a Swing content into a JavaFX application".
    My recommendation is:
    a. Don't use approach number one and have separate apps written in Swing and Java - that would be pretty complicated and unwarranted for almost all applications.
    b. Don't mix the two toolkits unless you really need to.  An example of a real need is that you have a huge swing app based upon the NetBeans platform and you want to embed a couple of JavaFX graphs in there.  But if your application is only pretty small (e.g., it took less than a month to write), just choose one toolkit or the other and implement your application entirely in that toolkit.  If your entire application is in Swing and you are just using JavaFX because you think its TreeView is easier to program, don't do that; either learn how to use Swing's tree control and use that or rewrite your entire application in JavaFX.  Reasons for my suggestion are listed here: JavaFX Tip 9: Do Not Mix Swing / JavaFX
    c. If you do need to mix the two toolkits, the answer of which approach to use will be obvious.  If you have a huge Swing app and want to embed one or two JavaFX components in it, then use JFXPanel.  If you have a huge JavaFX app and want to embed one or two Swing components in it, use a SwingNode.  Once you do start mixing the two toolkits be very careful about thread processing, which you are almost certain screw up at least during development, no matter how an experienced a developer you are.  Also sharing the data between the Swing and JavaFX components will be trivial as you are now running everything in the same application within the virtual machine and it is all just Java so you can just pass data around as parameters to constructors and method calls, the same way you usually do in a Java program, you can even use static classes and data references to share data but usually a dependency injection framework is better if you are going to do that - personally I'd just stick to simply passing data through method calls.

Maybe you are looking for

  • Why does iTunes create disk errors when deleting movie files?

    I use a Macbook Pro, OSX 10.7.5. When I delete movie file from my iTunes library I get disk errors. I need to option boot select the recovery disk and repair the disk.  Deleting a movie file I have placed on my desktop with finder does not create any

  • Colorizing B&W Photos

    I'm having a problem when try to colorize a B&W photo, what I do is convert to RGB mode and then set up brush to "color" blending mode and try to colorize with with the color in the Color Palette, and here comes my problem, the color is completely di

  • Problems installing 10.3 on ibook

    I recently got an ibook 900MHZ/256MB/40GB/COMBO that is running 10.2 and Classic 9.2, I've upgraded to 10.2.8 and everything has been working fine, I want to upgrade to Panther(10.3), but every time I try to install I get panic(cpu 0): Unable to find

  • Using Web Services on the Crystal Report Server XI to return reports

    <p>Hi,</p><p>I'm trying to setup for the first time a Crystal Reports Server XI R2 and put a couple of reports onto the server.  This is so I can access the reports on the crystal reports server using using the crystal web services and finally displa

  • FrameMaker 12 master page footer tab stops

    I'm using FrameMaker 12 for the first time (have used other versions in the past). On the right master page, I hit Tab twice, and inserted two variables into the footer. On the Body pages, the text is cut off on the right. To fix it, I had to delete