How to call a CORBA Object in a 3rd Party ORB from a EJB
Hello
I found a few articles on the web how to call EJBs for example from C++.
However, I want to do the inverse. I want to resolve an Object (implemented in C++, using OmniORB) via COS-Naming and invoke it from a EJB. I can write a simple Java Client which does this without a problem. But as soon as I try to do the same in EJB I get the following:
[#|2004-11-09T10:48:16.848+0100|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=12;|"IOP00710209: (INTERNAL) Unable to create listener thread on the specific port"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3142)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3160)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryAcceptorImpl.initialize(SocketFactoryAcceptorImpl.java:60)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:190)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:207)
at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:104)
I think there is somehow a conflict because the SUN Appserver also uses CORBA. My Code looks like this:
String[] a = null;
Properties props = new Properties();
final String CORBA_HOST = "arcos";
final String ORB_INITIAL_PORT = "2809";
props.put("org.omg.CORBA.ORBInitialPort", ORB_INITIAL_PORT);
props.put("org.omg.CORBA.ORBInitialHost", CORBA_HOST);
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(a, props);
So I thought this might be because there is already a ORB initialised. So I replaced the last line with
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
Which should give me an ORB instance. However I get the following exception:
[#|2004-11-09T11:51:59.206+0100|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.err|_ThreadID=15;|
org.omg.CORBA.NO_IMPLEMENT: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.genericNoImpl(ORBUtilSystemException.java:7085)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.genericNoImpl(ORBUtilSystemException.java:7107)
at com.sun.corba.ee.impl.orb.ORBSingleton.resolve_initial_references(ORBSingleton.java:311)
at com.ascom.util.CorbaNaming.resolve(CorbaNaming.java:26)
at com.ascom.fxm.FileManager.<init>(FileManager.java:46)
at com.ascom.srv.file.web.FileImporterImpl.importFile(FileImporterImpl.java:146)
Any ideas? Thank you very much in advance.
Oliver Jaun
Perhaps you could take a look at the following document and see if it meets your needs:
http://java.sun.com/j2se/1.4.2/docs/guide/rmi-iiop/interop.html
Similar Messages
-
How to call a COM object from an Oracle Form?
Hi All,
Pls advice. How to call a COM object from an Oracle Form?
Thanks.try asking the "Form" forum
-
How to call GOS(Generic Object service) attachment ( BMP file ) into SAP
How to call GOS(Generic Object service) attachment ( BMP file ) into SAP script
Example: MM02 Service object there attaching the bmp file the same file i need to call script based on the material number
Please provide the procedure and coding.
Thanks in advance
RajuHi,
The following link may be useful to u.
help.sap.com/printdocu/.../BCSRVOBS.pdf -
Calling 3rd party softwar from ABAP
hi all,
I would like to know is it possible, if yes, how to perform a call to launch external 3rd party software from ABAP (example, half way in process of a BDC session) and pass back the information from 3rd party software back to ABAP.
Thanks in advance!
Regards,
JLHi,
For that please refer to the following link:
http://help.sap.com/saphelp_nw70/helpdata/en/80/b711d7d6d03d4a956f16bb854a186e/frameset.htm
Regards,
Renjith Michael. -
How do I add a password to a 3rd party document?
How do I add a password to a 3rd party document?
For example, if I download a bank statement and want to send it to someone, how can I add a password to it?
Thanks.Thanks. That's a great resource, but it won't do what I want to do. Firstly, it seems that the password on that screen if for permission to modify the document. I'm only looking to prevent unauthorized viewing. Secondly, the 3rd party document is often already password protected by its creator.
-
How to call a method written in user control (ascx file) from javascript
Hi to All,
I have one scenario where I need to call a method written in user control (.ascx.cs file) from javascript (ascx file). I tried below code but it is not working, I found later it works only for aspx or asmx file , is it true ??
Code:
$.ajax({
type: "POST",
url: "ViewSearch/SetServerSessionText",
data: "{'name':'" + searchText + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
error: function () {
alert("error");
Can anyone please tell me how to call ascx.cs code from javascript ??
Thanks in Advance !!!yes that is true, ajax calls can only be made to an endpoint like aspx pages/web service, basically anything that can return a http response etc. User Control can be embedded inside of aspx pages.
-
Calling dll file to control a third party board from PC Control.
Hi there,
I have this hawkeye stepper motor control board from PC control company.
It comes with a software written by the company which is in DLL format. I would like to call the DLL file in labview and be able to do further programming on it using labview platform to control the motor board.
The reason that I need to call this DLL file is because labView does not recognise the control board when connected to it.
I would really be grateful if anyone who has purchased the same motor control board from PC control company before and successfully using labview to control it could share the code and driver with me.
Many thanks.
XI CAN LIUHello,
I'm not using that vendor products so I can't help you directly with your issue.
Nevertheless, you can find several documents on this site explaining how to use DLLs in LabVIEW: I point you to three of them, but yu can find more with apropriare searches.
Can LabVIEW C? - Example 3: Using the Right Tools with LabVIEW a whitepaper on using external DLs in LabVIEW
Calling External Code From LabVIEW link useful documents on how to call different external codes in LabVIEW
Using Existing C Code or a DLL in LabVIEW a tutorial which explainh how to use DLLs
I must also warn you that this is not the proper forum board where to post LabVIEW-related questions: this board is dedicated to LabWindows/CVI users, while there is a specific board for LabVIEW users where I suggest you to post further questions.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Sending call to 3rd party VRU from ICM Script
Integrating ICM Script with 3rd party VRU using GED-125 interface. I am having trouble to send the call from Cisco CM to 3rd party VRU. Trying Send to VRU node but it is not clear how to pass the destination for 3rd party VRU.
Any feedback would be helpful.Move this to contact center forum to get better response.
Here: https://supportforums.cisco.com/community/5926/contact-center
-Terry -
How to: Send out e-mails through a 3rd party mail host?
Hi,
We would like to send out e-mail campaign from our CRM system.
But we would not like to risc being blacklisted as spammer, so we would like to send out the e-mails using a 3rd party mail host provider.
Our sales department already use our CRM system for sending out their sales related e-mails.
They use our corporate exchange server for that.
So the scenario is:
I have created a smtp node in trx scot, and liked it to our domain *company.com
This node points to our corporate mail host. All our normal users use this domain.
All our campaign e-mails from CRM should be send using another mail host as described before.
According to note 455140, I don't see that I can create a new smtp node in scot.
And link this one to our new e-mail domain *company-news.com and the external mail host.
How do I send these e-mails to a specific mail host when the sender is a specific domain e.g. company-news.com?
My Exchange server guys say that they can't redirect specific mails send from our CRM system.
They can only redirect all mails that are send from our CRM system, but then all the e-mails from our sales reps are also send through a 3rd party mail host.
Does anyone have battled with this before, and how did you solve it?
best regards
Michael Wolff KnudsenWe bought a new Exchange server, version 2007 just for CRM. This Exchange version can tunnel the e-mail to our 3rd party vendor, and they can send out the e-mails so neither one of us gets spammed.
-
How to raise customer invoice in case of third party sale from PS
Dear All,
In case of third party sale from project systems module, PR is raised which is further converted to PO and once the material reaches at client place GRN is done.Based upon the GRN the actual cost is booked to the project.How should I raise the customer invoice against the materials received by the customer?
I went through the Forum and based upon the threads there, I came to know that one option is to create sales order for the same items and do order based billings.But for this I have to enter the same materials items again in the Sales order which is nothing but duplicacy of data.
Is there any alternative to this? Or some other way by which the PO line items be copied to sales order so that I can save time while creating sales order.
Regards,
B P SinghHi Virendra,
Business scenario is like this.
I have created project and activities.Have assigned materials as 3rd party sale in NWA. I have released the project.PR are getting followed by PO.On doing the GR the actual costs are getting booked on NWA.
My concern is how to bill the Items(the same material components) which are assigned to activity.
As per your input I need to do Resource Related billing.Thanks for the input.It is no longer required to assign materials in DIP to Carry out RRB.
To carry out RRB do I need to create Sales Order first ? If No then how to do RRB? If Yes I need to create a Sales Order with all the material components which I have assigned at activity level. So I was looking for some alternative so that SO creation becomes less tedious.
Regards,
B P Singh -
How does one create product keys when developing 3rd party Addons
HI
DOes anyone have experience in developing 3rd party addons? How do you manage liscense keys, is there a function module which can generate the key?
and buildingin a expiry date so that a customer can note hack a table entry to continue?
Thanks
Henrywoodwing seems to have a nice toolset to make it easier for sure... but I'm not sure that is the correct direction for
us. As we don't want to have to submit anything to Apple. Our needs are for internal use only and we would not be creating content for the public.
I don't follow the ePup process fully... PDF's we can load right onto the iPad. It's a real shame about flash not working as we can make some very slick flash content right out of indesign with little effort. (maybe the direction should be a Flash to HTML5 converter? Goto page commands assigned to buttons would be wonderfull if they worked but when you export the doc to PDF Acrobat complains that it is not compatible. When we export to flash it works like a charm on a PC.
Haven't found a good gudie for bookmarks yet... and if that would give us buttons on each page to move the user back and forth through the document. -
How to uninstall 3rd party app from MacBook Pro?
Does anyone know how to uninstall a 3rd party application (RMSViewer) from MacBook Pro? The app doesn't work and I want to remove it from memory. I can't find an "uninstall" utility on my computer and the 3rd party software doesn't include an uninstall link.
Tap and old the app until it starts to wiggle. Tap the "x" that appears on the corner of the icon.
If that doesn't work, check Settings>General>Restrictions to see if removing apps is restricted.
You may also want to take a read through the manual:
Apple - Support - Manuals -
How do you install and delete 3rd party plugins from Logic 9?
I have been trying to install RX2 from iZotope with no success. I can authorize it in the standalone version but not in logic. I had a previous demo version of it installed and everytime I went to authorize it would point to the earlier version and not authorize and run in demo. I removed a number of files pertaining to it from HD & User/ Library/ Preferences and Audio/ Components and tried reinstalling. Now it doesn't even show up in the plugin list. Can anyone tell me how to clear this up? Also, how to deal with 3rd party plugins. What can I say, no problems with Reaper! Appreciate any help with this. Thanks
The Isotope website isn't very clear about it.. It seems to indicate the Windows version is 32 and 64 bit where as the AU version is 32bit and will work/is compatible with Logic 64bit.. which it will as it will run under the 32 to 64bit bridge... when Logic is run in 64bit mode..but as i said, it's hard to tell one way or the other.
The thing is, if you simply reinstall it.. and then run Logic first in 32bit mode and then in 64bit mode.. it should show up.
Where are you looking for it in Logic?
Does it show up in the AU Plugin Manager? (after, that is you have reinstalled it) -
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file the following
dir structure .And i mentioned the Class-path including all jar files in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic script
.How to make the EAR file incliding ejbjar,webapplication and 3rd party jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected]Refer to the section
Handling Utility classes
http://dev2dev.bea.com/products/wlserver/articles/musser.jsp
thanks,
Deepak
"Ashok Samrat" <[email protected]> wrote:
>
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar
files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file
the following
dir structure .And i mentioned the Class-path including all jar files
in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar
does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic
script
How to make the EAR file incliding ejbjar,webapplication and 3rd party
jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected] -
How to call the BPM objects in the child JSP?
Hi,
We are facing some problem, we are trying to use the JSP for the UI instead of BPM Presentation.
In the JSP we are calling the child JSP(using JSP include), we need to pass the BPM objects from child to parent JSP.
Can any one help me on how to pass the Object between the JSP's and BPM Obejcts.
I will explain in the Example too,
1. We are created the BPM objects with fields
2. Created 2 JSP's 1. Main.JSP 2. Sub.JSP
Now we need to call the sub.jsp into main.jsp,while we calling we need to pass the sub.jsp BPM Object.
Regards,
Anandh PHi
When you use <% include page="test.jsp" %> you can use the same object's name in child jsp like in parent file (this is static way to include another file).
Hope this could solve the problem. regards.
Maybe you are looking for
-
Upgrade install problem Photoshop CS5 from CS2, MacOS 10.6.8
Hello, My wife was using Adobe Photoshop CS2 for a long time. We purchased a Photoshop CS5 upgrade in 2010 through Amazon, but she never installed it after reading about problems other people had with the upgrade. It was still in its shrink wrap se
-
It was yesterday that I updated on my Z10 model STL100-1 OS from 10.1.0.273 to 10.2.1.1925 and got an instant message to update to 10.2.1.537 and did that, too The update process went smoothly enough. But, after loading the new 10.2 OS from BB's webs
-
(rMBP) Is it normal for the menubar to reload constantly?
Hi, I have a 15" Macbook Pro with Retina Display. I use GFX Card Status so I am aware of when my computer switches to the better graphics card - the Nvidia Geforce GT 650M... And whenever it does, the menubar reloads every time I change desktops. It
-
How do I get Safari to display the URL?
I was using Safari 5.1.3 and, for some reason, the URL no longer shows in the address bar. How do I get the URL/address to show in the address bar?
-
Update TIN numbers for BP Customer and Vendor Records
Hi experts Needed to update the TIN numbers for existing vendors and customers in SAP B1,please let me know the templates and necessary field to update the same Regards Srinivasan