Calling BO(Business Objects API ) from my J2EE Application

We have an application which contains a module that handles
User Creation and Maintenance.
Right now we have New and Authorize screens.
Basically these users can access reports in BO.
But this user creation in BO(Bussiness Objects) is done manually in BO.
Now I need to automate this user creation in BO from my UserMaintenance Module.
BO has exposed an API thru which we can call functions to create an User in BO.
My problem is where to call this API from ?We call a stored procedure for authorizing a new user in UserMaintenace Module.
We use Struts Framework.
Action class--->ServiceClass-----> DAOClass
In this DAO class we call this stored procedure to authorize the user creation.
My question is where to call this API from .
That is ,it should be called from DAO or ACtion class or Service class.
How to call an external API and what are the issues that are generally involved in calling an external API.
Fortunately both my weblogic and BO servers reside on the same unix server.
While calling an API should I have to take care about Portnumbers,external machine location i.e host address,
How to handle database connection.
Can someone throw an answer to these questions.
Thanks in advance

As I understand, your user management is through database, so when a user is created in your application, the parameters pass through the Action Handler -> service class-> DAO. So a better way would be write an additional class with the user management implementation of BO with a constructor or a method which would take the required user creation parameters and call it in the service class just under the user creation method of your DAO.
As the user in your system passes some information from the front end, the same can be used to create user in BO.

