How to invoke a bean in WLS from a servlet in JWS

          Hi,
          I have an application where in i am invoking an EJB in WLS from a servlet in JWS.Could any one give me the correct steps to approach this problem.Till now i was using WLS as webserver itself.can i use the same t3 protocol in my client servlet in JWS.I can't use apache webserver b'cos ,my application is to run in windows platform.
          Thanks in advance,
          Ramasubramanian
          

hi there,,
well the same problem exists with my code also, NS fails to call the function from java applet... if u get the answer please mail me on [email protected]

Similar Messages

  • How to invoke a OSB Proxy Service from a Servlet??

    Hi!!
    I'm a begginer in OSB, and right now I have a OSB configuration in production mode. So, using the console test it's very easy to test (doh) my configuration. But now, I have to make a stress test and after read a lot of documentation I did'nt found the way to do that. So I'm trying to do it by using a Servlet, a doPost method in especific, but after a lot of time I can't invoke the proxy service.
    What is the right way to use a proxy service in production mode??
    How can I call it from my servlet??
    How can I send an xml (or any other object, file, text...) as a Request??
    Help please, thank you...
    Edited by: user12116998 on 18-mar-2010 12:40

    If you have your proxy service published as http/soap, then I recommend you to use SoapUI to test it. It can help you with stress test too.

  • How to populate form bean (Action form) from Action  (Struts)

    Hello to all..
    I have a problem populating a from bean in struts from Action class...
    What I would like is ..
    1. how can I populate a formbean from Action so when a page (JSP) with tags will be displayed some tags will be set and some no (depends on data from database)..
    example...
    look at the picture...
    http://freeweb.siol.net/peterv6i/ax1.jsp
    I have a AO2.jsp page linked to action2 and also i have a formbean with set/get methods...
    nex step.. when I call action2 I' retrive datas from my database and in Action class I would like to populate formbean which is from page AO3 (which will be displayed)..
    Is this possible? here is my code but work only for 1 user.. if there are 2 or more users on page I get internal server error (Exception)..
    this is my Action class
    public class Action2 extends Action
    public[b] ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    System.out.println("Action2");
    session = request.getSession();
    if (session.isNew()) {
    response.sendRedirect("AO2.jsp");
    AO3formbean frm = new AO3formbean(); <-- this is formbean from page AO3.jsp which I like to populate
    frm.setName("xxxxxx");
    frm.setSurname("ekekelek");
    session.setAttribute("AO3formbean", frm); <-- here I put a formbean in session
    return mapping.findForward("success");
    then the AO3.jsp page will be called which use a AO3formbean... and here problems come... If only one user use the application all is ok.. but when two or more users use the same form with different session the page will not work well.. sometimes i get exception, sometimes white page.. sometimes nonsense datas are displayed..
    Anybody know if is possibile to populate a formbean and store it in session or I must change whole code?
    for example...
    In my form i must enter a car assicurance policy number... (page AO2.jsp)..
    then in the action form I must connect to my database and retrive information from table and populate bean which is also a formbean on the page AO3 which will be desplayed.. (if I'am doing something wrong please let me know the right way)
    best regards

    http://freeweb.siol.net/peterv6i/ax1.jpg

  • How to invoke a method in JApplet from javascript.

    We want to invoke a method in JApplet from javascript.
    with the help Java Plug-in HTML Converter Version 1.3, we have generated OBJECT/EMBED tag for
    the following applet tag.
    <APPLET CODE = "SimpleApplet" WIDTH = 200 HEIGHT = 300 NAME = "simpleApplet"
    MAYSCRIPT = true>
    <PARAM NAME = "p1" VALUE = "v1">
    </APPLET>
    it is given the following code
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.3 -->
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 200 HEIGHT = 300 NAME = "simpleApplet"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = "SimpleApplet" >
    <PARAM NAME = NAME VALUE = "simpleApplet" >
    <PARAM NAME = MAYSCRIPT VALUE = true >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="false">
    <PARAM NAME = "p1" VALUE = "v1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" CODE = "SimpleApplet" NAME =
    "simpleApplet" WIDTH = 200 HEIGHT = 300 MAYSCRIPT = true p1 = "v1" scriptable=false
    pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "SimpleApplet" WIDTH = 200 HEIGHT = 300 NAME = "simpleApplet"
    MAYSCRIPT = true>
    <PARAM NAME = "p1" VALUE = "v1">
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->
    But, even after trying to invoke method in the JApplet from javascript, it is not being invoked in
    Netscape. it is being invoked from
    IE after changing the scriptable = true. Is there any such parameter to change, to invoke the
    method in JApplet from javascript?
    can anybody give any suggestion?

    hi there,,
    well the same problem exists with my code also, NS fails to call the function from java applet... if u get the answer please mail me on [email protected]

  • How to insert data into database table from a servlet? Help please.

    From a servlet I want to insert a message with some servlet parameters into an oracle database table by writing 'insert into tablename'. How shall I write the sql statement?

    simple suppose u wanned to insert user name and password into table user_info then this is a simple example .....
    Best Regds
    bondzoro
    [email protected]
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class tester extends HttpServlet {
    Connection con = null;
    public void init(ServletConfig sc){
    super.int(sc);
    Class.forName("oracle.jdbc.driver.OracleDriver");
    public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOE
    try {
    con=DriverManager.getConnection("jdbc:oracle:thin:@database_URL:1521:ORA8","username","pa
    String user = req.getParameter("username");
    String pass = req.getParameter("pass");
    PreparedStatement pst = con.prepareStatement("insert into user_info values(?,?)");
    pst.setString(1,user);
    pst.setString(2,pass);
    pst.executeQuery();
    pst.close();
    con.close();
    }catch(Exception _e){
    _e.printStackTrace(System.err);
    ~

  • The client is a pure-Java client, how to invoke session bean in oc4j server

    I WOULD LIKE TO INVOKE MY SESSION BEAN FROM MY STRUT WEB PROJECT AS A PURE JAVA CLIENT . I SETUP THE JNDI INITIAL CONTEXT PROPERTY BUT I HAVE NO IDEA TO WHERE I SHALL PUT MY application-client.xml and orion-application-client.xml. MY APPLICATION THROW EXCEPTION
    NamingException: StoreEJB not found
    IF YOU ANY EXAMPLE PLEASE SEND ME
    THIS IS MY CLIENT PROGRAME
    package ejbs;
    import java.io.*;
    import javax.ejb.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.naming.*;
    import javax.rmi.*;
    import java.rmi.*;
    import java.util.*;
    public class StrutInt {
         * @param args
         public static void main(String[] args) {
              //System.out.print("The application Checkup");
              try
                   Hashtable env = new Hashtable();
                   env.put (Context.INITIAL_CONTEXT_FACTORY,
                   "oracle.j2ee.naming.ApplicationClientInitialContextFactory");
                   env.put (Context.SECURITY_PRINCIPAL, "oc4jadmin");
                   env.put (Context.SECURITY_CREDENTIALS, "admin");
                   //env.put (Context.PROVIDER_URL, "http://localhost:8888");
                   env.put (Context.PROVIDER_URL, "ormi://localhost:23791/EjbIntegrationEAR");
                   env.put ("dedicated.rmicontext", "true"); // for 9.0.2.1 and above
                   Context context = new InitialContext (env);
                   System.out.println("work up to this");
              Object homeObject =
    context.lookup("StoreEJB");
              System.out.print("Hi Integration");
         StoreHome storeHome = (StoreHome) PortableRemoteObject
                   .narrow(homeObject, StoreHome.class);
         Store exa= storeHome.create();
              String s =exa.foo("The foul guy");
              System.out.print(s);
         catch(NamingException e1) {
         System.err.println("NamingException: " + e1.getMessage());
         catch(RemoteException e2) {
         System.err.println("RemoteException: " + e2.getMessage());
         catch(CreateException e3) {
         System.err.println("FinderException: " + e3.getMessage());
         catch(Exception e4) {
         System.err.println("FinderException: " + e4.getMessage());
         }

    Create the object of InitialContest class. Then pass in hashTable put WLContextFactory.
    then lookup to the sessionJNDI. then call the create method u will get the remote object, from the remote object u can call to the business method

  • How to invoke Web Service in JAVA from CRM 5.0

    Hi.
    I created a Web Service in JAVA. Now I want to invoke it from CRM 5.0
    in ABAP. How to do it? Could someone give me detail step in step?
    Thanks in advance!

    check this weblog by Thomas Jung
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Raja

  • How to invoke BPM object instance variable from interactive activity?

    I have a screenflow with an automatic activity "A" followed by an interactive activity "B". "B" calls a BPM object "X" and uses a JSP presentation to show its attributes. Is there a way to use another BPM object, say type "Y", create an instance variable of that type inside "A", and get its attributes values from the JSP page associated to "B"?
    Edited by: user6473912 on 20/07/2010 03:37 PM

    Try this. It assumes you have:
    <li> a user named "auto"
    <li> a project variable named "customerType"
    <li> an instance variable named "orderAmount" that is a decimal
    <li> an instance variable named "order" that is a BPM Object that has attributes named "customerName" and "amount"
    ps as ProcessService
    xmlObject as Fuego.Xml.XMLObject
    do 
      connectTo ps
          using url = Fuego.Server.directoryURL,
          user = "auto",
          password = "auto"
      instF as InstanceFilter
      create(instF, processService : ps)
      addAttributeTo(instF, variable : "customerType", comparator : IS, value : "Gold")
      instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS)
      for each inst in getInstancesByFilter(ps, filter : instF) do
        // here's how to get the value inside a primitive instance variable
        orderAmtObj as Object = getVar(inst, var : "orderAmount")
        // here's how to get the value of attributes inside a complex BPM Object instance variable
        //    - in this case this is an "order" object with two attributes (customerName and amount)
        orderObj as Object = (getVar(inst, var : "order"))
        xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
        logMessage "The value of the order object's customer name is: " +
               selectString(xmlObject, xpath : "customerName")
        logMessage "The value of the order object's order amount is: " +
               selectNumber(xmlObject, xpath : "amount")
        // here's a rather uninspired way to retrieve who the participant is that was assigned the instance
        logMessage "The participant assigned to this instance is: " + inst.participantId
      end
    on exit
      disconnectFrom ps
    endDan

  • How to invoke a non-static member from a static reference?

    Hello JDC
    My program consist of several classes. I find it more readable,logic and useful to declare all the methods in all the classes �static� and get access by Class.member().
    The problem showed up when I must use a java biuld-in method( as Component.remove ) within my static method , then I receive compile error.
    The first alternative is to create the class instance inside the static my static method , the second is to use interface which declare its member as static final. The two ways doesn�t fit to my needs , do anyone know another way?
    Thanks in advance
    Shay

    Hi
    im sorry but im not sure what you mean by "OO desgin". i'll appreciate if you'll link me some sources about this , its sound very interesting .
    It may be that you are moving to Java from COBOL or >FOTRAN or something and you are not comfortable with >OO philosophy
    For example, you can never have two instances of >the same class have different properties. What's the >point of having classes at all if you are going to do it >this way? Java is my first language , you sound very unhappy about the way i ignore the OOP , i think you right in some terms but i need to exam my thinking again and think how can i implements the same ideas in a form of OOP. whenever all those information will come i'll be able to response.
    thanks for your reply
    Shay Gaghe

  • ***How to Invoke backing bean method by DOUBLE-CLICK the table ROW!!***

    Hi,
    How can I collect the selected row value & navigate to next page by DOUBLE-CLICK the result table row.
    My application got searchResult page where I am displaying the list of user in result table. Then selecting any one row and navigating to master details page by clicking the continue button. Button Action method will collect the selected row userID which I am forwarding to the masterDetails page.
    Same functionality I want to do by double click the row instead of clicking the button!!. I want to trigger the backing bean method if the user double click the row basically. Please help me in this how to do this?
    Current button action method:
    *public String userSelected() {*
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    return "continue";
    *}*

    Puthanampatti ,
    Yes, I am using the same. Below is my code. I am trying to get the object of the MAIN jspx page region (where I am displaying the fragments) and refresh the one. But cant able to get the object for the region it is returning null. without refresh seems the navigation wont work.
    public void doDbClick(ClientEvent clientEvent) {
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    try{
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    NavigationHandler nh = facesCtx.getApplication().getNavigationHandler();
    nh.handleNavigation(facesCtx, "", "continue");
    System.out.println("region obj -->" +facesCtx.getViewRoot().findComponent("advse1"));
    // Refresh the current region; advse1 is the id of the region component inside jspx page
    AdfFacesContext.getCurrentInstance().addPartialTarget(facesCtx.getViewRoot().findComponent("advse1"));
    catch(Exception e){
    System.out.println("Error is: " +e);
    Is this correct coding to get the region object?? actually the "result table" and "Master details" are 2 different fragments which are linked with task-flow and the task flow is part of main jspx page as a region. I am using that region ID to get the obj, but cant able to get so....!!! any idea

  • How to invoke BPEL/OwSM gateway endpoint from internet application

    Hello gurus,
    I want to invoke my bpel proces from an application which is deployed over internet.
    Is there any setup required that bpel process endpoint to availble over internet.please throw some light.
    Thanks,
    Narasimha.

    Hello gurus,
    I want to invoke my bpel proces from an application which is deployed over internet.
    Is there any setup required that bpel process endpoint to availble over internet.please throw some light.
    Thanks,
    Narasimha.

  • How to Invoke DAC (Datawarehouse Admin Console) from Jobtrac(Scheduler)

    Could some one let me know the process involved in invoking DAC from Jobtrac. What are the parameters that should be passed from the Jobtrac

    I am not familiar with Jobtrac. You can run the DAC execution plan via command line.
    dacCmdLine StartETL <plan name>
    You can take a look at the file, dacCmdLine, which is a window bat file. Basically, it invoke the Java program com.siebel.etl.net.DACCommandLine.
    If the scheduler can run the Java program, you should be able to invoke DAC execute plan from it.
    Hope this helps.

  • How to invoke more then one service from single button click

    Hi,
    I have created web service data control which contains more then one services.
    Now my problem is when I press button, it should take data from my input component and needs to set into multiple services and response of those services should be display to my binding component on the screen.
    Regards,
    DevangD

    See : 9.11 Overriding Built-in Framework Methods
    here: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcservices.htm#sm0222
    You can have the code that was generated modified to invoke an additional action - you'll need to add the binding to that action to your page.

  • How to invoking secured service(HTTPS/SSL)from bpel Process

    Hi all,
    i am very new to fusion middle ware. i used jdeveloper 10.1.3.3 and soa-server 10.1.3.1.i need to pass secured wsdl(HTTPS/SSL) from one bpel Process to other. Let me know any certificates are required to do this?
    I am looking forward to getting any advice from our forum.
    thanks & Reagards,
    Hari.

    First of all make sure your jdeveloper and soa suite versions match otherwise you will get unpredictable results. I suggest that you upgrade SOA Suite to 10.1.3.4 as this is the latest version.
    That aside I'm assuming that the bpel process are on the same instance. If this is the case Yes you do need certificates as you need to implement SSL on your SOA Installation. If you use a common certificate such as verisign then the process is simpler as you don't need to worry about the public key as they are standard with Oracle as they are with your browser. If you want to sign your own certificate then you will need to add your public key.
    If your server is already SSL and it is verisign then you should have no issues you will be able to connect.
    cheers
    James

  • How to invoke the .bat(batch file ) from the java program

    i want to run some commands when i run one java program.
    I wrote those dos commands on the batch file and i want to include the bat file in the java program so that i can execute the bat file when i run the java program.
    tell me the way that i can run my bat file inside the java program.

    i tried this :
    a .bat file named test.bat, with this code : copy test.bat test2.bat
    a java class, Test.class, in the same directory
    public class Test {
         public static void main(String[] args) {
              try {           
                   Runtime rt = Runtime.getRuntime();
                   Process proc = rt.exec("cmd /c test.bat");
                   proc.waitFor();
                   int exitVal = proc.exitValue();
                   System.out.println("Process exitValue: " + exitVal);
              catch (Throwable t) {
                   t.printStackTrace();
    }

Maybe you are looking for

  • I have updated to IOS7 in Iphone 5-Call Summary is not been displayed

    Hi Guys, Few days back,I have updated my IOS from 6 to IOS7 in Iphone 5.whenever I send a message or cut the call,Call summary details are not been displayed . In past I use to get the notification of call cost now I cant able to view the balance. Ca

  • Photo Uploading Problem in HR

    Hi can anybodybtell after doing every necessary settings in  employee photo upload "http signer 404 error is coming" & photo is not uploading,What is the reason behind it?

  • Can automator use the content of a cell ( in excel) to save a file ?

    Join Date: Mar 2009 Automator & excel Hello there, I'm not so good at automator and I need some help. I have a lot of excelsheet to make. Each sheet is about a customer ans should go to a specific folder. As i am naming the folders by date followed b

  • Using global variable

    Hello, i am trying to store a result of a function in an array of strings declared as a global variable, but any time the fuction is called the array content become null and stores the current result in the specified location. i.e. method A(int i){ a

  • Touble adding music to slide shows

    Having real trouble adding music to slide shows. Files are MP3 where is says compresser decompressor (Codec) error CD music files are not recognised Have elements 8 but loaded a trial of elements 12 and same result Can load music in premier as a proj