How to create EJB client without WL specific classes ?

Hi,
I have stateful session EJB running in WebLogic 5.1.
Is it necessary to client that will access that EJB to have WebLogic classes in classpath ?
Is it possible to write client that doesn't have any classes specific to Weblogic ?
Uix

Sure, if it's acceptable for your application to classload from WebLogic.
For example: helper class to start WebLogic client (server is running on
localhost:7001 and client classes are in c:/weblogic/myserver/clientclasses/):
c:\WebLogicClient>set CLASSPATH=.
c:\WebLogicClient>java WebLogicClient examples.ejb.basic.statelessSession.Client
import java.net.*;
import java.lang.reflect.*;
public class WebLogicClient {
/* client classpath. Should NOT be in the java classpath! */
public static final String CLIENT_CLASSES =
     "file://C:/weblogic/myserver/clientclasses/";
/* WebLogic server to classload from */
public static final String WL_CLASSES =
     "http://localhost:7001/classes/";
public static void main(String[] args) {
try {
ClassLoader cl = new URLClassLoader(new URL[] {
new URL(CLIENT_CLASSES),
new URL(WL_CLASSES)
Thread.currentThread().setContextClassLoader(cl);
Class clientClass = cl.loadClass(args[0]);
Method methodMain = clientClass.getMethod("main",
          new Class[] {Class.forName("[Ljava.lang.String;")});
String[] clientArgs = new String[args.length - 1];
System.arraycopy(args, 1, clientArgs, 0, clientArgs.length);
methodMain.invoke(null, new Object[] {clientArgs});
} catch(Throwable oops) {
oops.printStackTrace();
uix <[email protected]> wrote:
Hi,
I have stateful session EJB running in WebLogic 5.1.
Is it necessary to client that will access that EJB to have WebLogic classes in classpath ?
Is it possible to write client that doesn't have any classes specific to Weblogic ?
Uix--
Dimitri

Similar Messages

  • How to create cross-client variant?

    Hi Experters:
    Can someone tell me how create cross-client variant in ECC6.0?
    in 4.6, we can define the client or define cross-client transaction variant,
    how to create cross-client variant in ECC6.0?
    Regareds,

    Hi,
    In se93 there is a check box cross-client .
    The Cross-client switch identifies which transaction variants are cross-client and which are client-specific. If the switch is set, the transaction variant is cross-client. If the switch is not set, the transaction variant is client-specific.
    A client-specific transaction variant can only exist in the client where it was created. The field contents of the transaction variant only have to be available in the particular client. A cross-client transaction variant is available in the system regardless of which client is currently active. The field contents of the transaction variant have to be available in all clients.
    http://****************/Tutorials/ABAP/TransactionVariant/Create.htm

  • "How to create new client in ABAP sneek Preview "

    HI ,
             Can anybody tell me how to create new client in ABAP sneek preview , i had  create  a new client 100 and tried to enter with Cilent 100. User : SAP* , and Password : pass. But i'm unable to log into the sap system.

    Hello,
    perhaps this will help you --> <a href="http://www.sap-img.com/bc049.htm">instructions</a>
    And this quote from another thread:
    <i>in SAPNW2004sSneakPreviewABAP this procedure only works if the system <b>profile parameter login/no_automatic_user_sapstar is set to 0</b> (and the system restarted after that), otherwise you will have a new client without any user thus useless ;-).</i>
    Regards,
    Norman

  • How to create  a test plan with specific transactions (or program)

    Hello,
    I'm a new user in Sol Man !
    How to create  a test plan with specific transactions (or program).
    In my Business Blueprint (SOLAR01) I've created in 'transaction tab' the name of my specific transactions and linked it.
    In my test plan (STWB_2) those specific doesn't appear to be selected !
    Thanks in advance.
    Georges HUYNEN

    Hi 
    In solar01 you have defined but you have to assign the test case in solar02 for this test case in the test cases tab.
    When you do so expand the business sceanario node in test plan generation of STWB_2 transaction and now that will appear.
    Also visit my weblog
    /people/community.user/blog/2006/12/07/organize-and-perform-testing-using-solution-manager
    please reward points.

  • How to create new client in XI

    Hi all,
      Can any one guide me how to create new client in XI.

    Hi
    To set up a new client, follow these steps
    1) Create a client going in to the path
    <b>Tools->Administration ->Administration -> Client administration -> Client maintenance</b>
    or can also use TCODE <b>scc4</b>
    2)Login into the client with
    User: <b>DDIC</b> or <b>SAP*</b>
    Password
    For default password go thru this link
    http://help.sap.com/saphelp_nw04/helpdata/en/52/67179f439b11d1896f0000e8322d00/content.htm
    Regards
    Arpit Seth

  • How to create a folder for a specific e-mail account?

    How to create a folder for a specific e-mail account?
    I'm using a POP e-mail account and I would like to create folders / sub-folders... how can I do this?

    You can right click on your Desktop and select New Folder.  In Finder File > New Folder should work too, not in front of my Mac.
    Welcome to back by the way.  You might find these websites helpful.
    Switch 101
    Mac 101

  • How to create a String with a specific size?

    how to create a String with a specific size?
    For example I want to create different Strings with the size of 100 , 1000 or 63k byte?

    String are immutable so just initialize it with the number of characters you want.
    You might want to look at java.lang.StringBuffer and see if that's what you want.

  • How to create an account without a credit card

    Does anyone know how to create an account without using a credit card?

    Yes.  Follow the instructions in this Apple support document.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    B-rock

  • How to create a client

    hi,
    please let me know the details on how to create a client in solutiona manager service desk

    The reporting user needs a business partner in Solution Manager (BP_GEN / BP)
    Further more you need to maintain business partner identification tab for that user in tx: BP
    External BP number:
    CRM001   "<SID> <Installation Number> <Client> <User>" 
    For instance:
    CRM001 "ABC 1234567890 100 VSHAN"
    /cheers

  • How to create a client get security token in STS ?

    Dear all,
    How to create a client get security token in STS(security token service supported by Netweaver7.3) ?
    Thanks.

    Hi Sagarika,
    use scc4 for creating a new client
    and login to the new client that u created using sap* and pass as password
    use sccl over there to do a local client copy
    sccl for copying local client
    scc9 for remote client copy
    Merlin

  • How to create a client other than 800 in sap 4.7E version?

    helo can any body tell how to create another client in 4.7 version?points r assured.

    Hi Sagarika,
    use scc4 for creating a new client
    and login to the new client that u created using sap* and pass as password
    use sccl over there to do a local client copy
    sccl for copying local client
    scc9 for remote client copy
    Merlin

  • How to create own interface without .cpp file?

    how to create own interface without using .cpp file ? To access the method inside the interface .
    e.g.  ILayoutTarget.
      Should not be SDKFileHelper.h because they are using SDKFileHelper.cpp file

    Rathan,
    PLz chk the below link (PDF file)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79?quicklink=index&overridelayout=true
    Mutti

  • How to create new view without interlinking with gantt chart or resource views

    ok clear
    one another question
       In msp how to create new view without interlinking with gantt chart or resource views

    Hi Shiv PMC--
    I splitted your question above in another thread in order not to have  a huge thread with many topics in it.
    That being said, I'm not sure to understand. A view is just a manner to display MS Project data with columns. A view can have a table with column (left part) associated with a Gantt chart. It can also just contain a table with no Gantt chart (like the task
    table) or a table with a timephased grid (resource and task usage).
    Please give us more information, maybe with a concrete example so we can help you.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to create table control without wizard....???

