Sysid and client of caller for EJB Jco function

Hello,
I'm trying to identify the sender system and client (ABAP) for a processFunction call implemented as ejb (with JCO interface).
Does someone knew a method to access caller information from the processFunction call?
Regards,
Frank

Hi Frank,
I have to admit that my proposal does not work.
There is a thread change in the 7.0x JCo RFC Provider service so that casting the thread this way is illegal.
I am afraid that there is no possibility as you would like to have one.
But I think the switch with release 7.10 to internally use the new JCo would allow a similar cast then.
I think it should be possible with release 7.10 and higher. But that does not help you right now.
I'm sorry.
Best regards,
Stefan

Similar Messages

  • Difference between narrow() method usage and simple class cast for EJB

    Hi,
    I have a very simple question:
    what is the difference between PortableRemoteObject.narrow(fromObj,
    toClass) method usage and simple class cast for EJB.
    For example,
    1)
    EJBObject ejbObj;
    // somewhere in the code the home.create() called for bean ...
    ABean a = (ABean)PortableRemoteObject.narrow(ejbObj,ABean.class);
    OR
    2)
    EJBObject bean;
    // somewhere in the code the home.create() called for bean ...
    ABean a = (ABean)ejbObj;
    Which one is better?
    P.S. I'm working with WL 6.1 sp2
    Any help would be appreciated.
    Thanks in advance,
    Orly

    [email protected] (Orly) writes:
    Hi,
    I have a very simple question:
    what is the difference between PortableRemoteObject.narrow(fromObj,
    toClass) method usage and simple class cast for EJB.
    For example,
    1)
    EJBObject ejbObj;
    // somewhere in the code the home.create() called for bean ...
    ABean a = (ABean)PortableRemoteObject.narrow(ejbObj,ABean.class);
    OR
    2)
    EJBObject bean;
    // somewhere in the code the home.create() called for bean ...
    ABean a = (ABean)ejbObj;
    Which one is better?(1) is mandated by the spec. It is required because CORBA systems may
    not have sufficient type information available to do a simple case.
    P.S. I'm working with WL 6.1 sp2 You should always use PRO.narrow()
    andy

  • Trouble with deploying a standlone Java app/client that calls an EJB

    Hey guys,
    I am well aware that there are many topics that are quite similar to this topic that I am posting but the fact of the matter is I have failed to procure a satisfactory answer.
    So a bit of background about the environment I am using. I am using Netbeans 5.5 development build, today's version, JDK 6 Build 77, and Sun Application Server 8.2 to create, run and learn J2EE 1.4 based apps following the Sun J2EE 1.4 tutorial pdf and the Netbeans 4.1 tutorial pdf which I realize is a bit outdated but it gets the job done for the most part.
    I have satisfactorily created and built the Converter application as described in the above mentioned tutorial pdfs. For memory refreshment purposes, it is the simple session bean example where it is stateless and remote and has 2 business methods:
    dollarToYen(BigDecimal dollar)
    yenToEuro(BigDecimal yen)So I have this EJB being called, for learning purposes, by both a JSP and a Servlet as well as a standalone Java client. Now since the development machine is where I am deploying and running the enterprise application, everything works without a hitch. Once I have the Application server up and running I am able to access and execute the EJB's methods through JSP and Servlet even from remote machines on my home LAN. I realize that since the JSP and Servlet are in the same application context as that of the EJB I am not requiring the client jar which is where my confusion starts coming in. I know I need the client jar when I try to run the standalone java client from a different machine because it simply cannot access the EJB I have written.
    Now I found this link below and I read it and sorta understand it. I also found that under C:\AppServer\domains\domain1\applications\j2eeapps\ConverterApp I see a file called ConverterAppClient.jar. Is this the so called client jar? If so how do I go about using it?
    Before I end my rather long post, let me detail the steps I used to create the standlone Java client. I selected java application in the new menu of Netbeans and gave it the name ConverterClient and the IDE then proceeded to create a main class for me with a main method where I stuck in the following code:
    try
                Context c = new InitialContext();
                Object remote = c.lookup("ejb/ConverterBean");
                ConverterRemoteHome rv = (ConverterRemoteHome) PortableRemoteObject.narrow(remote, ConverterRemoteHome.class);
                ConverterRemote converter = rv.create();
                BigDecimal param = new BigDecimal(100);
                System.out.println(param + " Dollars are  " + converter.dollarToYen(param) + " Yen.");
                System.out.println(param + " Yen are " + converter.yenToEuro(param) + " Euro.");
            catch (RemoteException ex)
                ex.printStackTrace();
            catch (ClassCastException ex)
                ex.printStackTrace();
            catch (NamingException ex)
                ex.printStackTrace();
            catch (CreateException ex)
                ex.printStackTrace();
        }and that code works when I call it from the same machine that the Application Server is running with the EJB deployed. I also added in the classpath of the client application, the j2ee.jar and the other appserv-rt.jar as well. Have I missed anything?
    I even tried using the deploytool but to no avail as all it generated for me was the same jar file that I found underneath the Application server application directory as I mentioned earlier.
    If anyone is willing to help me, I will upload my Netbeans project files and all you have to do is open it through Netbeans 5.5 to recreate the exact scenario I am talking about.
    Thanks in advance. I apologize for the rather long post but I thought it would be best to provide as much details as was possible.
    Cheers,
    Surya

    hI,
    Pls, I'm happy to know u r using application server. I have just started reading enterprise bean.
    But I could not set the path and some other configurations for it to start working.
    Pls, I would be most grateful, if u could put me through on how to configure application server.
    Right now, I'm in the state of dilemma due to the insufficient knowledge in it.
    My email is [email protected]
    Remain blessed

  • JAVA client JNDI lookup for EJB session in cluster in WLS 5.1

    The documentation says :
              to obtain a Context for JNDI lookup do the following :
              Hashtable ht = new Hashtable();
              ht.put(Context.INITIAL_CONTEXT_FACTORY,
              "weblogic.jndi.WLInitialContextFactory");
              ht.put(Context.PROVIDER_URL, "t3://mycluster:7001");
              try {
              Context ctx = new InitialContext(ht);
              // Do the client's work
              catch (NamingException ne) {
              // A failure occurred
              finally {
              try {ctx.close();}
              catch (Exception e) {
              // a failure occurred
              where "mycluster" is the DNS name of my cluster. My DNS server (Windows 200
              DNS server) use round robin
              to call alernatively all the wls server node in "mycluster" and it's OK. The
              two servers of my cluster
              are called alternatively for my EJB session stateless.
              Now I unplug one of the two nodes of my cluster and the remaining server is
              called only 2 times
              and not after.
              Questions :
              -is the load balancing between the nodes of mycluster only rely on DNS or
              is there an internal
              mecanism in EJB sub to try one server then an other ?
              - do I need to obtain a new reference on JNDI Context for each call ?
              Thank's a lot.
              Farid Bellameche.
              

              I too have the same problem. My scenario is :
              I have the web tier architecture away from cluster. All ejbs are in cluster
              running in two seperate machines. We have a factory class running in
              webtier(we use servlet in this tier) which obtains home interface only once
              and stores it for future reference. When ever we need the remoteobject stub,
              we ask the factory class and which in turn uses the stored home interface to
              get the same.
              In the webtier, I list all the servers in the cluster as a part of url as
              mentioned by you.
              I started the web tier as well as Object tier cluster. I could see the
              request coming in both the machines in the cluster for the ejb. But When I
              bring one the server in the cluster,
              1. Web tier throws an exception saying that it could not connect
              to server using t3.
              2. The other machine which is running the server, also says
              'failed to create socket to : -32323234324 sever name
              using protocol t3.
              It looks like I am able to get load balance. But I am not able to get the
              fail over to be working.
              In the weblogic-ejb-jar.xml, I added the following.
              <clustering-descriptor>
              <home-is-clusterable>true</home-is-clusterable>
              <home-load-algorithm>round-robin</home-load-algorithm>
              </clustering-descriptor>
              I compiled and added the .jar file. So the jar file now has replica aware
              stubs.
              Could any one of you help me for why the fail over is not working?
              Suersh
              "Giri Alwar" <[email protected]> wrote in message
              news:[email protected]...
              > Farid,
              > (1) Yes, the stub has the logic to perform load-balancing and
              fail-over.
              > (2) In almost all cases, no. You can get the context once, store it
              and
              > use it thereafter. Please refer to
              > http://www.weblogic.com/docs51/cluster/concepts.html#1025061 for more
              info.
              >
              > A couple of notes on your situation. From what you are describing, your
              > Windows DNS server is setup to serve only one IP from the cluster (using
              > round-robin) as opposed to a list of all IP's in the cluster. Hence, the
              > initial context you obtain is tied to a single server in the cluster (the
              > one returned by the DNS). The weblogic implementation on the client side
              has
              > no idea of the existence of the other servers in the cluster. This is not
              a
              > cluster aware context. To obtain a cluster aware context, either list all
              > the IP's in the URL like t3://server1,server2,server3:7001 or have
              > "mycluster" return a list of all servers in the cluster.
              >
              > Giri
              >
              >
              > "Farid Bellameche" <[email protected]> wrote in message
              > news:[email protected]...
              > > The documentation says :
              > >
              > > to obtain a Context for JNDI lookup do the following :
              > > Hashtable ht = new Hashtable();
              > > ht.put(Context.INITIAL_CONTEXT_FACTORY,
              > > "weblogic.jndi.WLInitialContextFactory");
              > > ht.put(Context.PROVIDER_URL, "t3://mycluster:7001");
              > > try {
              > > Context ctx = new InitialContext(ht);
              > > // Do the client's work
              > > }
              > > catch (NamingException ne) {
              > > // A failure occurred
              > > }
              > > finally {
              > > try {ctx.close();}
              > > catch (Exception e) {
              > > // a failure occurred
              > > }
              > > }
              > >
              > > where "mycluster" is the DNS name of my cluster. My DNS server (Windows
              > 200
              > > DNS server) use round robin
              > > to call alernatively all the wls server node in "mycluster" and it's OK.
              > The
              > > two servers of my cluster
              > > are called alternatively for my EJB session stateless.
              > > Now I unplug one of the two nodes of my cluster and the remaining server
              > is
              > > called only 2 times
              > > and not after.
              > >
              > > Questions :
              > > -is the load balancing between the nodes of mycluster only rely on DNS
              > or
              > > is there an internal
              > > mecanism in EJB sub to try one server then an other ?
              > >
              > > - do I need to obtain a new reference on JNDI Context for each call ?
              > >
              > >
              > > Thank's a lot.
              > >
              > > Farid Bellameche.
              > >
              > >
              > >
              > >
              >
              >
              

  • Error while calling for EJB

    I use SunONE app server 7, JDK 1.4.1_01, on Windows 2000 server SP4.
    When EJB client EJB, the followed error message would be occured!
    What's the problem?
    Any clues are welcomed.
    WARNING:
    java.lang.Exception
    at com.sun.corba.ee.internal.iiop.IIOPConnection.cleanUp(IIOPConnection.java:976)
    at com.sun.corba.ee.internal.iiop.ConnectionTable.cleanUp(ConnectionTable.java:370)
    at com.sun.corba.ee.internal.iiop.ConnectionTable.checkConnectionTable(ConnectionTable.java:391)
    at com.sun.corba.ee.internal.iiop.ListenerThread.run(ListenerThread.java:96)

    Hi Patrick,
    This could be due to many reasons:
    1.Server died while you tried to connect
    2.Dispatcher died while you tried to connect
    3. You have only one server node and it is set in debug mode. If this is the case then you will not be able to connect via p4.
    Check also the error in the server log files, maybe there is something that gives a hint.
    I hope this helps.
    Myriana

  • SDP, AAC, Chapters, and more. Call for help!

    Hi there,
    I am the owner of an online electronic music station called Proton Radio... you can look us up at www.protonradio.com
    I currently broadcast with Shoutcast in MP3 format because it provides the easiest access for users-- it works in Winamp, iTunes, Windows Media player, etc etc...
    But, MP3 is not bandwidth friendly. AAC/M4A and ACC+ are much more optimized... but, to my knowledge, there is no way to stream these formats in iTunes.
    While researching this today I found a very small number of AAC broadcasters but they did so with Quicktime Streaming server, and the audio track was an .sdp file-- something not supported by iTunes.
    So.... is it at all possible to stream mp4/aac/acc+/m4a into iTunes using QTSS or Darwin?
    Thanks for your time,
    jason

    Hi there,
    I am the owner of an online electronic music station called Proton Radio... you can look us up at www.protonradio.com
    I currently broadcast with Shoutcast in MP3 format because it provides the easiest access for users-- it works in Winamp, iTunes, Windows Media player, etc etc...
    But, MP3 is not bandwidth friendly. AAC/M4A and ACC+ are much more optimized... but, to my knowledge, there is no way to stream these formats in iTunes.
    While researching this today I found a very small number of AAC broadcasters but they did so with Quicktime Streaming server, and the audio track was an .sdp file-- something not supported by iTunes.
    So.... is it at all possible to stream mp4/aac/acc+/m4a into iTunes using QTSS or Darwin?
    Thanks for your time,
    jason

  • Calling mobiles and landlines - Cannot call for two days

    I pay unlimited monthly subcription call to Thailand, but I cannot call any number for two days.What wrong? Also I tried calling several uk mobile and landline numbers, but didn't work.

    I obviously want to use the mobiles subscription for mobiles only, but I need to call landlines as well. How would it work if I buy a limited subscription for landlines and one for both landlines and mobiles, would Skype select automatically the subscription or should I do it manually? And, if automatically, what would be Skype criteria, I read it would be "more minutes left", wouldn't it be the best rate instead?

  • Can a client call the ejb callback methods directly????

    Is there any way using which client can call the ejb callback methods directly.
    ie in the client program i want to call ejbPassivate/ejbActivate?? is there any way of doing the same

    short answer: yes, pass a reference of the ejb (bean class) to the client. This will not do what you expect however and hopefully with generate an error that you should read as "don't do this".
    better answer: you are no longer doing ejb development if you do this. those methods exists for the container to interact with your bean and are NOT meant for clients. You should NEVER do what I suggest in my "short answer".

  • Can an EJB client application access to EJBs on two domains concurrently?

    It is well-known that there can be multiple domains in a SUN application server. If two domains are started up, can the same EJB client application call different EJB methods from the two domains? If can, how to implement? Please kindly give a snippet of sample codes.
    Another question: can EJBs among multiple domains communicate with each other? If can, tell me how to implement and had better provide some sample codes as well.

    I have my client working now!
    I was looking around on other forums and found a guy who said that javax.comm has problems with security. here is the address
    http://lists.dalsemi.com/maillists/java-powered-ibutton/2002-February/002168.html
    He said,
    "This is an error generated by the javax.comm packages when initializing
    the
    serial ports. It's basically a security related bug. Officially, all
    packages stored in your lib/ext folder should be considered trusted
    code,
    running with the same permissions as your trusted main application. But
    it
    seems that isn't the case with comm.jar.
    I've heard that signing the comm.jar file might fix it, but I wasn't
    able to
    verify that myself (but I didn't test with Netscape's java plugin). I
    found
    a workaround that should take care of it (as long as your main
    application
    has "all-permissions"). Try adding this line to the top of your main
    method:
    System.setSecurityManager(null);
    So I did that and it worked except for one thing. at the end of my program the client tells me
    The system cannot find the path specified.
    Do you think this is a major problem? What is it trying to find??
    Michael B

  • IPTComm 2008 Call for Demos

    Please find below the "Call for Demos" for the
    IPTComm 2008
    http://iptcomm.org
    Heidelberg, Germany,
    July 1-2 2008.
    Please feel free to circulate this call for demos to interested colleagues, mailing lists, forums and blogs.
    ==============================================================
    Call for Demos:
    IPTComm2008 (as already IPTComm2007) features a special session for demonstrations. Topics of interest cover all aspects of Services and Security for Next Generation Networks, as outlined in the main conference call for papers. Demos will be held as closing session on July 2 at the main conference venue. All demonstration submissions should include a title, a short description of the system, a summary of its novel characteristics, the list of functions and features to be demonstrated, and state the significance of the contribution relevant to the conference themes. Submissions must be in English and must not exceed four pages. We encourage authors to include in their submissions a link to a set of screenshots and/or mockups and/or animations of the proposed demonstration where possible. Submissions will be evaluated on the basis of their innovation, practical value, relevance and presentation. Accepted submissions will be published on the Conference website. Priority will be given to submissions that have industrial relevance and have a demonstrable impact on products in the short-medium term. The demo session is seen as an opportunity for researchers to come together with developers and industry to discuss practically oriented topics. Submissions are to be sent as email attachments (PDF format) to [email protected]
    Deadlines:
    Submission deadline: May 15, 2008
    Notification: June 1, 2008
    Demo: July 2, 2008
    Demo Committee
    Dorgham Sisalem - Tekelec
    Ali Fessi - University of Tubingen

    I am afraid I don't know how to make this Sticky... Maybe someone can email me the answer ?? [email protected]
    As far as sharing material, ASUG has a non-disclosure agreements, which prohibits me from sharing the materials to the world at large.  I agree that it would be nice to share ASUG presentations with everyone here at SDN/BPX, but I am not allowed to do so.  
    Thanks for the pointer about stickiness.

  • Never once has my phone updated without deleting everything. It says "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes. I can't call for help because my phone is frozen on the screen with iTune

    Never once has my phone updated without deleting everything. It says "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes. I can't call for help because my phone is frozen on the screen with iTunes. On line live chat won't chat until I give them my serial number which I can't get to because its frozen and can't call for the same reason!!  Omg!  Someone please help me!?

    Morning AppleHlumamkhululi,
    Thanks for using Apple Support Communities.
    In most cases, the connected iPod needs to be restored.
    For more information on this, take a look at this article:
    iTunes has detected an iPod in recovery mode - Use iTunes to restore
    http://support.apple.com/kb/ts1456
    Best of luck,
    Mario

  • Reference for writing COBOL prog with DB2 with ATMI calls for Oracle Tuxedo

    Hi..
    Am using IBM COBOL for AIX 2.0.0 on Oracle Tuxedo10g R3..
    And for database IBM DB2 Version 8.2..
    I have to write a program in Cobol with queries and with ATMI calls for Tuxedo..
    I need some reference manuals for this or some sample program..
    I also need the connectivity from cobol-DB2 to Tuxedo..
    Can anyone send me link for the same?
    The tutorial CSIMPAPP and STOCKAPP was really helpful..
    Am searching for the similar kind..
    Thanks in advance..
    Edited by: user8103349 on Mar 19, 2009 8:43 PM

    Hi,
    Hopefully someone has some DB2 COBOL code to share. But in any case, using Tuxedo with COBOL and DB2 should be very similar to simply writing normal DB2 COBOL programs. The major difference is that Tuxedo will take care of making the connection to the database and should normally be allowed to perform all transaction management.
    From a configuration standpoint you'll need to add the appropriate line in the Tuxedo RM file that lists how Tuxedo needs to link DB2 XA libraries into the application. The connection information is provided in the OPENINFO string passed along to the TMS that you need to build for DB2 with the buildtms command, and finally you'll need to build your servers with the -r switch to tell Tuxedo which XA libraries need to be linked into the application.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Unlimited Broadband, and Evening & Weekend Calls

    Hi All
    I'm considering moving over to BT onto their:
    Unlimited Broadband, and Evening & Weekend Calls for £25 per month.
    Is this service truley unlimited? i.e. no caps on the total amount of downloads and no throttling / caps on the lines speed?
    Many thanks

    During peak times the download speed may decrease as more people come online. Your connection speed will remain the same.
    Actual connection speed depends on the quality of your phone line, and your own internal wiring.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Hi, can anyone please help, ive been on hold ?call for 2hrs this morning !!! GRRR

    Telstra has been billing me for additional $250 per month for April and May. You have confirmed that i have been overcharged but the total on screen does not confirm this. The telstra call centre in the Phillipines has just confirmed that i have been on hold and on a call for 1 hr 58 mins!Why is this so hard to fix?????I have wasted over 4hrs on this problem !!!!This is Frustrating the **bleep** out of me !!!!!!!!!!!!!!!!!!

    Hello there!  Being put on hold for that too long is really frustrating and I know how it feels.I may provide some ideas on how to solve that issue, however, it will not assure you that any of these solutions can solve any of your concern.. Have you checked your account online?Does your device usage justify the amount being charged at your account?
    Have you ever enrolled in some plans or promos lately?Have you made any downloads in the net which requires money transactions?Have you checked your data limit if you gor over it?Have you connected your account in some websites that requires money transactions?
    If you ever answered YES to any of those questions,better HAVE your ACCOUNT USAGE on your SCREEN and TRY TO REMEMBER your TRANSACTIONS.. or Call Customer Service Representative and tell them to forward your call to the collections department... *there are instances where in an account user device makes downloads over the net without the authorization of the account holder.
    HOPE THIS MAY SOLVE YOUR CONCERN, Regards,

  • EJB mapping function

    I am getting only one document having 3 examples for EJB mapping function (concat, filter, and one good fair )-  can anyone provide any other functions and details around in this area?
    thx
    mike

    Dear Mike,
    Please check if following documents are helpful.
    Effective Ways of Using Intermediate Timer with Human Task in BPM
    EJB Mapping Function for MDM Web Service in BPM
    How to get user language in BPM using custom EJB function - Netweaver Technology - SCN Wiki
    Search value in a list using EJB mapping function
    Thanks & Regards,
    Patralekha

Maybe you are looking for