Use J2EE CAS COM Bridge locally for non visual components

if you only have non visual java-classes which you want to access locally through COM, you should use J2EE CAS COM Bridge. this is a very powerfull component, that makes it very easy to use about ANY java-class in VC++, VB, ASP and VBScripts. Some people said earlier in this forum, that you can only use EJBs which must also have been deployed in a J2EE EJB server. well that's not true!! if you need only local access to java-components, you can use J2EE CAS COM Bridge as well. All you need is just a JRE, actually you can have multiple JREs installed and choose among them, even dynamiclly in runtime. No JDKs and no additional J2EE components are required.
J2EE CAS COM Bridge comes with very usefull tools and lots of examples that show, how you can access java-classes in VC++, VB, ASP, etc.
So TRY THIS!!

unfortunately, it's outdated! The last example (6) doesn't work. The batch file cloudUtil.bat has to be adjusted to use the current cloudscape JAR files. And even then, the Visual Basic Programm terminates with an Exception at line:
Set AcctHome = J2eeRi.LookupEjbHome("MyAccount", "account.AccountHome")
Exception:
Run-time error '-2147467259 (80004005)':
JavaException: java.lang.Exception: Could not call javax.naming.InitialContext.lookup because:
javax.naming.CommunicationException: Can't find SerialContextProvider
:-(

Similar Messages

  • J2ee cas com bridge help

    Hi,
    I need documentation about j2ee cas com bridge. I know that is not still supported but I have to mantain a software that was developed in vb6 using .class files. I have to check something but I haven't the documentation. Does someone knows where I can find it?
    Thanks
    Valy

    There is now an IBM product available for free download.
    See http://www.alphaworks.ibm.com/tech/dtjcb?open&S_TACT=104AHW61&S_CMP=GR&ca=dgr-eclpsw02awdtjcb
    I have been trying today to investigate migrating from CASCOM to this product. It appears to have the facilities I need (i.e. COM client to Java Server) but I'm having trouble trying to 'match' the two products.
    CASCOM can generate TLB files for use by the COM application direct from the Java class, whereas it appears that you have to provide IDL definitions for all Interfaces from scratch, and then convert them to TLBs using 'midl'. Anyone been through a migration already who could share their experiences??
    Thanks
    Steve Waters

  • [svn] 4735: Fixing id selectors for non-visual components.

    Revision: 4735
    Author: [email protected]
    Date: 2009-01-29 10:53:55 -0800 (Thu, 29 Jan 2009)
    Log Message:
    Fixing id selectors for non-visual components. This required a special modification to the compiler to include id properties in generated code if a component was guaranteed to have an id property. A new mx.core.IID interface was introduced to opt in to the id property to be included. This change also required TextGraphicElement based components to implement IAdvancedStyleClient instead of just IStyleClient (though note that pseudo-selectors have no meaning for these components as they do not possess states).
    QE: Yes
    Doc: It's reasonably advanced, but we may want to document mx.core.IID for the case where a custom component exists that needs to be styled but is not based on UIComponent or GraphicElement.
    Checkintests: Pass
    Reviewers: Glenn, Paul R
    Bugs:
    SDK-18651 - Advanced CSS not setting styles on FXG elements correctly when styling using IDs
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18651
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as
    flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/AttributeHandler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
    Added Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IID.as

    Anyone able to help?

  • CAS COM Bridge

    I downloaded the latest early access 4 of the J2EE CAS COM Bridge (http://developer.java.sun.com/developer/earlyAccess/j2eecas/download-com-bridge.html) and work through the Tutorial (http://developer.java.sun.com/developer/earlyAccess/j2eecas/doc/guide/html/Tutorial.html). I came to the point where the examples use type libraries, but those examples don't work. After replacing the types with "Object", they work.
    In paragraph 3.2 Type libraries in Visual Basic
    (http://developer.java.sun.com/developer/earlyAccess/j2eecas/doc/guide/html/Tutorial.html#3.2), it says:
    - Under the "Projects" menu select "References...". The "References" dialog box will appear.
    - The "java_lang_System_Lib" checkbox should be checked. Uncheck it.
    But there is no entry "java_kang_System_Lib", only J2EExxx entries. Of course, I tried to check all the J2EExxx entries, but with no success. Is somebody else working with the CAS COM Bridge getting it to run with Type Libraries?

    So, what's up with the broken type libraries?

  • Using macbook as a wireless router for non-apple devices

    im trying to use my mac as wireless router for my xbox. i went into share under system preferences, and made a network with a WEP password. I can see the network on my xbox but it requires an IP adress...
    i guess what im really asking is, if the mac can automatically assign IP adresses to devices on the network

    I use my MBP regularly to share internet connection with PCs. Usually the PCs do a 'search' for a network and then 'connect' to the network name set in the Airport options... drop down panel. They get the IP automatically.
    In the system preferences>share> there is a button on the right bottom which says 'airport options..' and in the drop down panel, you set the name or SSID and the WEP key.
    Maybe you should check XBOX settings if the network settings are manual or automatic?
    Hope that helps.

  • J2EE To COM Bridge

    We have a Workflow product that is based on the COM
    architecture. We're in in the process developing a new
    LOB application based on J2EE specs.
    What are our options (vendor products, how) to
    integrate these products so that they can talk to
    each other through the data layer?

    JIntegra from http://www.intrinsyc.com is one of your options, I think.

  • Property editor for non bean components

    All
    My Requirement:
    I had just started to develop an IDE for java, if i click on the component for eg,, a button in the frame i should get all the properties of that component. Is there anyway i could do this thru the PropertyEditor object.
    Any other suggestions????
    Tx in advance
    Arul

    First I suggest you bone up on the JavaBeans specification... know it well.
    Next I think you'll conclude that you'll need to build your own PropertyEditors for all the common types. Along with custom editors for complex types e.g., Font.
    Also I think you'll notice that the JavaBeans component model is severely lacking regarding property exposure; a competent property inspector will have to embellish on the JavaBeans model.
    Good luck.

  • Java EJB's from VB via CAS COM

    I'm am trying to access a Java EJB on an Orion
    application server from a VB app using the Early
    Access version of the current CAS COM Bridge.
    I am providing details of the Orion server configuration and also relevent statement for the VB app.
    First, the following is the rmi.xml file for our orion server:
    <?xml version="1.0"?>
    <!DOCTYPE rmi-server PUBLIC "Orion RMI-server" "http://xmlns.oracle.com/ias/dtds/rmi-server.dtd">
    <rmi-server port="23791" >
    <!-- A remote server connection example -->
    <!-- <server host="the.remote.server.com" username="adminUser" password="123abc" /> -->
    <!-- path to the log-file where RMI-events/errors are stored -->
    <log>
    <file path="../log/rmi.log" />
    </log>
    </rmi-server>
    Second, the following is our server.xml file:
    <?xml version="1.0"?>
    <!DOCTYPE application-server PUBLIC "-//Evermind//DTD Orion Application-server//EN" "http://xmlns.oracle.com/ias/dtds/application-server.dtd">
    <application-server application-directory="../applications"
    deployment-directory="../application-deployments">
    <library path="../tools.jar" />
    <rmi-config path="./rmi.xml" />
    <jms-config path="./jms.xml" />
    <log>
    <file path="../log/server.log" />
    </log>
    <transaction-config timeout="30000" />
    <global-application name="default" path="application.xml" />
    <application name="eproposal" path="C:\oc4j\j2ee\home\applications\eproposal.ear auto-start="true" />
    <global-web-app-config path="global-web-application.xml" />
    <web-site path="./default-web-site.xml" />
    <cluster id="-1335203624" />
    </application-server>
    Lastly, we are using the Early Access version of the current Sun J2EE CAS COM Bridge to access this server from a VB6 app. Sun's documentation for Accessing EJB components on a J2EE server from a VB app states the following:
    Dim J2eeRi As J2eeRiServices
    Set J2eeRi = New J2eeRiServices
    J2eeRi.ProviderURL="iiop://host:port"
    We replaced the call to ProviderURL with the following:
    J2eeRi.ProviderURL="ormi://n6908ccj4b166/eproposal"
    and when it executes we get the following error:
    Invalid ProviderURL:ormi//n6908ccj4b166/eproposal
    Can anyone provide any help?
    Thanks,
    Mike

    the first stuff i haven't really looked at but this...
    J2eeRi.ProviderURL="iiop://host:port"
    is not the same as
    J2eeRi.ProviderURL="ormi://n6908ccj4b166/eproposal"
    1) where is the port.. shouldn't it look like
    J2eeRi.ProviderURL="ormi://n6908ccj4b166/eproposal:5000"
    if for example the port was 5000
    2)also i'm not sure what is happening but in the error Invalid ProviderURL:ormi//n6908ccj4b166/eproposal
    what has happened to the : between ormi and //
    make sure the : is there too.
    3)is the ormi part valid. this is the protocol no? should it not also be iiop. i really don't know about this one but it strikes me as odd....
    hope this is somewhat helpful.

  • Using J2EE with ASP

    I am trying to run example 3.asp from the example package that comes with j2ee-cas-com-bridge and I am getting the following error message:
    Error Type:
    J2EECAS.JvmControl.1 (0x80004005)
    The specified Environemnt variable: COMBRIDGE_HOME, is not defined.
    /combridge/example3/example3.asp, line 13
    I am using Windows 2000 and COMBRIDGE_HOME is registered as an environment variable.
    Does anyone have an idea of what is wrong?
    Thanks a lot in advance
    Eugene

    Thanks for your advice.I tried to register COMBRIDGE_HOME as a system variable but now I get another error:
    Error Type:
    J2EECAS.JavaServices.1 (0x80004005)
    JavaException:java.lang.ClassNotFoundException: TimeUtil:TimeUtil
    /combridge/example3/example3.asp, line 21
    Everything seems to be in place.TimeUtil class is present both in the classes directory under COMBRIDGE_HOME and in the example3 directory.
    Do you know what can be wrong this time?
    eugene

  • Service desk for non-sap (please - any inputs are welcome)

    hi all,,
    I know how to setup service desk for SAP use. Can some one provide me some tips on using solution manager - service desk for non-sap as well? eg: the company wants to use service desk for normal activities as well, as laptop not working, server down, other system issues etc.
    The questions I have are -
    1) Any specific structure to be created for the non-sap? The way we use in SAP specific environment is to use "SAP Components" while creating tickets. How can we create tickets for non-sap components? What will be the "responsibility" selection?
    2) How about the Ibase? For SAP, the ibase already have the data from SMSY. How can I get data for non-sap systems? Anything is SAP to keep the Asset management data (like entries of laptops, servers etc)
    Thanks for all the suggestions !!
    JZKALH

    Hi
    You need to go for service desk XT which is the extension of service desk to manage non sap or IT incidents
    Check below link
    https://websmp110.sap-ag.de/_solutionmanager
    Heterogeous system environments are a challenge for IT-service management in any company. The associated complex structures and varying forms of media often make it difficult to realize efficient service processes. With SAP Solution Manager Service Desk - Extended Usage (Service Desk XT), SAP offers a centralized support tool as a single point of access - for service requests and problem tickets related to SAP and non-SAP software.
    The Single Point of Access for Support
    SAP Solution Manager, which is a standard part of every SAP solution and therefore can be used by all SAP customers, supports users in SAP relevant service requests. The standard function of the service desk is restricted to service requests.
    With Service Desk XT, SAP provides an extended support tool, which can be also used for general service requests, for example regarding IT or telecommunication equipment.
    This priced add-on does not require additional interfaces to third-party products - the same service requests are used for SAP and non-SAP applications. This simplification is a benefit for your employees.
    This solution has been created with IT service providers in mind, especially those which work within a company and currently do not have an IT-service desk application in place or would like to replace an existing system.
    Also,
    check this link
    pg(46)
    https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000147532009E
    Pg 52 onwards
    https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000059742008E
    https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000548652007E
    Hope it helps
    Regards
    Prakhar

  • EWA for non-ABAP systems

    Hi,
    We are planing to implement EWA for Java systems. Currently EWA is active for all ABAP systems. Do we need Wily Introscope in order to setup the EWA for non-ABAP systems? Or just we can use the SMD to generate EWA reports for Java systems?
    Any idea?
    Thanks,
    Kris

    Thanks Paul
    We are on SM 7.0 EhP1. But I see following info in note 976054. It says data sources for EWA are different on 7.0 EhP1, does it mean we don't need wily from 7.0 EhP1 onwards?
    Data sources in Solution Manager Diagnostics up to SP17 used for EWA for non-ABAP components analysis are:
                          - Introscope (SAP Note 797147),
                          - Garbage Collection (SAP Note 1079125) and
                          - Portal Activity Reporting (SAP Notes 936612 to know how to activate PAR and 914791, 1075276 to configure SQL           
                            Command Console).
    Starting with Solution Manager 7.0 EHP1 (SP18) the data sources are:
                          - Solution Manager BI for performance data
                          - Configuration and Change DB(CCDB) for configuration data
    Thanks,
    Kris

  • Table for non ledger line items

    hi
    Iam pulling the report for non leading ledger with T code FAGLB03 and found 2 cost objects(cost center and WBSE)  in line items whereas for leading ledger only WBSE is showing. We know that for leading ledger entries are maintained in table  FAGLFLEXT.  From which table non leading ledger entries gets pulled. Your early response is appreciated.
    In the entry view cost center is there but in GL view cost center is not populated.

    Thanks Bhandari
    But user posting with 2 real objects (WBSE and CC) for which only WBSE is updating in total table. When i run line item report using FAGLB03, both objects are showing for non leading ledger similar to FS10N. But only WBSE is showing for leading ledger. Is FAGLB03 derive the data from BSEG table for non leading ledger.
    Thanks
    Venkatesh

  • How to setup EWA for non-ABAP system with SM 4.0 ?

    Hi, we are running SM 4.0 with the support-stack 06. I have set-up a solution for monitoring which includes a NW04 WebAS 6.40 Java only system. Has anyone set-up EWA reports for this type of non_ABAP system who can advise of the steps necessary for this ?
    It seems like you need to define RFC destinations for where the monitored system data should be collected from , but there doesn't appear to be anywhere to do this for non-ABAP systems ?
    I have looked at Note 738676 - Service Data Download for Non-ABAP Components but it hasn't helped and it seems to be SDCC specific, rather than SDCCN.
    Thanks.

    Hi Andrew,
    we are just developing it, at the moment you have the following option, your java system has to send by ccms agends its data to an ABAP 640 system or higher, there you can see its alerts in ccms, then you have to make both system available in SMSY. Then important you have to assign the java system as a system component, then we collect also the java data and shows them in the EWA of the ABAP system. There for go to the main instance tab and set a java main instance to relevant and assign your java system.
    This is the old, available standard solution. At the moment we develop it also for java stand alone.
    I think it will be available with the new ST-SER in autumn
    Regards,
    uDo

  • HELP!a class item in BOMs for select mat. components in a configurable GMTL

    Hello SAP colleague,
    Does anyone of you know what be used as a class item in BOMs for PM?
    1. I create a class as the components in a configurable bill of material of the category Assembly
    2. I create Configurable General Maintenance Task List and assign a material of the category Assembly to the general maintenance task list in the task list header  ?
    3. Unfortunately, I can't select the material components of a class item in BOMs and assign them to the task list (Msg. Item category K is not defined as a material component).
    4. If I create a maintenance order and assign a configurable general maintenance task list to it, the system recognize that the general maintenance task list is assigned to a configuration profile. It calls up characteristic valuation and only selects the relevant operations for the order from the super task list, based on the object dependencies that I specified. But system don't select the material components of a class item in BOMs.
    May I use a class item in BOMs for select material components in a configurable GMTL ?
    Many thanks for your answer.
    Mike
    Edited by: M.A. Bragin on Nov 8, 2010 1:18 PM

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • Can Jdeveloper Be Used For Non-Oracle Databases

    I have been trying to evaluate Jdeveloper 9i and Jbuilder 7 Enterprise for Swing database development. I am particularly interested in the productivity enhancements such as BC4J and Jclient. The underlying database might be Oracle, SapDb (excellent, easy to use, and free), SQLServer, etc.
    I evaluated Jbuilder Enterprise tools and it worked flawlessly with SapDb. This emphasized using their DataExpress and DbSwing components which provide many useful capabilities similar to BC4j and Jclient. It also involved using their DBPilot tool which allows browsing similar to that provided via a Jdeveloper connection.
    I tried to use Jdeveloper for the same SapDB and it is essentially non-functional. I followed the instructions for using a non-default driver and tried to define a connection. It behaved inconsistently: often saying no suitable driver can be found and yet when you edit the connection and test without making any changes, it works. If you try to establish a BC4J definition, it is very inconsistent and fails to recognize important details as foreign keys. Even if you define a ViewLink manually, it still does not work properly if you attempt to define a Master-Detail Jclient form. As I have stated, all these types of capabilities worked flawlessly in their Jbuilder equivalent. Furthermore, I really like the fact that Jbuilder gives many of BC4Js benefits without needing a BC4J J2EE container.
    Has anyone had real success using Jdeveloper's advanced features to develop for non-Oracle databases and if so, how did you get around these types of problems?

    Hi,
    generally, SCAN can be used for 10g databases and you discovered the first half: for 10g databases you will have to modify the REMOTE_LISTENER entry for each 10g database instance to point to the SCAN listeners (as opposed to pointing to the remote local listeners, which is the default in 10g). You could even have the databases registers themselves with SCAN and the remote listeners, if you wanted to... It's more or less a matter of configuration. But for simplification reasons, I will stick to the case where you have your 10g databases register with the SCAN listeners only.
    Now the other half is the client and the client configuration. An 11g Rel. 2 client configured for RAC would have a TNSNAMES entry that has only one address line for the RAC databases. The host entry in this one address line should point to the SCAN (the SCAN name is ideally resolved in DNS). A 10g client configured for RAC would have as many address lines in the TNSNAMES as you have nodes in the cluster.
    The 10g client SCAN configuration would then be in the middle so to speak: You would have 3 address lines in your TNSNAMES, in which each host entry would resolve to one SCAN address (I assume you will use the recommended default of 3 SCAN IPs). If you choose, you can have a name resolution for each of your SCAN IPs, but this would not be required. Now, why would you do it this way? Because this configuration will always work and does not make you dependent on certain functionality that your DNS server may or may not offer.
    For the remaining questions: SCAN is a DNS entry resolving one name to more than one (typically 3) IP addresses. OID is short for Oracle Internet Directory, which is a complete LDAP server. And you are right that there is no document how to configure 10g clients for SCAN from Oracle yet. However, there is a quite good document on SCAN on otn.oracle.com/rac, but I am sure you are aware of it already.
    Hope that helps. Thanks,
    Markus