    Hello experts !!
    Plz tell me how to create table control without wizard.
    for sflight table.
    Scenario 1
    I have one screen like 1000.
    There i have taken carrid, connid, fldate as criteria.
    Now i want to display Planetype, Price, Seatsmax in the table control.
    Scenario 2
    i have two screens 1001, 1002.
    in the screen 1001 i have taken carrid, connid, fldate as criteria and there is a Button.
    when i will click the button it will show the price, planetype and seatsmax in the table control in the next screen, i.e 1002
    plz help me out...
    and how to save new record in the dictionary table from that table control....

    Hi
    see the sample programs and design accordingly
    syntax:
    CONTROLS .
    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
    u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
    Go through this urls.
    www.****************
    www.sap-img.com
    Check the below links.
    just refer to the link below
    http://www.sapmaterial.com/tablecontrol_sap.html
    step by step procedure with screen shots
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://sap.niraj.tripod.com/id25.html
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    Regards
    Anji

  • HT2731 How to create apple ID without providing my credit card info.?

    How to create apple ID without providing my credit card info.?

    Actually... this is not true, or at least I had no "None" button to choose from. I only need this device (iPhone) because of my job and have no intentions on purchasing anything from apple, now or in the future. Is there a way to go in and disassociate\remove my CC info Apple systems. How does a company get away with demanding CC info "incase" you decide to buy something later, I don't get it... why not just demand to hold everything I own until I need to use it?
    Here is the link mentioned above.
    http://support.apple.com/kb/HT2534

Maybe you are looking for

  • Windows and itunes not recognising my ipod video

    I bought my ipod video 30gb last thursday and i managed to get it working and downloade my songs to it. Now it is not recommended by windows, itunes or the device manager what can i do?

  • SAP 4.6C hangs when Brtools run after oracle upgrade 10.2.0.4

    Hi All, We have Upgraded the Oracle 9i to 10.2.0.4 for sap 4.6C production machine. After the upgrade the sap was succesfully able to start. even i can see the version was reflected in the sap system status. in the Opatch lsinventory all the bug fixe

  • New memory leak with CS4 update?

    I just downloaded the CS4 update last night, and was doing my normal photoshop work when I had to re-start the application due to what looks like a memory leak. Windows XP, 3GHZ dual core ( 45 nm one ), 4 GB RAM, NVidia 9600 GT, no GPU enabled ( stil

  • USB Ethernet will not configure

    Hello, Today I started to have problems with my USB Ethernet dongle on my Yosemite Macbook Pro Late 2013 Retina.   I deleted the device from Network Utility then rebooted thinking I would re-initialze it.  After rebooting, the System Info recognizes

  • NotifyAll example not working

    Folks, I am trying to understand how threading works, and got this example from a book, can you please help me understand why it is not working. class Reader extends Thread    Calculator c;    public Reader(Calculator calc)       c = calc;    public