Making calls to RMI stubs in VB(A)...

Hi everyone,
I have a requirement to make calls to RMI classes from VBA in Microsoft Excel. I thought that I had found the solution when I came across the Microsoft SDK for Java (version 4.0, being the latest). I got code samples and it all seemed fairly easy.
However, I have just discovered that when I go to the Microsoft page to download the SDK, it has been discontinued.
So, what are my alternatives? I am willing to buy technology to achieve my goals, so third-party solutions that cost are fine.
Basically, I guess my question is this: "How do I make calls to RMI stubs within VBA in Microsoft Excel?"
Any help would be greatly appreciated.
Thanks!
Ben

I remember reading about a JavaBean - ActiveX bridge:
http://java.sun.com/products/javabeans/software/
haven't used it, but it would seem to be the best bet. You'd have to have the Java plugin installed on the target workstation, and write some Java bridging code, but it shouldn't be too tough once you get the ActiveX -> Java Bean stuff working.
Worst case, you could create a DLL that makes JNI calls to call your RMI stubs. Depending on the complexity of the stub calls you need to make, this might not be that bad of a solution.
- K

Similar Messages

  • Making calls to 8i database via Excel VB

    I wrote a macro in Excel 97 that made a call to my oracle database. The macro is as follows:
    Sub getinfo()
    Dim RetAcct
    Dim RetDate
    Dim RetProp
    Dim ChannelNum
    Dim SQLStmt
    Worksheets("LYC").Select
    Range("E1:E9").Clear
    RetAcct = Cells(2, 2)
    RetDate = Cells(3, 2)
    RetProp = Cells(4, 2)
    ChannelNum = sqlopen("DSN=Pardi;uid=man;pwd=kaaaz")
    Set RetExtract = Worksheets("Sheet1")
    SQLStmt = "SELECT SUM(T.SBEGIN) FROM MAIN.ACCT A, MAIN.PROPERTY P, MAIN.TOTAL T WHERE P.HMY = T.HPPTY AND T.HACCT = A.HMY AND T.IBOOK = '1' AND P.SCODE = "
    SQLStmt = SQLStmt & "'" & RetProp & "'"
    SQLStmt = SQLStmt & " AND A.SCODE BETWEEN '13010000000000' AND '13010099999999'"
    SQLStmt = SQLStmt & " AND T.UMONTH = '" & RetDate & "'"
    Lines_Query = SQLExecQuery(ConnectionNum:=ChannelNum, QueryText:=SQLStmt)
    Lines_Ret = SQLRetrieve(ConnectionNum:=ChannelNum, DestinationRef:=Cells(1, 5), ColNamesLogical:=False)
    SQLCLose ConnectionNum:=ChannelNum
    Application.StatusBar = False
    End Sub
    This code required the user to use the XLODBC add-in which is no longer functional with Excel 2002.
    Any suggestions?

    I remember reading about a JavaBean - ActiveX bridge:
    http://java.sun.com/products/javabeans/software/
    haven't used it, but it would seem to be the best bet. You'd have to have the Java plugin installed on the target workstation, and write some Java bridging code, but it shouldn't be too tough once you get the ActiveX -> Java Bean stuff working.
    Worst case, you could create a DLL that makes JNI calls to call your RMI stubs. Depending on the complexity of the stub calls you need to make, this might not be that bad of a solution.
    - K

  • RMI, stubs and skeleton and EJB

    HI,
    IN RMI we copy stub on client machine and skeleton on Server machine.
    EJBs are said to be extension of RMI.
    In EJB when we deploy EJB on the app Server server generates stubs and skeleton.
    But on the client machine we don't copy any stub.
    So from where these stubs (home stub and remote stub ) comes on client machine because we only depoly the EJB at server and then use that from client
    Can anybody explain this ?
    Thanks,
    Ankur Mittal

    Hi,
    A number of these answers are correct. The thing to keep in mind is that the entire issue of RMI stubs and the mechanism by which those stubs are made available to the runtime code(whether that code is running in a J2EE server or a client) is vendor-specific. One important thing to note is that these generated artifacts are not present in a portable J2EE archive (.ear, ejb-jar, .war, etc.)
    If needed, they are generated at some point by the J2EE implementation. Some vendors expose tools that generate these artifacts. The original J2EE 1.4 SDK beta release had such a tool called j2eec.
    Alternatively, many vendors generate them as part of the deployment stage itself. In that case, it's typical for the deployment process to produce some output file that contains the generated artifacts. This is the approach used in the current J2EE 1.4 SDK. The output file is usually referred to as a client.jar. The stubs are automatically available to any code running within the server, but client applications that need them must somehow make the client.jar available to the client JVM. For Application Clients, this is done by specifying the client.jar as one of the input arguments to the runclient command. For stand-alone clients, the client.jar is simply added to the user-classpath when starting the JVM.
    Some vendors also support automatic stub-downloading. This has the advantage that the stubs don't have to be available to the client classpath when the client starts. The downside is that using automatic stub downloading requires that a security manager be installed in the client JVM. That typically isn't an issue for the Application Client container, but many stand-alone clients are not coded to instantiate a security manager.
    Yet another approach is to dynamically generate the stubs within the client code itself. This is one of the best options since it completely removes the notion of stubs from the developer's view. It's too bad this wasn't done from the beginning, since stub configuration is one of the most common errors encountered by EJB developers. In addition, the static generation of such artifacts is often a deployment-time bottleneck. Finally, note that the EJB Remote view is only one of many J2EE technologies that potentially require such generated artifacts. E.g., web services implementations typically rely on some of the same mechanisms to marshall and unmarshall requests.
    --ken
    Kenneth Saks
    J2EE SDK Engineering
    SUN Microsystems

  • Making calls on my iPhone/ LockScreen and Message freezing

    Hi, ive had my iphone for about six months now, im still under warranty and ive just recently been having few problems that are quiet annoying. My first problem , while making calls i can barely hear what the person is saying to me and they can barely hear me, i dont know if this is a general problem but its been happening for about 2 weeks now. Second, when in my lockscreen and recieving messages my phone just flashes and goes black i then click the lock button on the top and nothing happens.. again... nothing happens then after i like click the button repetitivly it finally come back but doesnt show i have any messagesm and when i go to my messages it doesnt show what the person sent.
    Im still under warranty is there any chance of them giving me a new phone?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these steps in order until the issue is resolved.
    If they do not resolve the issue, take the device to Apple for evaluation.

  • How can I prevent my iPhone from making calls on its own?

    I often put my iPhone in my pocket. Sometimes I then discover that it is making calls on its own.
    How can I prevent this?
    Thanks.

    Turn on auto lock. I have never had my iPhone once do anything without me doing it.

  • My iphone 4 just stopped receiving or making calls.  I have tried everything! Help!!!

    Okay, one day a little less than a MONTH ago, my iphone 4 just stopped receiving calls(90% of the time) and making calls(50% of the time.).  I panicked because my job depends on my phone to work.  So, i go to apple, ATT, back to apple, back to ATT, etc.  There is no end to this.  And, literally, the people at ATT and Apple, keep telling me that they are probably not going to figure out a solution, and that I should just cancel my account.  Now, I really don't want to do this!!!!!!!!!!!!!!!!!New iphone from apple because they thought it was a ATT problem but gave me new iphone 4 anyway, new sim about 1 minute after the new phone, new phone number. The engineers at ATT said if i relocated and told them that i was moving, it would give me a new number and reset all the routing stuff.  I didn't want to do this because of losing my number with business, but had to resort to it anyway.  Now I have a number from a different state, and I still have the problem!!!!!!!!! I have exhausted all my options with apple and att, and both tell me the only thing i can do is buy a prepaid phone from a different service!  I need my iphone for work, and this has been going on for over a month now.  I was told there was a routing issue, but the engineers opened a ticket on it, and NO solution.  Then they opened a second case ticket, and still no good.  They are claiming I should cancel and buy a new phone.  My phone just stopped recieving calls one day.  No notification of missed calls, EVER since this started happening.  Voicemails go thru( only some of them) about an hour or two later, and texts are taking a bit longer than usual.  I have really tried everything the engineers can think of, even getting a brand new phone!  Please someone help me!!!!!!!! I am desperate!!!!!!!!!!!!  This happens anywhere i go, not just in my area.

    Might sound silly but is the mute switch on the left side of the phone in the correct position?

  • My screen goes blank when receiving or making calls.

    My screen goes blank when receiving or making calls.  Cannot get back to the tiles window until the other party hangs up.

    Go to the Apple in the upper left corner and select About This Mac, then click on More Info, then select Power from the left hand column of the System Profiler. Copy and paste the Battery Information back here.

  • Making Call from Service (XML) and (JTAPI)

    We have a Cisco IP Phone Service for survey's process, when the user accessed the service sends him a phone number to do the survey, we want to make the call and continue with the survey questions but when we do the connection the service closes and the user have to start again, obviously he obtain another phone number.
    What i can do to avoid the service exits and be able to continue my process with my call made?
    //Call Dial
    protected void makecall ()
    throws ResourceUnavailableException, InvalidStateException,
    PrivilegeViolationException, MethodNotSupportedException,
    InvalidPartyException, InvalidArgumentException {
    println ( "Making call #" + ++iteration + " from " + srcAddress + " to " + destAddress + " " + Thread.currentThread ().getName () );
    Call call = srcAddress.getProvider ().createCall ();
    call.connect ( srcAddress.getTerminals ()[0], srcAddress, destAddress );
    setCallProgressState ( false );
    println ( "Done making call" );
    Thanks

    Cisco Web Dialer, which is installed on a Cisco Unified Communications Manager server and used in conjunction with Cisco Unified Communications Manager, allows Cisco Unified IP Phone users to make calls from web and desktop applications. For example, Cisco Web Dialer uses hyperlinked telephone numbers in a company directory to allow users to make calls from a web page by clicking the telephone number of the person that they are trying to call.

  • Help regarding generation of RMI stubs  ..............

    Hi all,
    i want to generate RMI stubs. But by default, the application server generates as RMI Over iiop stubs. I cant use this stubs for some reason.
    So, i want to know that how to generate RMI (JRMP) for an enterprise application using AS 8.1?
    Is there any descriptors to specify that?
    Thank you in advance,
    MDB

    Hi all,
    i want to generate RMI stubs. But by default, the application server generates as RMI Over iiop stubs. I cant use this stubs for some reason.
    So, i want to know that how to generate RMI (JRMP) for an enterprise application using AS 8.1?
    Is there any descriptors to specify that?
    Thank you in advance,
    MDB

  • How to use RMI Stub class in programming?

    Hi all,
    I'm new on RMI.
    Is there anyone can explain to me how to use RMI Stub class which is generated by invoking rmic command?
    For my testing, I can only invoke rmi object nethod via its remote interface. Then what is stub used for when we are coding?
    I do appreciate anyone's help.
    Thanks very much,
    Xianyi.Ye

    When the remote object binds itself to the registry, what is actually bound is the stub.
    So when the client does a registry lookup, what it gets is the stub. However from the client's point of view it is just some mystery object that implements the remote interface.
    So you never have to use it directly, it is all automatic.

  • Urgent: please help - Object Hash Code of RMI stubs in a cluster

    Hello all,
    I'm trying to find out for a week now if members of a cluster can get out of synch
    regarding "Object Hash Code" of RMI stubs in the JNDI.
    After binding an RMI object to one server (no rmic performed since the object
    is in the classpath of both servers and the service is pinned), the JNDI mapping
    looked identical on both servers.
    However, while one server went down for a few hours, the other server has changed
    the "Object Hash Code" to a new one (the binding name stayed constant). When the
    server went up again it tried to lookup the object under the same binding, then
    found it but failed to execute remote methods on it. An error message says that
    the object was garbage collected:
    java.rmi.NoSuchObjectException: Unable to dispatch request to Remote object with
    id: '347'. The object has been garbage collected. at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:766)
    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:738) at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:207)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:777) at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:508)
    at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:664) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    Why isn't the new JNDI mapping replicated to the new booting server? Should I
    use specific rmic flags? How can I maintain the JNDI trees identical on all clustered
    servers?
    I'm using two managed WLS 7.02 servers running on win2000 servers.
    Dani

    Hi Andy,
    Thank you for responding.
    The binding code looks like that:
    m_ctx = new InitialContext();
    int index = getNextAvailableRepositoryJNDIIndex();
    m_ctx.bind(
    NODE_PREFIX+index,
    this
    where this is the Remote implementation.
    How will I make the object hash code constant or have all views remain constant
    when the GC changes its reference?
    Dani
    Andy Piper <[email protected]> wrote:
    "Daniel Gordon" <[email protected]> writes:
    I'm trying to find out for a week now if members of a cluster can getout of synch
    regarding "Object Hash Code" of RMI stubs in the JNDI.The hash code can probably change since the stub represents an
    aggregate view of the cluster. But this may be a red-herring. What
    does your code look like that binds the rmi object? It may be that DGC
    is biting you.
    andy

  • I am unable to get small contact photos display while receiving or making calls!!

    I am unable to make out how to get a small display of the photo on the right hand top corner of the phone while receiving or making calls. I always get a larger display which is covered by the phone options. I have tried every possible option
    1. Adding photos in windows contacts and syncing with iphone
    2. Adding photos to my contacts from photos taken from iphone
    3. Adding photos synced from my PC
    None of these options work, can anyone help me to get smaller display of photos while making and receiving calls

    Photos added to your contacts on your computer will appear as thumbnails. Those added directly on your phone will appear full size. So, edit the contacts on your phone & delete the photos that were added directly on your phone.

  • Stopping Siri from making calls

    Hi guys, is there anyway of stopping Siri from making calls? The problem I am having is that I use Siri on my motorcycle and at high speeds it gets the commands wrong. For example, I say 'play podcasts' and it calls one of my contacts.
    Ross

    My bad.
    I had Airplane mode on but WiFi was also still on when I tested it on my phone.
    Scratch that idea...
    Here's another one.
    If you turn off Siri altogether, you'll revert to the older Voice Control which doesn't rely on a nertwork connection.
    Perhaps, that mode will be less likely to misunderstand than Siri.
    Matt

  • Why is my microphone not working only when making calls ?

    Hello all,
    I have a problem with my Lenovo S930 Smartphone to fix urgently.
    (MTK6582 Quad Core 1.3GHz Android 4.2)
    The microphone is not working when making calls (so people don't hear me talking.)
    But strangely the microphone is working perfectly when recording videos.
    It seems to me like a application problem but I am no android specialist
    Where can I get help ? What can I do ?
    thanks in advance for your support
    Jean-Francois

    Go to settings>backup & reset...there should be a factory reset option.
    *Note: Settings names and location are firmware build number dependent.
    **Backup anything important first.
    Hope this helps.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as ''ACCEPT AS SOLUTION"! 
    Unsolicited PM's will not be answered! ....Please post your question/s in the appropriate forum board.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • U.S. Citizen making calls from Macedonia

    I am a U.S. citizen who will be living in Macedonia for 2 years. Will I be able to call home with the "unlimited calls to U.S." subcription? Or do I need something else since I'll be calling from abroad (as opposed to making calls from within the U.S.)?
    Help!

    Hi Kelly,
    You will be able to use Unlimited US anywhere in the world. It doesn't matter where you are calling from, you only need to make sure that your subscription covers calling destination.
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

Maybe you are looking for

  • AR Open Invoice Error

    Hi Gurus, I am doing AR Open Invoice Migration. I am using two interface tables, they are AR_INTERFACE_LINES_ALL & AR_INTERFACE_DISTRIBUTIONS_ALL, When i run the concurrent program only one table is populating i.e AR_INTERFACE_LINES_ALL, i can't unde

  • IDVD won't burn DVD

    Using IDVD 5. and Sony-R DVD's. Trying to burn slide show imported from IPHOTO, and graphics imported from IMOVIE, and get an error #1 or multiplexing problem.

  • FI/CO Certification

    Hi all, Does anyone has the material related to FI/CO certification. I would appreciate if someone can forward it to [email protected] thnx in advance NT

  • Is there a way to specify sorting in Notes and Reminders in IOS 7?

    Is there a way to specify a sorting order in Notes and Reminders in IOS 7?  Although Notes and Reminders now sink with Outlook (via an Exchange server,) they seem to appear in a random order.

  • Problema con adobe photoshop, illustrator y after

    Hola tengo instalado los productos de adobe hace mas o menos un año y todo funcionaba correctamente hasta hace unos dias me empezo a salir un error que no me deja trabajr con ninguno, after cs4, photoshop , illustrator cs6 el error es el siguiente. E