How do you bind a EJB home to a COSNaming service ?

Hi All,
I am trying to have a corba client(written in java) communicate to an EJB,
but I am facing a few problems. As per the procedure specified by the BEA documentation
I have created the idl files. Then using the idl (idl -jpoa=. -jbase=. Hello.idl)
command I have created the respective java classes. But I am not sure wether
the Weblogic server by default binds the EJB to a COSNaming service or not(In
Borland App server it binds to a COSNaming service). Incase it does not then what
do I need to do, to have the EJB bound to a COSNaming service. Generally how do
I find out wether a Home Interface is bound to a Naming service? I am using Weblogic6.1
app server and IONA Orbix 2000.
Regards,
Ameet.

Hello Andy,
Thank you very much for your reply. Forgive me sending out several
messages, just to try to reach you. You can tell how frustrated I am
with the issue. The O2K version I tried is 2.0 came with E2A application
server.
Have you tried Orbix 3? and any luck of it? What do you think is
the effective way to push IONA to fix the bug?
Thanks,
Qing
Andy Piper <[email protected]> wrote:
"Qing Lu" <[email protected]> writes:
Yeah, this is a bug in the Orbix 2000 idl compiler, I ran into this
when I tried it and couldn't find any workaround. I reported the
problem to Iona but I don't know whether they did anything about
it. Incidentally what version of O2K is this? I tried with 1.2 and was
going to try 2.0 - but if this is with 2.0 I won't bother.
andy
As far as I know, BEA implemented COSNaming wrapper around their JNDI.So EJB
got bound just like in the normal case and your client uses COSNamingto get
reference.
Do you have any experience with CORBA C++ client (Orbix 2000) callingEJB? I have
problem with it. I can generate stub files with Orbix idl compiler.
But when I link stubs with the client.cpp, I got the following:
[exec] clientC.cpp
[exec] client.hh(1008) : error C2327: 'IT_Gen_DynamicProxy_EJBHome::EJBHome
::EJBMetaData' : member from enclosing class is not a type name, static,or enum
erator
[exec] clientC.cpp(1785) : error C2065: 'itlocal_result' : undeclaredident
ifier
[exec] clientC.cpp(1785) : error C2296: '*' : illegal, left operandhas typ
e 'class javax::ejb::EJBMetaData *(__thiscall javax::ejb::IT_Gen_DynamicProxy_EJ
BHome::*)(void)'
[exec] clientC.cpp(1789) : error C2440: '=' : cannot convert from'class
ja
vax::ejb::EJBMetaData *' to 'int'
[exec] This conversion requires a reinterpret_cast, aC-style cast
or function-style cast
[exec] client.cpp
[exec] client.hh(1008) : error C2327: 'IT_Gen_DynamicProxy_EJBHome::EJBHome
::EJBMetaData' : member from enclosing class is not a type name, static,or enum
erator
[exec] Generating Code...
BUILD FAILED
Any help will be appreciated.
"Ameet Kanguri" <[email protected]> wrote:
Hi All,
I am trying to have a corba client(written in java) communicate
to
an EJB,
but I am facing a few problems. As per the procedure specified bythe
BEA documentation
I have created the idl files. Then using the idl (idl -jpoa=. -jbase=.
Hello.idl)
command I have created the respective java classes. But I am notsure
wether
the Weblogic server by default binds the EJB to a COSNaming serviceor
not(In
Borland App server it binds to a COSNaming service). Incase it doesnot
then what
do I need to do, to have the EJB bound to a COSNaming service. Generally
how do
I find out wether a Home Interface is bound to a Naming service? Iam
using Weblogic6.1
app server and IONA Orbix 2000.
Regards,
Ameet.--