Similar Messages

  • Call 3rd party web service from OAS J2ee application.

    Hi everyone,
    I have the following problem. I am using Oracle Application Server 10g (version 10.1.2.0.2).
    I have deployed a J2EE web service to this App Server and from within this service I call a 3rd party Web Service (.NET) to a remote system. It works fine.
    However when the remote server for some reason restarts my web service noway can find the remote web service. I get a connection timeout exception to my logs.
    With a standalone client that I have to the same machine where the Oracle Application Server is installed I can call directly the 3rd party web service with no problems at any time so I am sure that there is no connection problem.
    If I restart the Oracle Application server then the J2EE web service finds the remote web service again.
    This means that whenever the remote server falls and recovers I will need to restart my Oracle Application Server as well, to let my web service find the remote web service. Crazy isn't it?
    Does anyone knows what happens??
    Thanks

    All depends on the service. You can not just access a service. You need things like if the data is JSONP or if they have instructions or keys etc. You need to just follow the instructions the service will offer on how to connect to it.

  • Call a remote Java API from PL/SQL

    Hi
    I want to call a remote Java API from my PL/SQL. Can someone please provide me the steps to do this?
    Thanks in advance
    -G

    Hello
    thanks for the link. But is not telling me what I want.
    I dont have java in my computer. I will be supplied with a java API name which I have to call by connecting to remote server. I will be have the username and password to connect and call the remote API. I need to get the return value from the remote Java API in my PL/SQL. I hope I have explained the issue clearly.
    Thanks again.
    -G

  • Can i call portal service from a j2ee application?

    Hi Experts,
    Can i call portal service from a j2ee application?
    If yes then how?
    If no then is there any other way to achieve the same?
    I m reffering this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/content.htm
    but not getting any help
    Please help me out.

    Hi,
    Can you check this link?
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/content.htm
    Regards
    Srinivasan T

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

  • How to directly call business object class from backing bean class

    I woul like to call business object class directly from the backing bean class and implement methods in BO. If possible can anyone give an example code.
    Thanks in advance

    Which problems are you occurring then? I really don't see problems. You're just free to access and invoke them.

  • Calling Business objects Methods from ABAP program

    Hi All,
    Can anyone please tell me the procedure to call methods of business object(Ex: BKPF) from an ABAP program. My requirement is to check the existence of a object key by using the method EXISTENCE CHECK from BKPF. Please help

    Here is an example from the SAP documentation.
    [http://help.sap.com/saphelp_nw70ehp2/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/content.htm]
    Cheers
    Graham Robbo

  • Business Graphics API in WEBAS J2EE

    Hi,
    i have a business graphic integrated into my webdynpro application. I checked the api documentation for business graphics and found out, how to change the type of the business graphic and the number of dimensions programmatically.
    On the API, i cannot find out any further possibilities of modifing the chart programmatically. I wonder about this, because the business graphic UI - element in NetWeaver Developer studio provides much more configuration possibilities on charts.
    For example, i would like to use the averagre functions or adapt the number of labels on the chart axis. But all dynamically.
    Has anyone experience, with such advanced business graphics features and nows if it is somehow possible to get to theses features by using the NetWeaver API?
    Thank you very much in advance.
    Regards
    Christoph

    As I understand, your user management is through database, so when a user is created in your application, the parameters pass through the Action Handler -> service class-> DAO. So a better way would be write an additional class with the user management implementation of BO with a constructor or a method which would take the required user creation parameters and call it in the service class just under the user creation method of your DAO.
    As the user in your system passes some information from the front end, the same can be used to create user in BO.

  • Invocking Business Objects Explorer from ABAP

    hello all,
    Is there any class available in ABAP which can be used to invoke BOE from ABAP so that we can pass the data in our internal tables to it and display it visually using business objects explorer.
    Is there any other such way in which the data in internal tables can be displayed in form of graphs to the user in ABAP
    Warm Regards,
    Naveen M

    Check if this FM is what u r looking for : SWO_TREE_GET_BUSINESS_OBJECTS

  • Accessing BIA through Business Objects - read from Query or InfoCube

    Hi All,
    I've a BObj/BIA question, some similar threads have been posted....
    With a Business Objects front-end, I understand that BIA can be used to access Indexed InfoCube data, and reduce the data manager portion of the overall runtime.
    My question relates to the options of a)Business Objects reading data defined in Queries, or b)BO reading the data from the InfoCubes.
    So my question is:
    a) Is there any difference/benefit in using one option over the other? (queries Vs InfoCubes directly)
    b) Will both methods access the required data through the BIA if it (the data) is available there and indexed?
    Thanks for the help,
    Mk.

    Hello Michael,
    both methods will use BIA. We recommend to use queries since they typically limit the selection criteria through variables and give you the possibility to use restricted and calculated key figures. With direct InfoCube access you run the risk that users try to read the complete InfoCube.
    Regards,
    Marc
    SAP NetWeaver RIG

  • To make a call to a fixed number from a j2me application

    hi all,
    i am working on a mobile application. i want to have an option for the user to make a call to a fixed number by pressing the call button from within the application. as far i understand we can use canvas to detect a key press and the platformRequest() method of midlet to make a call... but what i use is in my application are all forms. by using forms is my requirement possible? or if i need to use canvas alone, what can i do if i need to have an input mode like a text box also.please help how to achieve this....

    I also dont know how to get keypress() in Form. but see UIDemo in WTK22/apps this might help u.
    u know how to call by directly entering the cell no.,
    platformRequest("tel:+919960120030");
    if u want an input mode like TextBox then,
    protected void startApp() throws MIDletStateChangeException
              d=Display.getDisplay(this);
              call=new Command("Call",Command.SCREEN,2);
              exit=new Command("Exit",Command.SCREEN,1);
              tx=new TextField("Enter the phone no","",20,TextField.PHONENUMBER);
              f=new Form("To call");
              f.addCommand(call);
              f.addCommand(exit);
              f.append(tx);
              f.setCommandListener(this);
              d.setCurrent(f);
    get the no. in TextBox using 'String no = tx.getString();'
    & use 'platformRequest(no);
    I think this will help u..

  • Using Web Dynpro WDUrlGenerator from within J2EE Application deployed on NW

    I have two applications deployed on a NetWeaver Application Server 2004s.
    1. A Web Dynpro application.
    2. A J2EE Application
    What I want to do is to be able to build a url to the Web Dynpro application from within the J2EE application. Obviously the problem is using Web Dynpro classes within the J2EE application.
    So I edited the Java Build Path of the J2EE application to include the werbdynproservices.jar file and exception.jar files by extending ECLIPSE_HOME variable in the libraries section. I also checked them in Order and Export. I verified the built .war file and it does contain the two .jar files.
    This was sufficient to get my project build and deployed, however the servlet in my J2EE application shows NoClassDefFoundException when I run it. My guess is there's more I need to do to get the WDUrlGenerator to run in my J2EE class.
    Is this possible or is there a better way? I am trying to avoid the client having to modify a web.xml for each depployment.
    Thanks in Advance.

    This looks like what I want, but I am unable to test it.
    I found the application-j2ee-engine.xml file under the <project-root>/gen_wdp folder. I then attempted to open it with the SAP EARDD editor. It opens with the Source tab selected. If I try to click the General tab I get an error saying:
    "The source page has errors. Other pages cannot be used until these erros are corrected."
    I see nothing wrong with the XML document. It's source is here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application-j2ee-engine>
        <provider-name>local</provider-name> 
        <modules-additional>
        <module>
          <entry-name>EVENTS_WorkflowNotification.wda</entry-name>
          <container-type>webdynpro</container-type>
        </module>
      </modules-additional>
    </application-j2ee-engine>
    When I deploy the application, everything works fine. I was going to edit the XML document by hand, but of course there is no DTD listed so I don't know what's supposed to go in there without the Editor doing it for me.
    Getting closer. Thanks so much.

  • Calling a java loaded API from PL/SQL

    HI,
    I have a java program loaded in the Database.
    For sake of clarity I am posting the java Program also.
    package mypackage1;
    public class WriteClob extends CLOB
    public static void main(String[] args) {
    Connection conn = null;
    String url = null;
    String user = null;
    String password = null;
    Properties props = new Properties();
    String fileName = null;
    String xml_test ="KINGSTON";
    StringBuffer s_xml = new StringBuffer();
    // PreparedStatement ps = null;
    OraclePreparedStatement ps=null;
    int ret_int=0;
    props.put("user", "apps" );
    props.put("password", "apps");
    long len=0;
    int temp;
    ResultSet rs = null;
    SimpleDateFormat fSDateFormat = null;
    props.put("SetBigStringTryClob", "true");
    long first=System.currentTimeMillis();
    url = "jdbc:oracle:thin:@ap619sdb:4115:owf12dev";
    user = "apps";
    password = "apps";
    try
    DriverManager.registerDriver(new OracleDriver()); // Get the database connection
    conn = DriverManager.getConnection( url, props );
    long second=System.currentTimeMillis();
    System.out.println("Time between conn. "+(second-first));
    first=System.currentTimeMillis();
    for (int i =0;i<1000;i++){
    s_xml.append(xml_test);
    second=System.currentTimeMillis();
    System.out.println("Time between loop "+(second-first));
    first=System.currentTimeMillis();
    ps =(OraclePreparedStatement) conn.prepareStatement("insert into xml_clob_temp1 values(:1)");
    ps.setString(1,s_xml.toString());
    ps.executeUpdate();
    second=System.currentTimeMillis();
    System.out.println("Time between loop "+(second-first));
    } catch(SQLException sqlexp){ sqlexp.printStackTrace(); }
    Now i am trying to create a procedure to call this Java API.
    create or replace package load_perf as
    procedure WriteClob ;
    end;
    create or replace package body load_perf as
    procedure WriteClob
    is
    language java name 'mypackage1.WriteClob.main(java.lang.String)';
    end;
    I have tried debugging this a lot and am not able to overcome this error while creating the procedure.
    LINE/COL ERROR
    3/1 PL/SQL: Item ignored
    5/15 PLS-00311: the declaration of
    "mypackage1.WriteClob.main(java.lang.String)" is incomplete or
    malformed
    I have earlier created Java APIs which have returned some value and have been able to load them in the DB and call through a PL/SQL function wrapper.
    But I am unable to create a procedure for this.
    I have tried all sorts of debugging but always am getting error around this.
    Can someone Please take a look at this Pronblem.
    Thanks In Advance,
    Gaurav

    A proper designed application in the database tier is far more scalable and performs better than using a separate middle tier for the application.
    This should be self evident.
    A middle tier requires more moving parts between the application and data. There now sits a network pipe between application and data. There are more software layers that slows down the interaction of the application with the data - more stuff that can go wrong. More stuff that needs to be maintained and configured and secured.
    What's more, the database tier is a lot more scalable than the middle tier. Oracle Real Application Clusters. Oracle Parallel Processing. Oracle Shared Server. Etc.
    These are robust and mature technologies.
    One major fact that seems to be missed by so-called IS architects favouring a middle tier is that the middle tier cannot make a single database query or transaction go faster.
    Scaling the middle tier is done by throwing more hardware at it. But not a single additional mid-tier h/w platform will make the database tier any faster. Will make the database tier scale.
    Then there is also the issue of costs. A middle tier requires additional hardware. It requires support and maintenance agreements with the vendors. It requires middle tier software to be purchased. It requires a new set of skills to do middle tier development. It deals with different technology and different programming languages.
    Why? How can this approach be sensible when:
    - Oracle scales exceedingly well (and this scalability is not dependent on more h/w purchasing)
    - Oracle deals with a single programming language (PL/SQL)
    - Oracle supports high availability
    - Oracle supports redudancy
    - Oracle supports the complete application tier inside the database
    If you have problems now leveraging Oracle (as an application tier), then you will have more problems when doing it a middle layer. Why?
    Because the lack of experience/skill/knowledge required to make Oracle work for you, is not now suddenly negated and not needed when moving the application tier to Java.

  • Deploying a third party API in a J2EE application.

    Hi there
    I have a small J2EE applicaion made up of EJBs, servlets and JSPs
    packaged and deployed as an EAR file in WebLogic 6.1.
    I'd like to make use of a third-party API (that is packaged as a JAR
    file) from the servlet and EJB components within the application, but
    am a little confused as to where to place the JAR file.
    I've tried placing it in the WEB-INF/lib directory of the WAR file,
    the servlets found the library successfully but the EJB components
    threw ClassNotFoundExceptions.
    I've tried placing it in the EAR file at the same level as the WAR and
    EJB JAR file, ie:
    App.EAR
    /application.xml
    /EJB.JAR
    /WEB.WAR
    /LIB.JAR
    but then the servlets were unable to find it.
    Finally, I tried placing one copy in the WEB-INF\lib and one copy as
    described above in the EAR file, but still - the EJBs were unable to
    find the library.
    Unfortunately, the API needs to be configured on a per-application
    basis, so placing a reference to the JAR file in the CLASSPATH when
    starting WebLogic is not an option.
    Any one encountered or solved this kind of problem before ?
    Kind regards
    Eea

    Hi Eea,
    There are many articles in the Internet talking about
    packaging of j2ee compenents, for example:
    http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
    And, you may try to put your 3rd party API into weblogic
    classpath in your startserver command file...
    Regards,
    Slava Imeshev
    "Eea" <[email protected]> wrote in message
    news:[email protected]..
    Hi there
    I have a small J2EE applicaion made up of EJBs, servlets and JSPs
    packaged and deployed as an EAR file in WebLogic 6.1.
    I'd like to make use of a third-party API (that is packaged as a JAR
    file) from the servlet and EJB components within the application, but
    am a little confused as to where to place the JAR file.
    I've tried placing it in the WEB-INF/lib directory of the WAR file,
    the servlets found the library successfully but the EJB components
    threw ClassNotFoundExceptions.
    I've tried placing it in the EAR file at the same level as the WAR and
    EJB JAR file, ie:
    App.EAR
    /application.xml
    /EJB.JAR
    /WEB.WAR
    /LIB.JAR
    but then the servlets were unable to find it.
    Finally, I tried placing one copy in the WEB-INF\lib and one copy as
    described above in the EAR file, but still - the EJBs were unable to
    find the library.
    Unfortunately, the API needs to be configured on a per-application
    basis, so placing a reference to the JAR file in the CLASSPATH when
    starting WebLogic is not an option.
    Any one encountered or solved this kind of problem before ?
    Kind regards
    Eea

  • Calling a created Java file from an AIR application

    I've got a guy helping me out who is creating a Java file that outputs an F1 keypress to the operating system/desktop (which Flex alone can't do.
    My problem is I need to know how I can call/activate this file from within an AIR application. I want my app to be ready for when he has created it for me but I've never used Flex to call an application so I would not know what classes need to be called or if any script would be required.
    In the following simple code lets say if the Java file itself was called keypress.java (or whatever file extension a java file has) what code would need to be added in, including imported classes, to make the click of the button activate this java file?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Button id="KeypressButton" label="Button" horizontalCenter="0" verticalCenter="0" click=""/>
    </mx:WindowedApplication>

    I think one solution is to use a Java proxy to call the Web services.
    In the Java proxy you can have a method that accepts the user/pass and sets them correctly for the Web service.
    Then you expose that Java proxy as a data control (right click, create data control) - and then create a page that invokes that method.
    (For the basics of working with a POJO data control see: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html )

