Using class from one application in another application

How can I use a class deployed as part of an application in another application withour putting the jar files in the classpath? For example, there two application deployed: app1 and app2. An EJB in app1, app1_ejb1, uses an class, app2_class1. In order for this work, I have to include app2 in the classpath. If not I get a class not found exception. If I put app2 in the classpath, then I can not use hot deploy for app2. I can put the class in both the applications but that means if the code changes I have to build and deploy both the applications. Any ideas?

Brilliant! Thank you.
If the Mileage table does not have a location in yet (if I've not entered it into the table yet) how can I get the result to enter an error or an oops rather than the number to the one nearest to it?
I've looked on the function descriptions but none of it is written in english
Thanks
Paula

Similar Messages

  • How can I using tpcall from one service to another service in the same server

    When I using tpforward between two services in one server, it's working ok. However,
    when I using tpcall from one service to another service, it's failed?
    anybody can tell me why?
    thanks
    george

    "george" <[email protected]> wrote:
    >
    When I using tpforward between two services in one server, it's working
    ok. However,
    when I using tpcall from one service to another service, it's failed?
    anybody can tell me why?Basically, tpcall:ing another service in the same server is a no-no, unless you
    a) are running a multi-threaded server (requires TUXEDO 7 or newer + compilation
    options) or
    b) use tpacall() instead of tpcall() and specify the flag TPNOREPLY. This is probably
    not what you want to accomplish, though.
    The reason is that TUXEDO servers by default (and always in versions before 7)
    are single-threaded. If service A and B both reside in server X, server X will
    be busy taking care of the call to A. If A makes a call to B, the call will be
    put on the queue to X, but X will not look at the queue until it is done with
    A, which won't happen until B returns... deadlock!
    You can play tricks with starting multiple instances of X, but in the end you
    will always face a risk (something lika a race-condition) for a dead-lock.
    Solution: Move service B to another server (usually quite easy) OR switch to multi-threading,
    if that's possible. Just make sure all code your service calls is MT-safe as well...
    thanks
    georgeHope this helps you,
    /Per

  • What is the utility called to be able to use MSOffice from one mac to another?

    what is the utility called to be able to use MSOffice from one mac to another?
    thanks

    Remote Desktop Connection?
    Screen Sharing?

  • How can I use footage from one project in another?

    The best format for saving your video from one project so that it can be used in another Premiere Elements project is DV-AVI. For hi-def video, the format is HDV.
    To save your video as a standard-definition DV-AVI, go to Share, Personal Computer and select the AVI output option with the DV preset. When you're ready to mix together these segments open a new project using the DV settings and assemble them on that timeline.
    To save your video as a high-definition M2T video, go to Share,  Personal Computer and select the MPEG output option with the 1440x1080 MPEG preset. When you're ready  to mix together these segments open a new project using the HDV settings  and assemble them on that timeline.

    The best format for saving your video from one project so that it can be used in another Premiere Elements project is DV-AVI. For hi-def video, the format is HDV.
    To save your video as a standard-definition DV-AVI, go to Share, Personal Computer and select the AVI output option with the DV preset. When you're ready to mix together these segments open a new project using the DV settings and assemble them on that timeline.
    To save your video as a high-definition M2T video, go to Share,  Personal Computer and select the MPEG output option with the 1440x1080 MPEG preset. When you're ready  to mix together these segments open a new project using the HDV settings  and assemble them on that timeline.

  • Using array from one vi in another vi

    Hi,
    Im new with NI LabView and i have few Qs:
    1. I'm writing a vi and I'm creating a numeric array in it. How can I use the array (It's content) in a different vi that's I'm writing?
    2. How do I link between vi's? Im writing few vi's and pressing a boolean button at one of them should close the current vi and open another one. How it's being done?
    3. How can i create that a picture will appear after pressing a button? pressing a button create entering to a case frame in which I make a string visible, bolded etc. How do I make it also shown picture at the same time?
    thanks and regards,
    Shay

    Ok, so you're at the very beginning so don't be afraid to ask, there are no silly questions.
    LabVIEW is based on the dataflow paradigm, to pass data from A.vi to B.vi the natural LabVIEW way is to place A.vi and B.vi in a new VI, let's call it C.vi.
    So C.vi has two subVIs (A.vi and B.vi).
    Hmmm... you know what... instead of writing I'm going to shout a video.
    It shows how to use the VIs you create as subVIs and how to use the connector pane to pass data from main VI to subVIs and from a subVI to another one. Here is the link : http://www.vimeo.com/17805576
    If this is too easy for you, please don't feel insulted and if you have questions please ask.
    Maybe it's not the best idea to display VI's front panel one after the other (it's possible if that what you really want), this easiest is probably to build a main VI that will use many subVIs to perform different actions. and if you need space a good option is to use tabs.
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Using sound from one Movie in another one

    I have one animation movie and I want the sounds from that one on another version of the movie (another file). How can I export or copy these sounds?

    Share your Project using SHARE/EXPORT USING QUICKTIME... and choose an audio only codec like AIFF. This will give you a sound file that you can use elsewhere.

  • Using data from one table in another

    Can anyone help me? I'm new to this.
    I have a table called Mileage; Column A = Location, B = Number of miles
    I want to use the data in my Business Accounts table so that when I enter a location it will automatically enter the number of miles in the cell next to it from the Mileage table.

    Brilliant! Thank you.
    If the Mileage table does not have a location in yet (if I've not entered it into the table yet) how can I get the result to enter an error or an oops rather than the number to the one nearest to it?
    I've looked on the function descriptions but none of it is written in english
    Thanks
    Paula

  • How can i use calculation from one sheet into another sheet in discoverer

    I have a function which has to be used for several calcualtions in discoverer report.For each row the function is called 8 times, Is there any way that i can create a caculation based on the function in one tab and use this value returned by the function in the other tabs in the discoverer so that i can eliminte the function being called 8 times for each row.
    Please help.

    Hi Lloyd ,
    Thanks for the reply. See below for the detail explanation of what i am Talking about.
    I am Developing a Operational Expense Report based on a Custom Table.
    I get the following columns from the custom Table - Account, Amount Manual, Amount Local, Amount Overseas.
    Then I have two Functions which Calculates two different Ratios Based on the other Custom Table.
    1st function - Qualifying Sales Ratio
    CREATE OR REPLACE FUNCTION xxwfs_avi_q_sales_ratio (p_period VARCHAR2)
    RETURN NUMBER
    IS
    v_q_ratio NUMBER := NULL;
    BEGIN
    SELECT ROUND ((a.nonqualified_ar_amount / b.nq_nq_ar_amount), 4) qualifying_sales_ratio
    INTO v_q_ratio
    FROM (SELECT SUM(NVL(gp.total,0)) qualified_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified = 'Q'
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    ANDgp.gl_date <= p_to_period) a,
    (SELECT SUM(NVL(gp.total,0)) nq_nq_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified in( 'Q','NQ')
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    ANDgp.gl_date <= p_to_period) b;
    RETURN v_q_ratio;
    EXCEPTION
    WHEN OTHERS
    THEN
    v_q_ratio := 0;
    RETURN v_q_ratio;
    END xxwfs_avi_q_sales_ratio;
    2nd Function - Nonqualifying Sales Ratio
    CREATE OR REPLACE FUNCTION xxwfs_avi_nq_sales_ratio (p_period VARCHAR2)
    RETURN NUMBER
    IS
    v_q_ratio NUMBER := NULL;
    BEGIN
    SELECT ROUND ((a.nonqualified_ar_amount / b.nq_nq_ar_amount), 4) nonqualifying_sales_ratio
    INTO v_q_ratio
    FROM (SELECT SUM(NVL(gp.total,0)) nonqualified_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified = 'NQ'
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    ANDgp.gl_date <= p_to_period) a,
    (SELECT SUM(NVL(gp.total,0)) nq_nq_ar_amount
    FROM xxwfs_gp_table gp
    WHERE gp.company = 24101
    AND gp.gtp_qualified is not null
    AND gp.org_id = 126
    AND gp.gl_date >= p_from_date
    AND gp.gl_date <= p_to_date) b;
    RETURN v_q_ratio;
    EXCEPTION
    WHEN OTHERS
    THEN
    v_q_ratio := 0;
    RETURN v_q_ratio;
    END xxwfs_avi_nq_sales_ratio;
    The report is Run based on the parameter for the Range of gl_date.
    I registered these functions in discoverer and passing the parameter values to calculate the ratios. The 2 ratios are just one time calculations for the range of gl_date the report is run.
    The i mulitiply Qualifying Sales Ratio with the columns Amount Manual, Amount Local and Amount Overseas to get Qualifyied Amount Manual, Qualified Amount Local , Qualifyied Amount Overseas and the Nonqualifing Sales Ratio with the same Amount Manual, Amount Local and Amount Overseas columns to get NonQualifyied Amount Manual, NonQualified Amount Local , NonQualifyied Amount Overseas.
    This is the design i am approching now. For each record the function is called 8 times to calculates the qualifying and Non qualifying Sales ratios Ato caculate the other 6 columns based on these Ratio Calculations.
    So i was thinking if there is any way that i can get the Ratios for a specific date range in the First tab and usethe Value of the ratios in the other tab so that the function call is minimized.
    Waiting for your replies.

  • BOPF, how to transfer BOs from one system to another using ZSAPLINK.

    Hi,
    Is there a ways to transfer the local objects created using BOPF from one system to another using ZSAPLINK?
    Thanks and Regards,
    Vineet.

    Hi Deba,
    Find the below SAP help doc which may help u...
    http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
    Also find the below threads...
    Loading data from one cube to another cube.
    data copy from infocube to infocube in two different BW systems
    Delta when loading from ODS to ODS
    reg datamart
    Data mart flag
    Regards,
    KK.

  • How to pass a CString from one application to another application using WPARAM/LPARAM in sendmessage fn.

    I have two different application A & B. I am trying to send a message from A to B. In application A , I get the window handle of application B and call postmessage fn to post a message to application B. While posting the message I am trying to send a
    cstring in wparam parameter so that it can be accessed in the message handler.
    Code in Application A:
    void CTestApplnDlg::OnBnClickedOk()
     CString csProcessName = _T("FSAPP.exe");
     CFSProcess objProcess;
     HWND hFSWnd = NULL;
     if(objProcess.GetProcessHandle(csProcessName, hFSWnd))
      CString * csMessage = new CString(_T("This is message from A application."));
      ::PostMessage(hFSWnd, WM_THIRD_PARTY_NOTIFICATION, (WPARAM)csMessage
    , NULL);
    In the other application in the event event handler I try to do the following :
    LRESULT CMainFrame::OnProcessThirdPartyNotification(WPARAM wParam, LPARAM lParam)
     CString* csMessage = (CString*)wParam;
     if(csMessage )
      AfxMessageBox(*csMessage);
     return 0L;
    In the message handler fn, the variable csMessage is pointing to a address but the value is a bad ptr. On accessing the variable like *csMessage it crashes. I have created the variable in heap when the message is posted. So I hope the variable will be in memory.
    Pls help.

    The ultimate problem is that when you place a CString in a wparam like that you are putting an address.  That address only has meaning in the first program.  Your second program cannot access the first programs memory (this is good, otherwise misbehaving
    programs could take down all applications in Windows).  But it does make transferring data between programs more complicated. 
    Some messages like WM_COPYDATA will copy a data buffer from one process to another and are appropriate for what you are trying to do, but a custom message like
    WM_THIRD_PARTY_NOTIFICATION is not one of them.
    By the way your example has a memory leak as well since you would have no way to ever clean up the string you allocate in OnBnClickedOk

  • Redirecting from one application to another

    Hi All,
    Anybody please tell me how to redirect from one application to another.
    I have two application one is a1 and second is a2 inside orion.
    a1 has a jsp file named a1index.jsp. and a2 has a jsp file named a2index.jsp.
    in a1index.jsp file I am using response.sendRedirect("\a2\a2index.jsp") and redirecting to a2index.jsp. But it doesn't open a2index.jsp file as the syntex is not correct. .
    Anybody please tell me what is the correct syntax to redirect from one application jsp to another jsp...
    please reply soon..
    Thanks in advance.......

    thanks for your reply, but it is giving following
    error.......
    Error parsing JSP page /admin/login.jsp
    Syntax error in source/admin/login.jsp.java:23:
    cannot resolve symbol (JSP page line 2)
    symbol  : variable RequestDispatcher
    location: class /admin/login.jsp
    RequestDispatcher =
    getServletContext().getContext("a2/fabricatoradmin").g
    etRequestDispatcher("\fablogin.jsp");
    ^
    /admin/login.jsp.java:23: cannot resolve symbol (JSP
    page line 2)
    symbol  : method getServletContext ()
    location: class /admin/login.jsp
    RequestDispatcher =
    getServletContext().getContext("a2/fabricatoradmin").g
    etRequestDispatcher("\fablogin.jsp");Thanks
    please reply..Inside a jsp file u can use the application variable instead of using
    getServletContext()
    like application.getContext("/a2").getRequestDispatcher("/fabricatoradmin/fablogin.jsp");
    regards
    Pravin

  • Error while copying a page from one application to another application

    Hi All
    I am using Oracle Apex 4.0
    I getting the error ORA-06502 Pl/Sql Numeric error character string buffer too small when i copying a page from one application to another application.
    Thanks & Regards
    Srikkanth.M

    I'm having the same issue. How did you solve this?

  • How can I pass a value from one application to another through URL

    I am passing a value APP_USER from one application to another application (item is P_ASK_U) through navigation bar entrees URL.
    This is working with in the application..(javascript:popupURL('f?p=&APP_ID.:165:&SESSION.::&DEBUG.::P_ASK_U:#&APP_USER.#') )
    This one is not passing the value, eventhough it open the application..
    javascript:popupURL('http://htmldb.oracle.com/pls/otn/f?p=35129:1:::P_ASK_U:&APP_USER.');
    Is there any syntax error or is it not possible, please let me know..
    Thanks
    Venu

    Hi Scott,
    You are right, the first one do not need # character.
    In the Doc it is mentioned as....
    Pass the value on a URL reference using f?p syntax. For example:
    f?p=100:101:10636547268728380919::NO::MY_ITEM:ABC
    I am using the following URL, it pops up the external application, but it is not passing the APP_USER value to the page item of that application.
    javascript:popupURL('http://htmldb.oracle.com/pls/otn/f?p=35129:1::P_ASK_U:&APP_USER.');
    sorry I still do not know what I am missing..
    Thanks
    Venu

  • Move data from one Application to another Application.

    Hi All,
    I have a requirement to move data from one Application to another Application(we are working on SAP BPC 5.1/7.1 MS version).
    Can anybody please mention all the possible ways to achieve it.
    Thanks in advance.
    Regards
    Vani

    Hi,
    The best way to do this would be to use destination_app statement. Please refer to the below link from help.sap:
    http://help.sap.com/saphelp_bpc75/helpdata/en/79/b299446e02478fa5eca684d1297ef3/content.htm
    Alternatively, you can definitely export the data from one application and import it to the second.
    Hope this helps.

  • HT1495 How can transfer a application from one iphone to another iphone?

    How can transfer a application from one iphone to another iphone?

    Follow the instructions here or here; using the first set of instructions then requires syncing the second device with the iTunes library containing it.
    (89299)

Maybe you are looking for

  • Safari 5.0 keeps on crashing

    ok hopefully this worked......apologies i didn't know you couldn't paste the info from word. I know enough about macs to get myself into trouble but not get out of it i guess Crash report below i hope Process: RPDLAgentHelperD [126] Path: /Users/haro

  • Error in intercompany billing with Edi

    Hi, We have a problem with the standard Idoc process in the intercompany sale billing process. The PO has both outbound and inbound deliveries and the Idoc is send through  message type INVOIC in the SD invoice – basic type INVOIC01. The reason for t

  • Manually changing a document version number when importing an existing document

    Hello. Like a lot of people, we are starting to make use of Sharepoint Online as part of an Office 365 subscription. One of the things we want to do is move a bunch of version controlled documents from their current location on a traditional network

  • Tagging a PDF in Acrobat Pro messes up word spacing

    We have an issue. 1. A document in Ventura is published as a PDF. 2. If you search on a particular phrase in the document, it finds ALL occurences of the phrase without issue 3. As soon as you "Add tags" to the PDF two things happen:      1. If you c

  • In need of some advice - Trying to publish my first iOS app

    Hi there! I've been looking just about everywhere for this error, and it does seem like a lot of people have encountered the same problem. However, i cannot find the answer anywhere. When i click "publish", I'm getting this error message: " iOS publi