Similar Messages

  • How do you set a default Home Page in the Safari Applet?

    How do you set a default Home Page in the Safari Applet?

    How do you set a default Home Page in the Safari Applet?

  • How do you replace a lost home button?

    How do you repalce a lost home button?

    There are no user serviceable parts in iPhones,  Take to to Apple or an Apple authorized service provider for repair or replacement.

  • How do you bind Vista / XP clients to Open Directory?

    I have an OSX Server OD Master set up in 10.5.6.
    My OSX Clients can bind to it just fine using Directory Utility.
    How do you bind Vista / XP clients to Open Directory masters?
    Thanks

    @ jakelh:
    Make sure Kerberos is working on your server. Without it, PC logins will probably fail at least for Vista clients. Otherwise you'd have to downgrade a client-side setting on the Vista clients,
    http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=33927074 6
    DNS is critical here, but Vista can have a problem with things that are correctly configured.
    IE: Vista defaults to a TCP/IP setting that can make it incompatible with existing network hardware
    http://www.tech-recipes.com/rx/1744/vistatcp_cannot_communicate_primary_dnsserve

  • HT1727 How do you grant permission for home sharing and authorizing?  My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.

    How do you grant permission for home sharing and authorizing?  My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.

    OK, I just got off of the phone with Apple and still no joy. They had me try a few things that did not work, then told me to Archive and Install, which did not either. Anyway, thanks for the additional help very note worthy, but still no joy. Also an email to iTunes Support took me here
    http://docs.info.apple.com/article.html?artnum=93061
    I have a Users/Shared folder but since the files we are talking about are invisible, I can see how it is structured.
    And by the way I tried this one
    http://discussions.apple.com/message.jspa?messageID=3577004#3577004
    and it did not work. However, when I install a fresh copy of Tiger on the external it did authorize the computer and was able to play the downloads. But coping the invisible file to my boot drive was not successful. But , like I said the music did play when I started up from the external. So I guess that may be my only solution, unless someone can tell what the correct directory is and where it for iTunes downloads.

  • TS4425 How do you agree to the latest iCloud Terms of Service if you don't have an iOS device only a Mac computer and an Apple TV with an iCloud account?

    How do you agree to the latest iCloud Terms of Service if you don't have an iOS device only a Mac computer and an Apple TV with an iCloud account?

    Part 2
    Thanks for the feedback Skhorchid.  Glad it worked for you too.
    A bit later I discovered that Photo Stream was not working on my Windows 7 PC either.  If I opened the iCloud control panel and put a check in the box to turn on Photo Stream, and then closed and reopened the control panel, the check mark was gone again.  Also, nothing happened when I clicked on the options button beside the Photo Stream check box.  I already had version 2 of the iCloud control panel so I could not upgrade further. 
    I ended up uninstalling the iCloud control panel, rebooting, downloading a fresh copy from Apple, and reinstalling it.  This worked and I now have photo stream working on my Windows 7 system as well.

  • How do you reverse a goods receipt document of a service entry sheet?

    Hi SAP experts,
    How do you reverse a goods receipt document of a service entry sheet? Your help/opinions will be highly appreciated. Thanks!
    Jessica Mari C. Cruz
    Jr. Software Development Analyst
    SAP- Materials Management Team

    You can sue the ML81N itself to delete the service entry sheet and once you will delete the SES, system will generate the Material document for reversal of GR.
    Go to ML81N and enter the service number and change the screen to change mode.
    If release statergy is used for this then cancel the release using the same statergy.
    Click Revoke acceptance button or Ctrl + F2.
    Edited by: Manish Kumar Agarwal on Aug 4, 2009 8:27 AM

  • How do you undo add to home screen?

    How do you undo adding a link to a webpage to your home screen?

    The same way you delete an app. Tap and hold the icon until it starts to wiggle and tap the little 'x' that appears.

  • How do you change the file home share imports to?

    When using home share between my two home computers iTunes automaticly imports songs to my pc hard drive under the music file.
    The problem is I have all my music stored on an external hard drive, and would like to import these songs directly to the external instead of the pc.
    How do I change the setting to have home share import to a folder other than the default folder?

    iTunes > preferences > advanced.
    change iTunes media folder location to the external before importing files from the homeshared library. change it back to the original location if you want iTunes to put new additions to your library there.

  • How do you deauthorize if the home computer is no longer available?

    We had to purchase a new home computer recently.  The other computer was the primary for Itunes.  How can we deauthorize other computers from Homeshares now that we do not have the primary computer any longer?

    If you no longer have the computer(s) you want to deauthorise,
    Log in to iTunes,  go to "view your account info" on the itunes store,  deauthorise all five, (Please Note: this can only be done Once every 12 months)  and then re-authorize your current Computer(s) one at a time.
    Authorise / Deauthorise About
    http://support.apple.com/kb/HT1420

  • TS2972 How do you port forward for Home Sharing ?

    I want to home share with my apple tv and it's not working, so i think i need to port forward for home sharing on my apple tv. But i dont know how to port forward :S

    I use an application called port map. http://www.codingmonkeys.de/portmap/  Make sure you download the landlubbers version. When you open it add a port called minecraft with the port 25565

  • How do you set a default home page for tabs

    Default home page setting is easy enough but when clicking the "+" to open a tab I want to set the page that it defauts to. You would think that it would do the default home page but it doesn't and I cant find where to set it.

    Troubleshooting tips on the '''browser.newtab.url''' preference:
    ''If Firefox won't let you edit this setting:'' you may have something called SearchProtect on your system. This needs to be removed from the Windows Control Panel.
    ''If Firefox lets you save your change but ignores it:'' one of your extensions may be overriding it. You can review, disable, and/or remove extensions on the add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then cast a critical eye over the list on the right and disable (or remove) anything unknown.
    ''If the change works during your session, but at the next startup is back to the unwanted page:'' you might have a user.js file in your personal Firefox settings folder (your Firefox profile folder). This article describes how to track down and remove the file: [[How to fix preferences that won't save]]. Also beware of features in utility programs like Advanced SystemCare that roll back settings changes between sessions.
    If bad add-ons do not have a Remove button or keep coming back, here's my suggested procedure for tracking down and cleaning them up. I know this seems long, but it's not that bad.
    (1) Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help in smoking out undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    (2) Open Firefox's '''Add-ons page''' using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    * in the Windows "Run" dialog, type or paste <br><code>firefox.exe "about:addons"</code>
    In the left column, click '''Plugins'''. Set nonessential and unrecognized plugins to "Never Activate".
    In the left column, click '''Extensions'''. Then, if in doubt, disable (or Remove, if possible) unrecognized and unwanted extensions.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    (3) You can search for remaining issues with the '''scanning/cleaning tools''' listed in our support article: [[Troubleshoot Firefox issues caused by malware]]. These on-demand scanners are free and take considerable time to run. If they finish quickly and especially if they require payment, you may have a serious infection. I suggest the specialized forums listed in the article in that case.
    Success?

  • How do you bind a radio button to a row in a table

    Im developing a web page that does a search given certain criteria. It displays the results in a table and dynamically allocates a radio button for each row that is created.
    I then want to be able to select the radio() button and display the row that was selected by the radio button on another page.
    Im doing a project in college developing a online airline ticket booking system. The user searches for flights and is displayed back with the Outgoing flights and the return flights. Each flight that is displayed is given a radio button. The problem is that I want to let the user select the a radio button that corresponds with their choice of flight and display this flight on the next page.
    Can anyone help me please with some code or ideas on how to go about doing it
    Thanks very much Nicky

    I suppose you do something like this:
    <sql:query var="var" scope="request">
    SELECT * FROM table
    WHERE something = ?
    <sql:param value="${param.something}" />
    Right??
    When you start the page, add:
    <%@ page language="java" %>
    Then under that
    <% int i = 0; %>
    Then:
    <html>
    <body>
    <form action="your_action" method="post">
    <table>
    <c:forEach items="${var.rows}" var="v">
    <% i++; %>
    <tr>
    <td>
    <input type="radio" name="yourname<%= i %>" value="yourvalue">
    </td>
    </tr>
    </c:forEach>
    <tr>
    <td>
    <input type="Hidden" name="i" value="<%= i %>">
    <input type="Submit value="next page">
    etc. etc.
    Follow me so far?

  • How do you change permissions of "Home" folders on a Mavericks Server??

    I have a test server and test machine. I installed Mavericks and the OSX server app onto my test server and installed Mavericks onto my test mac.
    I have created a Folder which will house the home folders of users, made this into a shared folder, ticked the option that allows it to be used as a homes folder. I seem to have read/write access to the folder but I have not got access to the folders within the home folder; the users home folders. As an administrator I need access to all the folders.
    I changed permissions to add myself read/write access to the folders but then this breaks the home sync and when the user logs in I get an error message that says the "Home folder is not where it is supposed to be" or something along those lines.

    You can enable root by gui if needed.  
    /System/Library/CoreServices/Directory Uitily
    When you open the Directory Utility you will have to click the lock on the lower left and authenticate as an admin user.  Next go to the menu bar and the "edit" menu.  Click edit, then click "enable root user".  It iwll prompt you to create a root password.   Once you do you will have the "other" option at the login window after restart.  Or if you just enter username and password, use "root" for username and the password you created for password. 
    When you are done doing whatever you need make sure to reopen Directory Utility and disable the root user.

  • How do youi call an EJB from a composite app

    I created a simple composite application, called testserve.
    Here is the entire body of the implementation class, testserveBeanImpl.java
    package com.sap.demo.testserve.modeled.appsrv.testserve;
    import com.sap.demo.*;
    @com.sap.caf.dt.CAFWebService(name="testserve")
    @javax.jws.soap.SOAPBinding(style=javax.jws.soap.SOAPBinding.Style.RPC, use=javax.jws.soap.SOAPBinding.Use.LITERAL)
    @javax.jws.WebService(name="testserve", serviceName="testserve", portName="testservePort", targetNamespace="http://www.sap.com/caf/demo.sap.com/testserve/modeled", wsdlLocation="META-INF/wsdl/testserve.wsdl")
    @javax.ejb.Stateless(name = "com.sap.demo.testserve.modeled.appsrv.testserve.testserve")
    @javax.ejb.Local(value = { com.sap.demo.testserve.modeled.appsrv.testserve.testserveServiceLocal.class })
    @javax.interceptor.Interceptors(value = { com.sap.caf.rt.interceptors.LogInterceptor.class })
    public class testserveBeanImpl extends
              com.sap.demo.testserve.modeled.appsrv.testserve.testserveBean {
                    //these two lines are used to inject an EJB which is packaged in the EAR
         @javax.ejb.EJB (beanName="com.sap.demo.TestbeanBean")
                   private com.sap.demo.TestbeanBean theTestBean;
         @com.sap.caf.dt.CAFOperation(name = "serviceTest1")
         @javax.jws.WebMethod(exclude=false, operationName="serviceTest1")
         @javax.jws.WebResult(name="outputParameter1")
         public java.lang.Integer serviceTest1() {
                                   //test1() just writes to console, simple test to test EJB connectivity
              theTestBean.test1();
              return 1;
    There is a second ejb project called testejb which contains the stateless session bean TestbeanBean.
    The code compiles fine as typed above.
    However, when deployed, I get the following exception, which I will post in a reply, since this post is too long. I am sure that I neglected to
    set up something so that the testserve service can find the EJB TestbeanBean at runtime, but I need some
    guidance. I have searched the help for a couple days and have not found anything useful. Is there a step by step
    explanation for configuring this?  To be clear, I want a web service created in the Composition Application perspective
    to be able to call an EJB in an EJB project. I don't want to create a web service out of the EJB (TestbeanBean) for performance reasons. Thanks.
    The service works fine when the 3 lines relating to  TestbeanBean are removed.

    Abbreviated error trace
    #1#javax.ejb.EJBException: Exception in getMethodReady() for stateless bean
    : Injection on field theTestBean of instance com.sap.demo.testserve.modeled.appsrv.testserve.testserveBeanImpl@ca49f82 failed. Could not get a value to be injected from the factory.
    Caused by: javax.ejb.EJBException: Cannot perform injection over bean instance
    Caused by: com.sap.engine.lib.injection.InjectionException: Injection on field theTestBean of instance com.sap.demo.testserve.modeled.appsrv.testserve.testserveBeanImpl@ca49f82 failed. Could not get a value to be injected from the factory.
         at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:115)
    Caused by: javax.naming.NamingException: Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: com.sap.demo.testserve.modeled.appsrv.testserve.testserveBeanImpl/theTestBean
    Type: clientAppName
    Content: demo.sap.com/testserve~ear
    Type: interfaceType
    Content: undetermined
    Type: undetermined
    Content: com.sap.demo.TestbeanBean
    Type: ejb-link
    Content: com.sap.demo.TestbeanBean
    javax.ejb.EJBException: Cannot find EJB matching the criterions defined by JNDI reference: 'Reference Class Name: com.sap.demo.testserve.modeled.appsrv.testserve.testserveBeanImpl/theTestBean
    Type: clientAppName
    Content: demo.sap.com/testserve~ear
    Type: interfaceType
    Content: undetermined
    Type: undetermined
    Content: com.sap.demo.TestbeanBean
    Type: ejb-link
    Content: com.sap.demo.TestbeanBean
    '].  Searched applications order is USED_CLASS_LOADER[

Maybe you are looking for

  • FTP & Logical Filename

    Hi Experts, We have an FTP program, that will pick up the file on application server, will remane the file & send it to the specified destination. My query is, I need to created one more file & that needs to renamed to other name, how can I achieve t

  • Is there no better way to mount a disk than using Disk Utility?

    When an unmounted disk needs mounting, it's kind of a pain to have to load an app (Disk Utility) to mount that disk. Is there no easier way, direct from the Desktop/Dock/Finder/via a third party plugin?

  • How does one create navigation in a pdf?

    Hello I'm editing a very long Word document with hundreds of bookmarks leading to Glossary definitions, which I've turned into a pdf. I now want to create something for the reader, once they've read the Glossary item, to click on which will automatic

  • How can I get a wireless internet connection on an original imac 233MHz G3?

    I have an original tray loading G3 233MHz bondi blue imac. I have a wireless router installed and would like to get wireless internet capability on this imac. An airport card cannot be installed. Is there any way it can be done? iMac G3 233MHz   Mac

  • Desktop Manager 6.1 fails to run with Windows 7

    I am my wits end with Blackberry Desktop Manager 6.1 software which I have now uninstalled and re-installed 4 times! OS is Windows 7 Pro.  Have done clean re-installs each time.  The onbly sucessful BB Desktop Manager was Version 5 - which I can no l