Maybe you are looking for

  • ITUNES WON'T OPEN!!!   PLEASE HELP ME I'M GOING INSANE!!

    I have a dell computer.. I have Windows XP I got itunes wiht a new ipod mini in the fall. everything was going great, I even upgraded to the new itunes and everything was fine until about a month ago when it just quit on me. when I try to open itunes

  • 10.1.3.2 and Database access

    In version 5.x, you could bring data into MS Word directly from the database. Is this still an option in 10.1.3.? If not, what is the recommended approach. Do I login into the web tool, build the report and then export the xml? Thanks.

  • Can't update or remove iTunes

    I've been trying to update iTunes for six months on my XP 32bit machine. I always get the same errors. The installer tells me "The feature you are trying to use is on a network resource that is not available. I run diagnostic and it tells me that I a

  • Software update instructions for Nokia Asha 501

    Hey, software update instructions for Asha 501 can be found from here: http://www.nokia.com/global/support/software-update/new-nokia-asha-software-update By default your phone is set to automatically check for updates every 8 days and you will be not

  • If you know C#

    Hi, Sorry to be a pain, just wondered if someone could help me please. Could someone please convert this C# code to java please? private Region GetRegion(Bitmap _img, Color color)             Color _matchColor = Color.FromArgb(color.R, color.G, color