How to access to Business Components deployed to Oracle 8i

Hi,
I succeded in deploying an Application Module to Oracle 8i and publishing it through JNDI.
The test wizard is also ok.
Now I obviously want to access the module from a client.
The lookup phase is successful, but what I get back is a oracle.jbo.common.remote.corba.RemoteApplicationModuleHome, and I suppose I have to invoke its create() method to get some actual Module object reference.
The proble is that the create() method wants a strange SessionInfo parameter, that seems undocumented.
Does anyone know how to solve the problem ?
Or where is the necessary documentation ?
Thanks in advance
Giuseppe Tanzi

Hello!
Sorry for the delayed response...
Here is an EJB client for a BC4J-EJB in 8i:
package tester;
import java.lang.*;
import oracle.jbo.*;
import oracle.jbo.JboContext;
import java.util.Hashtable;
import javax.naming.*;
/*This project properties should include:
JBO EJB Runtime, JBO EJB Client and User created Library .
public class BC4J_EJB_test extends Object {
static Hashtable env = new Hashtable(10);
public static void main(String[] args) {
// set up variables for environment settings
// Modify User, Password, HostName, SID and DeployedMod
String User = new String("BUD");
String Password = new String("SPUD");
String DeployedMod = new String("BC4J.BC4JModule");
String HostName = new String("jtora815.us.oracle.com");
String ConSid = new String("ORCL");
//IIOP Port MUST BE A STRING!!!!!!!!!!
String ConPort = new String("2481");
String ApplicationPath = new String("test/ejb");
String Conn = new String("jdbc racle:kprb:");
try {
// set variables in hashtable to be used as the environment
env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, User);
env.put(Context.SECURITY_CREDENTIALS, Password);
// only difference other than libraries from 8i Corba
env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_EJB);
env.put(JboContext.APPLICATION_PATH, ApplicationPath);
env.put(JboContext.HOST_NAME, HostName);
env.put(JboContext.CONNECTION_PORT, ConPort);
env.put(JboContext.ORACLE_SID, ConSid);
// setup application module variable
ApplicationModule appMod = null;
javax.naming.Context ic = new InitialContext(env);
ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(DeployedMod);
appMod = home.create();
//connect application module
appMod.getTransaction().connect(Conn);
/* At this point you have the application module connected, now do what you want
here. This example just iterates through the dept table and prints each row */
ViewObject deptVo = appMod.findViewObject("DeptView");
Row r = deptVo.first();
do{
System.out.println(r.getAttribute("Deptno")+" "+
r.getAttribute("Dname") +" "+
r.getAttribute("Loc"));
r = deptVo.next();
}while( deptVo.getCurrentRowSlot()!= deptVo.SLOT_BEYOND_LAST );
catch(Exception Oops) {
Oops.printStackTrace();
System.out.println(Oops.getMessage());
Hope this helps.
Regards,
Arun

Similar Messages

  • Business components based on Oracle views

    I am trying to create business component objects in a master-detail relationship based on Oracle views rather than on the underlying tables. The wizard does not create associations or links since the views have no foreign keys. I created the associations and links myself, but I am unable to add them to the data model. I am using the beta v5.0, but I had the same problem in v3.23. Can anyone help?
    Thanx in advance
    null

    Here are the steps I just tried with JDevi 9i Beta:
    [list]
    [*]SQLPLUS SCOTT/TIGER
    [*]CREATE VIEW DEPT_VIEW AS SELECT * FROM DEPT;
    [*]CREATE VIEW EMP_VIEW AS SELECT * FROM EMP
    [*]On my workspace: Right-mouse / New / Empty Project
    [*]On my new project: Right-mouse / New Business Components...
    [*]Next, to the connection panel
    [*]Set the connection, and next
    [*]Pick a package name and next
    [*]Tick the [x] Views checkbox, and select EMP_VIEW and DEPT_VIEW
    [*]Uncheck the "View Objects and View Links" box, since we don't want these created automatically.
    [*]Click (Finish)
    [*]In navigator, select my "DeptView" entity and edit it (the view is called "DeptViewView").
    [*]Click on the "Attributes" tab
    [*]Select "Rowid" in the attribute list
    [*]Click the (Remove) button
    [*]Select the "Attribute Settings" tab, and select the "Deptno" attribute.
    [*]Check the [x] Primary Key checkbox for "Deptno"
    [*]Click (Ok).
    [*]Repeat steps above on "EmpView" entity to remove Rowid attribute and make "Empno" attribute the primary key. (NOTE: Since views don't have constraints, we couldn't detect the primary key constraint, so we default the ROWID to be the primary key in the wizard).
    [*]In navigator, select my "DeptView" entity, and right-mouse / New Association...
    [*]Using the wizard I create a association based on the "Deptno" attribute, and with a 1 to many cardinality.
    [*]I right-mouse on "DeptView" entity and select New Default View Object... to create the "DeptViewView" view object.
    [*]I right-mouse on "EmpView" entity and select New Default View Object... to create the "EmpViewView" view object.
    [*]I right-mouse on the DeptViewView view object and select New View Link...
    [*]I create a new view link between DeptViewView and EmpViewView
    [*]On the "Source Attributes" panel, I select the "Dept2Emp" association I created above, and click the ">" to shuttle it to the selected list.
    [*]Click next and notice that by selecting the association, it automatically picked the right attributes for both sides for the view link automatically.
    [*]click next, then (Finish)
    [*]I right-mouse on my package and select New Application Module...
    [*]On the datamodel panel, I see a tree view of "Available View Objects like this:
    + Project 3
    |
    +---[-] Package3
    |
    +---[SQL] DeptViewView
    | |
    | +--[SQL] EmpViewView via MyViewLink
    |
    +---[SQL] EmpViewView[*]I select DeptViewView in the available list and click ">" to shuttle it to the selected list in my data model
    [*]In the SELECTED list, I select the DeptViewView that I just added, to make it the current view in the selected list.
    [*]Back in the available list, I select the "EmpViewView via MyViewLink" and shuttled it to the selected list as a detail of the current view in the selected list.
    [*]I click finish
    [*]I right-mouse on my AppModule and select "Test..." to build and test my appmodule.
    [*]I click (Connect) on the tester start page
    [*]In the tester, I right mouse on "MyViewLink" and select "Show".
    [list]
    After these steps, I see data correctly.
    null

  • How  to access data in AS 400 from Oracle database

    Hi
    Could you please help me on accessing data in AS 400 from Oracle database? what are the main things to do? Any private documentation or any oracle metalink note please...

    Hi
    Please find the details given below....Any body can help me on this please....
    Issue Description: The stock status report to be developed at SATN has some information that is currently calculated and stored in the Fox/pro system. A real time ODBC needs to be done to the AS/400 system to retrieve values for the respective fields. This has never been tested before as it impacts many areas.
    The DBA team need to work to establish such a relationship and a report needs to be written in Oracle to have this tested on a real time basis. Mapping needs to be developed on the Oracle side to grab the correct fields

  • How to access all Flash components?

    Hello community,
    I have a main.mxml file which contains a tabNavigator. The tabNavigator opens different modules when different tabs are clicked. Outside this tabNavigator, I have a toggle button called BiggerText.
    When I click BiggerText, I want to change the fontsize in all the datagrids in all the modules.
    protected function biggerTextToggleBtn_clickHandler(event:MouseEvent):void
         if(biggerTextToggleBtn.selected){
         s:DataGrid.setStyle("fontSize",14);
         biggerTextToggleBtn.label="Smaller Text";
    else{
         spark.components.DataGrid.AS3.setStyle("fontSize",12);
         biggerTextToggleBtn.label="BIGGER TEXT";
    Anybody has a clue how to do that?
    Bold text are possibilities I tried, which of course did not work.

    Hi,
    you can do all of what you said with JSF. ADF Faces provides drag and drop functionality (have a look at the Web Developer Guide) that allow you to move nodes within a tree. The drag and drop framework sends an event notification to the server with a reference to the changed node.You can also have context menus on a tree node to help users creating, deleting and editing a tree nodes. JavaScript isn't required at all, even if you wanted to drag and drop a row in a table on top of a tree node to create a new tree node.
    I just finished a book project in which we explained this usecase. As soon as I find the time, I'll follow up with a blog entry on this as it seems to be a common requirement. However, as mentioned, the web developer guide on OTN explains drag and drop in ADF Faces pretty well.
    However, if you choose the "Search" link above, choose JDeveloper and ADF as the product to search for and type drag and drop as the search string, then you get lots of code sample posted in the past to this forum
    Frank

  • How to access HBM Business rules

    Hello:
    I was a HFM user and just being granted "developer access". I wonder where I can see the VB script code of the consolidation business rules. From the HFM workspace, I did Start ==> Administrator ==> Calculation Manager, can not see anything. Wonder if I have enough access. Also, wonder if the business rules are residing in EPMA?
    Thanks in advance.

    There are two places where Calc Manager shows you the vbscript it generates. First, select a given rule, choose the circle icon that begins the rule, and then at the bottom of the screen you will see a "script" tab. Click on that and you can see it generate script for the one rule. Another place to view script is in the rule set view. There is a similar script option which will show the script for the entire rule set. You can do this without extracting anything.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to access contextRoot in Servlet deployed in an ear in Weblogic 81

    Hi,
    I need to access the contextRoot or webapp name from a startup servlet deployed in WebLogic. I've tried the following;
    getServletContext().getRealPath("/") return null.
    getServletContext().getServerInfo() returns Weblogic 8.1 service pack 3...
    getServletContext().getServletContextName() display the <display-name> value from my web.xml.
    What I want is the <context-root> value in the EARs application.xml.
    I tried the following JNDI lookup and the lookup failed but the error message contained the contextRoot.
    String name = (String) jndiContext.lookup("java:/comp/env/namespace");
    log.info("jndiContextlookup namespace = "+name);
    Any help would be GREATLY appreciated. This should be easy!!
    Shane

    Hi VR
    From Weblogic Admin Console, Deployments, on right side click on the link named with your EAR Application. It opens detailed page with more tabs. Click on the tab named Targets. Here select your WebService module and click on Change Targets button. Uncheck the server where it is targetted (Deployed), click on Yes. And activate the changes.
    Thanks
    Ravi Jegga

  • How to access (or configure) the web based Oracle Beehive workspaces client

    Hello,
    In the one of the Oracle Beehive online trial, there is a demo about working with workspaces using a web interface:
    https://beehive-ondemand.oracle.com/Documents.html
    I've been searching the documentation how can I access this web client on my installation, but I hadn't find the URL.
    I'm wondering if this web client is included in the 1.4 version, if so, how can I access it? Do I have to configure it or install it? How?
    Thanks for your help.
    Edited by: user3585264 on Oct 18, 2008 9:33 PM

    Hello
    this client is not provided with the 1.4.1., but it is expected with the next release (in a couple of month normally, that's what great weith beehive releases, every 2-3 month you get a lot of news !! )
    Stay tuned on MGMT - Kids, that's Oracle new anthem (or it should be :D, that song was everywhere during OOW, along with Time to Pretend)

  • How to create "Business Components Package" in the Jdeveloper ?

    Hi,
    I installed and set up "Patch 7523554 10G Jdeveloper With OA Extension ARU for R12 RUP6"
    I have ran out the test_fwktutorial.jsp and test_fwklabsolutions.jsp.
    All links work properly on these pages.
    I created HelloWorld page from "Oracle Application Framework Toolbox Tutorials".
    Its works properly too.
    Then I started to create "Search Page".
    I created "Business Component project" in the toolbox.jws.
    I was trying to perform step 2.1 "Create the BC4J Package for Client (UI) Objects".
    But I didn't find "Business Components Package" in the context menu.
    Could you give me advice how can I create package of this kind ?
    Thanks.

    I created "OA Workspace" and simultaneously with it created "Business Components Package" <yourname>.oracle.apps.ak.employee.
    After this it i necessary to creates one more "Business Components Package" <yourname>.oracle.apps.ak.schema.server
    I failed to create Package of this kind.
    In the "BC4J Tutorial" It seems to me I found similr actions.
    I suppose I may perform next step:
    Figure 6-3 http://download.oracle.com/docs/html/A97671_01/wtgbc4j.htm#BABIAIEI
    Figure 6-4 http://download.oracle.com/docs/html/A97671_01/wtgbc4j.htm#BABJIIII
    But I failed to pass these steps.
    Could you tell me, please, how to do this?
    Thanks.

  • Editing business components

    Hello guys, how can edit my business components ??
    lets say i have added a new column to the table in database and i've made a new foreign key with another table, what is the best way to update these changes to my entities and view objects ?
    am using JDev 12.c , thanks in advance ^^

    right click on a business component package and select synchronize with db. This will add the missing column and new or changes rules to the EO. The updates to the VO you have to to by yourself (e.g. add column to VO).
    And the new FK doesn't automatically result in new association or viewlink. These you have to do yourself.
    If you have not written too much code you can delete the business components and create new ones from the tables again.
    Timo

  • Business Components help

    Hi All,
    I'm trying to work with the view objects and such in JDeveloper. I think maybe I'm missing something. I can work with the simple master-detail stuff just fine, but is there any material that is more in-depth than that?
    How would i use business components to return the same results as this (no, i didn't test to see if the query works, but hopefully the syntax is good enough for folks to understand what i am trying to accomplish):
    SELECT
    A.CUST_ID, A.STORE_NUM, B.ISSUE_DESC, C.CUST_NAME, D.DESCRIPTION, E.DESCRIPTION
    FROM
    OPP_MASTER A, OPP_DETAIL B, CUSTS C, (SELECT DESCRIPTION FROM MENUS) D,
    (SELECT DESCRIPTION FROM MENUS) E
    WHERE
    B.FOREIGN_KEY = A.ID, C.ID = A.CUST_ID, D.ID = A.MAIN_CAT, E.ID = A.SUB_CAT
    Is there any material on creating more complex view objects?
    Thanks a bunch!

    Idan,
    I see some problems there with the syntax that is perhaps confusing your question for me. Let me re-phrase the query to see if it's what you mean:
    SELECT a.cust_id, a.store_num, b.issue_desc, c.cust_name,
    (select description from menus m where m.id = a.main_cat) description_main,
    (select description from menus m where m.id = a.sub_cat) description_sub
    from opp_master a, opp_detail b, custs c
    where b.foreign_key = a.id
    and c.id = a.cust_id
    Is this what you're trying to do? is the reason for the in-line views in your example to avoid outer joins between opp_master and menus?
    Perhaps you could describe what you're trying to get and we could help with the query and view object.
    Regards,
    John

  • Tutorial - Building Business Components

    I am using Oracle JDeveloper3.0 (Build 532) on Windows NT. I am trying to work through the above tutorial, but when I try to invoke the Business Components or New Entity Objects, nothing happens.
    Have not installed some components correctly ? Do I need to make any changes to the Gallery.INI file ?
    Thank you very much for your response..
    Sudarshan

    Sudarshan,
    It should never be necessary for you to edit your gallery.ini to get default installation behavior.
    Are you sure you sucessfully installed JDeveloper?
    My JDeveloper 3.1 Gallery.ini looks as pasted below. Yours should look similar.
    You may have to re-install.
    I hope this helps,
    -John
    [Gallery_Params]
    snippetStorage=E:\JD31\snippets\en
    left=241
    top=88
    width=518
    height=347
    locale=en_US
    [Gallery_Pages]
    Page1=Objects
    Page2=Business Components
    Page3=Web Objects
    Page4=Beans
    Page5=Snippets
    [Gallery_Page1]
    wizard=Application=oracle.jdeveloper.wizard.application.ApplicationWizard
    wizard=Applet=oracle.jdeveloper.wizard.applet.AppletWizard
    wizard=Frame=oracle.jdeveloper.wizard.frame.FrameBuilder
    wizard=Panel=oracle.jdeveloper.wizard.panel.PanelBuilder
    wizard=Dialog=oracle.jdeveloper.wizard.dialog.DialogBuilder
    wizard=Class=oracle.jdeveloper.wizard.cls.ClassBuilder
    wizard=Enterprise JavaBean=oracle.jdeveloper.wizard.ejb.NewEJBWizard
    wizard=CORBA Server Object=oracle.jdeveloper.wizard.corba.CORBAWizard
    wizard=SQLJ File=oracle.jdeveloper.wizard.sqlj.NewSqljBuilder
    wizard=SQL File=oracle.jdeveloper.wizard.sqlplus.NewSQLPlus
    wizard=IDL File=oracle.jdeveloper.wizard.idl.NewIdl
    snippet=Standard Menus - AWT=StandardMenu.snippet=StandardMenu.gif
    snippet=Standard Menus - JFC=SwingMenu.snippet=JFCStandardMenu.gif
    wizard=Business Components Data Form=oracle.jdeveloper.wizard.formgen.dacform.DACFormWizard
    [Gallery_Page2]
    wizard=Business Components=oracle.jbo.dt.ui.main.DtuAppAddin
    wizard=Entity Object=oracle.jbo.dt.ui.entity.EOAddin
    wizard=View Object=oracle.jbo.dt.ui.view.VOAddin
    wizard=View Link=oracle.jbo.dt.ui.viewlink.VLAddin
    wizard=Association=oracle.jbo.dt.ui.assoc.ASAddin
    wizard=Package=oracle.jbo.dt.ui.pkg.PKAddin
    wizard=Application Module=oracle.jbo.dt.ui.module.AMAddin
    wizard=Domain=oracle.jbo.dt.ui.domain.DOAddin
    [Gallery_Page3]
    wizard=HTML=borland.jbuilder.wizard.app.NewHtml
    wizard=JSP=oracle.jdeveloper.wizard.app.NewJsp
    wizard=HTTP Servlet=oracle.jdeveloper.wizard.servlet.ServletWizard
    wizard=DB Servlet=oracle.jbo.dt.ui.formgen.dbservlet.DbServlet
    wizard=Web Bean=oracle.jbo.dt.ui.wizards.webbean.WebBeanWizard
    wizard=Business Components JSP Application=oracle.jbo.dt.ui.wizards.webapp.WebAppWizard
    [Gallery_Page4]
    wizard=Bean=oracle.jdeveloper.wizard.bean.BeanBuilder
    wizard=BeanInfo=oracle.jdeveloper.wizard.bean.BeanInfoBuilder
    wizard=Customizer=oracle.jdeveloper.wizard.bean.CustomizerBuilder
    wizard=Property Editor=oracle.jdeveloper.wizard.bean.PropertyEditorWizard
    wizard=EventSet=oracle.jdeveloper.wizard.bean.EventSetWizard
    wizard=Oracle Forms PJC=oracle.jdeveloper.wizard.pjc.OracleFormsBuilder
    wizard=Enterprise JavaBean=oracle.jdeveloper.wizard.ejb.NewEJBWizard
    [Gallery_Page5]
    snippet=Example Snippet=ExampleSnippet.snippet=ExampleSnippet.gif
    snippet=Example JServer/EJB Client=ExampleJSEJBClient.snippet=ExampleEJBClient.gif
    snippet=Example OAS/EJB Client=ExampleOASEJBClient.snippet=ExampleEJBClient.gif
    snippet=Example JServer/CORBA Client=ExampleCORBAClient.snippet=ExampleCORBAClient.gif
    snippet=Example Wizard/Addin=ExampleWizard.snippet=ExampleWizard.gif
    null

  • How to deploy Business components from DEV to QA and PROD

    I developed Business components in my development database using JDEVELOPER and would like to port it to QA and then production. Because XML files have all your constraint names in there, which will be different in my QA and Prod., how do I make if work. Should I be playing with my XML files...???

    The constraint names are not used at runtime, only at design time. They would be used if you decided to forward-generate the DDL for your tables.
    Not to worry.

  • Problem to deploy to a WebService interface for ADF Business Components to Weblogic Server

    Hi,
      I'm trying to deploy a custom application ,in which i have exposed ADF Business Components through a WebService interface, to a standalone weblogic server.
    Application Module is configured with a Service Interface for ordinary ViewObjects.
    Now I want to create a EAR file of this application to deploy it on the weblogic server.
    But I got an error while deploying it.The error i am getting is shown below.
    ERROR: No Java EE modules detected in EAR archive. Deployment aborted. == (oracle.jdevimpl.deploy.ear.WeblogicAssembler)
    I have followed the steps mention in the below link :
    http://technology.amis.nl/2010/12/29/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components/
    I'm using Jdeveloper 11.1.2.4 on windows.
    Please suggest what i could be doing wrong.
    Regards,
    Himanshu

    Does the deployment profile include Java EE modules?
    Refer
    Java EE Developer: ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.Veto…

  • How to access components in a iview from program

    Hi,
        Can we access the iview components from program dynamically? I have a Table Control , i want to refresh it in my program.
        How to set Mandatory (*) mark for a label? Is there any property for that?
    Thanks,
    Sridhar

    If table is displayed in current view, it will be refreshed with most of the events(There are few exceptions) from that view. You don't need to do anything for that.
    Suppose You have one Input Fields - Inp, and Lable - Lb.
    From the label properties select "Label For" with Inp from DropDown menu. From properties of the inputfield change property "Status" to required.
    Now u would get required mandatory mark.
    Note that, selecting the status "Required" for inputfield only displays the asterisk. But it doesnt stop you from navigating to another view with out entering a value.

  • How to use an existing data model using Business Components in OEPE

    I am a beginner in ADF. I am working on a project with an existing data model that uses Business Components (EO, VO and AM). I know that OEPE does not handle the creation of BC, so if I want to modify them, I will have to do that in JDev. That's fine.
    OEPE can create pages with drag and drop like in JDev. In my eclipse ADF projects, I would like to use the existing BC, to be able to use the bindings with ADF Faces. So far I have nothing in the Data Controls tab.
    How to import the BC into the Data Controls tab?
    JDev 11.1.1.6
    WLS 10.3.6
    Eclipse Kepler

    We currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
    Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
    HTH. Thanks for your interest in OEPE.

Maybe you are looking for

  • Want to Install 10.6 on Mini built for 10.6 Server - help?

    Hi there - I'd recently bought a Mini Server running 10.6 Server Edition, and I'd like to install the regular 10.6 OS on it... but the Mini is not letting me. I keep getting the grey screen of death followed by a kernel puke every time I go to instal

  • Acrobat Standard v6 and Reader v8 conflict

    I have both Acrobat V6 and Reader v8 installed on my PC. I use the full version to create pdfs, and version 8 is used to open pdfs on web pages. For some reason, I am not able to open Acrobat Standard at all. Instead, version 8 reader opens. If I bro

  • RCA CCMS BI SETUP

    Hi, We see that the below info cube are active (not greyed) in RSA1. Still the program CCMSBI_SETUP_E2E is giving below error: HELP:Attempt to activate object CUBE:0DB6_C01M manually in transaction RSOR. ERROR:Activation of InfoCube 0DB6_C02D failed

  • ¿Cómo actualizar Adobe 9 Pro Win a Adobe 11 Pro Mac?

    Tengo Adobe 9 Pro Windows y no sé cómo puedo comprar una actualización a Adobe 11 Pro Mac. He buscado en la web como hacerlo y no lo he encontrado ¿Cómo puedo comprar una licencia de actualización?

  • Version conflict

    friends, i'm taking over an application and i'd like to know how be sure about wich version of builder i'm supposed to use since there are 10gr2 and 10gr1 versions. thanks in advance.-