Maybe you are looking for

  • VL10B err

    Hello all, In STO PO is created. But when del. is being created by VL10B, aftr entering PO no. & pressing F8, no line item is coming on the scr: u201CActivities Due for Shipping u201CPurchase orders, fast displayu201D. Why- can any body tell? Rgds.

  • ClassCastException in doFilter()

              Hi,           I added a security filter in front of Weblogic 8.1 WebServiceServlet and at the           end of my filter, I passed a customized HttpServletRequestwrapper instance to           the doFilter(req, resp) call. I am getting a Cla

  • ActionScript in Main Timeline

    On the first frame of the main timeline I have the following script, but it does not work. Can anyone tell me why? The fla file is at http://www.rickcornett.com/drop.down.fla stop(); who_btn.onRelease = function () { _root.gotoAndStop("advertising");

  • Safari can't find server

    I'm on a imac running OSX 10.3.9. I can't open a specific web page I need for work. I believe the problem started after installing the lasted update. When I try to connect to "aphotoarts.com" it get a message -safari can't find the server. I've reset

  • Display-Render OFF. How to?

    Hi, Simple question: How can I stop motion to render/give me a preview...? Just so that I can tune the parameters without it to render a preview... Pfiiiuuu... So annoying actually, this will of Apple to give u a preview of everything all the time...