Java Client and J2EE

Hello
I am new in j2ee, and have developed to an application using ejb, struts and jsp's.
Now I need to make an application in swing and nonencounter the way to be able �
to make calls from the classes of swing.
Or if tecnologia exists some with which I can replace to Struts. Any aid I am thankful to them.

Hi
I'm not sure about the design you've followed for the web based application. The easiest way to solve the problem is to create a stateless session bean as front controller then let the swing client interact with the front controller. From the front controller , controll can be diverted to different business services as per your need.
HTH
Jobinesh

Similar Messages

  • Anybody explain ABAP client and J2ee engine?

    There are client 000,001,066.
    But for J2ee Engine the client is in a different way.
    What is the relationship of User data between ABAP client and J2ee Engine?
    and tell me some inside about client copy? I have read some docs of help online, I 'd like more tech fact.

    Hello Shen,
    First ground rule: ABAP stack can support mutiple clients while JAVA stack supports only one client at one given time. In terms of user master data you can have 1:1 relationship between ABAP client and corresponding J2EE client provided there is connection between ABAP and UME which normally is there as it configured during installation. So if a user exists in client X in ABAP you can also view it in client X of J2EE.
    Regarding client copy what type of client copy are you asking about?
    Regards.
    Ruchit.

  • ABAP Client and J2EE client mismatch

    Hello,
    we detected mismatch between  default ABAP login client and J2EE client.
    Now we need to change J2EE client to default ABAP client.
    Its ABAP + JAVA installation and diff. occured after client copy.
    Can you please let us know where we need to change all setting for j2ee engine like default client for UME, sld etc.
    Best Regards,
    Tushar

    Hello. By default JAVA used the 001 client in ABAP+JAVA installation,  be cautious with change it.
    you can chage it through Config tool :
    http://help.sap.com/saphelp_nw70/helpdata/EN/0b/50ad3e1d1edc61e10000000a114084/frameset.htm
    or from UME --> configuration --> ABAP system. You need to read about change datasources :
    http://help.sap.com/saphelp_nw70/helpdata/EN/7e/a2d475e5384335a2b1b2d80e1a3a20/frameset.htm
    and about SAPJSF user.
    http://help.sap.com/saphelp_nw70/helpdata/EN/db/8b9b801df84aaaa76bdbcbc0b9725f/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/03e11edc6a6e99e10000000a11466f/content.htm
    Regards.

  • Java clients and IUserPrincipal class not working for authentication

    I'm developing a Java client which talks to EJBs on the iAS server via
    iiop.
    I've already developed EJBs, and they work fine. I'm trying to do user
    authentication per the examples in the Rich Client section.
    Here are the steps I've taken:
    1. I've created a class (achp.security.AchpPrincipal) which implements
    com.netscape.ejb.client.IUserPrincipal.
    2. I've added the class to the initial context via the following line:
    env.put("com.netscape.ejb.client.PrincipalClass",
    "achp.security.AchpPrincipal");
    3. I do a home lookup with the above initial context when the
    application starts, create a bean, and then invoke a method on the bean.
    When I do the home lookup, according to the manual, my AchpPrincipal
    class should be instantiated (which brings up a login window which then
    records username and password for future use).
    This never happens. The AchpPrincipal class is never instantiated,
    although the home lookup occurs successfully and the bean method call is
    also performed successfully.
    I'm running server on my Win2K desktop, with SP3. And, of course, I've
    properly installed the CXS server (as indicated by the fact that I can
    communicate with the EJBs at all though the Java client).
    Any help would be appreciated.
    Thanks,
    Douglas Bullard
    Multnomah County ISD

    I'm developing a Java client which talks to EJBs on the iAS server via
    iiop.
    I've already developed EJBs, and they work fine. I'm trying to do user
    authentication per the examples in the Rich Client section.
    Here are the steps I've taken:
    1. I've created a class (achp.security.AchpPrincipal) which implements
    com.netscape.ejb.client.IUserPrincipal.
    2. I've added the class to the initial context via the following line:
    env.put("com.netscape.ejb.client.PrincipalClass",
    "achp.security.AchpPrincipal");
    3. I do a home lookup with the above initial context when the
    application starts, create a bean, and then invoke a method on the bean.
    When I do the home lookup, according to the manual, my AchpPrincipal
    class should be instantiated (which brings up a login window which then
    records username and password for future use).
    This never happens. The AchpPrincipal class is never instantiated,
    although the home lookup occurs successfully and the bean method call is
    also performed successfully.
    I'm running server on my Win2K desktop, with SP3. And, of course, I've
    properly installed the CXS server (as indicated by the fact that I can
    communicate with the EJBs at all though the Java client).
    Any help would be appreciated.
    Thanks,
    Douglas Bullard
    Multnomah County ISD

  • Error in the Socket Communication between Java Client and VC++ Server

    In my application, using Java Client to do socket bi-communication with VC++ Server, which is done by somebody else.
    The error is after the application properly running one or two days, the VC++ Server cannot receive the messages passed by java Client, but at Java client, everything is the same, although using CheckError() after every print(), there is no exception thrown.
    The JVM is jdk1.3.1, platform is Win2k Server.
    The outputstream is PrintWriter().
    Please help me to settle down this problem. Thanks in advance.

    I read some thread in the forum, and found somebody had the similar problem with me. Just want to know how to settle this problem.
    In the client/server program. Client is a JAVA program and Server a
    VC++ program. The connection works, and the problem appears after some time. The Client sends a lots of requests to Serverm, the server seems receive nothing. But at the same time, the server is able to send messages to Client. The Client also can get the messages and handle them. Don't understand why there this problem and why it appears when it wants.
    The client is a Win2k platorm with JDK1.3.1 and the server is also a Win2K platform with VC++ 6.0.
    In the Client, using:
    inputFromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    outputToServer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);
    Hope can get your help.

  • Related to Network program using Java Client and C server

    I am little bit experience in java technology. I need an urgent help as I have to submit a document related to C server and Java client. But while searching in net i cant get a proper guidance for C server as many errors thrown in sys/socket.h and other new header files. Can any one help me out for giving source code for C Server. so that i can further involve in that document. Please help me out. i am really helpless by the way the C server thrown error. after finishing that C server only i can concentrate on Java client...

    Hai Josah,
    Thanks for your reply.. I have gone through many sockets server program in C but the real proble is the header file they include like
    socket.h and in.h etc.. they also provide these header files but if we compile in turboC they inturn require some other header files. I dont get the full hierarchy of C server program. I found some help in Java programming Archive about C Server and java client. As i am new to C i cant get the full header files for the server.c if i complete taht only i can proceed to java client. If u can redirect me for any good C sites also i can be thankful for u forever..please

  • Socket Communication between java client and c++ server

    HI,
    In my project,I want to do the following:
    1.Sending datas from client to server.
    2.Getting the response from server to client.
    I written the client in java.but the server is in c++.
    Is it possible to communicate with the server using java codings itself?
    Im able to send the data from my java client to the server.
    but unable to get back the datas from server to client.
    Can anyone tell me how to do this?
    thanks a lot

    hi
    thanks for ur reply.
    I didnt get any error msg while getting the back the datas.
    Actually i divided my application into two parts.
    My application will act as both server and client.
    server ll get the browser request and send to the client and the client will send that data to the c++ server.
    Im able to do that.and unable to get the data from server.
    Didnt get any error.
    can u tell me how to make an application to act as both client and server.
    I think im wrong in that part.
    thanks a lot

  • Lotus Notes Java Toolkit and J2ee

    Hello
    has anybody tried to use the IBM SameTime Java SDK from within J2EE instead of applets running on the client front-end? I would like to generate instant messages directly from applications (either servlet engine or WebDynpro) for alerting purposes.
    Any feedback is welcome.
    Regards,
    Vitaliano Trecca

    Hi!
    it is correct that Lotus discontinued the availability of the JAVA/CORBA toolkit for R5.
    please use the KM Repository Manager for Lotus Domino deliverd by Conet which is based on Lotus Domino R6 and higher. The product is SAP-certified.
    For more information, please visit SAP TechED 2006 Session UPE106 or contact Conet at: http://www.youatweb.de/yaw/yaw_base.nsf/docs/repman_en
    or by seaching for "Conet" in the SDN Portal Content portfolio: https://www.sdn.sap.com/irj/sdn/developerareas/contentportfolio
    Regards
    Michael

  • Two related questions:  ColdFusion 10/Java applications and J2EE supported servers

    I have two related questions:
    1.  CF10 and integration with Java Web applications
    We have a couple of Java applications running on JRun and interfacing with CF9 applications.  The JRun clusters were created through the JRun Admin and, apart from lack of Axis 2.0 support, have served us well for years now.  And, as would be the case, the ColdFusion9/Java/Flash application is a critical public-facing application that the business uses for bidding on projects.
    It appears that with ColdFusion 10 on Tomcat, we will not be able to run those Java applications on a Tomcat-CF10 JVM cluster.  Is this correct?  IF so, what are our options? 
    2.  J2EE Application Servers supported by Adobe for CF10
    Which of these is correct?
    A.  This URL (http://www.adobe.com/products/coldfusion-enterprise/faq.html) states "ColdFusion 10 supports IBM® WebSphere, Oracle® WebLogic, Adobe JRun, Apache Tomcat, and JBoss."
    B.  This URL (http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1 0/coldfusion10-support-matrix.pdf) states:
    "J2EE application servers: WebLogic Server 10.3, 11.1, WebSphere Application Server 7, ND 7 JBoss 5.1, 6.0, 7.1.0"
    I *think* "A" above is wrong re. support for Adobe JRun.  It does not specify a version of Apache Tomcat unless it is simply referring to the custom version the comes with CF10.
    Option "B" above shows no support of Adobe JRun or 'standard' Apache Tomcat.
    Thanks,
    Scott

    Question 1 above was answered:  "No support for Java web applications under CF10's custom version of Tomcat"
    Question 2:  No answer yet:  Is Apache Tomcat (NOT Adobe's customized version) supported for CF10 J2EE deployment?  I do not see any installation instructions on how to install CF10 on Apache Tomcat 6 or 7.
    Is anybody using Apache Tomcat as their J2EE app servers and, again, NOT Adobe's customized/limited version? 
    Thanks,
    Scott

  • Clients and J2EE Server

    I am not shure, I thought that you don't hav to have a j2ee server installed for every client who wants to send and receive messages with the Help of JMS, but in the JMS tutorial stands on page that 57 that "JMS client programms can communilate with each other when they are running on different systems in a network. These systems must be visible to each other by name and must both running the j2ee server"
    I wantet to make an Applet wich is a JMS Client, who communikates with the server, is this possible? And if yes, does every person who wants to use the applet have to have installed the j2ee server?

    in this case, j2eeserver is used for the jndi lookup, not the cloudscape, jsp, webserver, and all that other crup.
    there is no reason not to connect to a remote jndi listener, rather than going thru a local listener which passes you off to the remote one.
    i have avoided jndi recently, and can help in websphere MQ, otherwise i am not sure.
    i would like also like to know.

  • Non-Java clients and Identity server

    Hello.
    Chapter 3 of the Identity Server Programmer's Guide describes an XML interface for authentication.
    I've tried to prototype an application in Python to use this interface for user authentication. However, I keep finding typhos in the code in the document, and I'm having trouble getting it to work.
    Has anyone managed to use the XML interface? Does anyone have any sample code, etc?
    Regards,
    Kyrre

    Documentation has typos and a sample code which comes with IS is wrong and was never supposed to work. Here is a python example of authentication and authorization for you. It has one shortcut - I use userSSOToken as an appSSOToken too. It's a bug in IS6.0. Normally you have to login via Application module first to receive appSSOToken.
    #!/usr/local/bin/python2.2
    import socket
    import string
    import urllib
    import sys
    def pcookie(s):
    if(s[0:16] == 'authIdentifier="'):
    xs = s[16:]
    return xs[:string.find(xs, '"')]
    if len(sys.argv) < 4:
    sys.exit('Usage: login.py host port pwfile')
    f = open(sys.argv[3])
    pw = string.split(f.readline())
    # 1. Initiate login
    request0='\
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
    <RequestSet vers="1.0" svcid="auth" reqid="1">\
    <Request>\
    <![CDATA[<?xml version="1.0" encoding="UTF-8"?>\
    <AuthContext version="1.0">\
    <Request authIdentifier="{0}">\
    <NewAuthContext orgName="dc=amat,dc=com">\
    </NewAuthContext>\
    </Request>\
    </AuthContext>]]></Request>\
    </RequestSet>'
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((sys.argv[1], int(sys.argv[2])))
    sl=socket.ssl(s);
    sl.write('POST /amserver/authservice HTTP/1.0\n\
    Accept: text/xml\n\
    Content-Length: '+`len(request0)`+'\n\
    Content-Type: text/xml;charset=UTF-8\n\n'+request0);
    cookie=filter(lambda (x):x, map(pcookie, string.split(sl.read())))[0]
    s.close()
    #cookie=urllib.unquote(cookie)
    # 2. Get login requirements
    request1='\
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
    <RequestSet vers="1.0" svcid="auth" reqid="0">\
    <Request>\
    <![CDATA[<?xml version="1.0" encoding="UTF-8"?>\
    <AuthContext version="1.0">\
    <Request authIdentifier="' + cookie + '">\
    <Login>\
    <IndexTypeNamePair indexType="moduleInstance">\
    <IndexName>LDAP</IndexName>\
    </IndexTypeNamePair>\
    </Login>\
    </Request>\
    </AuthContext>]]></Request>\
    </RequestSet>'
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((sys.argv[1], int(sys.argv[2])))
    sl=socket.ssl(s);
    sl.write('POST /amserver/authservice HTTP/1.0\n\
    Accept: text/xml\n\
    Content-Length: '+`len(request1)`+'\n\
    Content-Type: text/xml;charset=UTF-8\n\n'+request1);
    try:
    while(1):
    sl.read()
    except:
    pass
    # 3. Submit credentials
    request2='\
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
    <RequestSet vers="1.0" svcid="auth" reqid="1">\
    <Request><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>\
    <AuthContext version="1.0">\
    <Request authIdentifier="' + cookie + '">\
    <SubmitRequirements>\
    <Callbacks length="2">\
    <NameCallback>\
    <Value>' + pw[0] + '</Value>\
    </NameCallback>\
    <PasswordCallback>\
    <Value>' + pw[1] + '</Value>\
    </PasswordCallback>\
    </Callbacks>\
    </SubmitRequirements>\
    </Request>\
    </AuthContext>]]></Request>\
    </RequestSet>'
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((sys.argv[1], int(sys.argv[2])))
    sl=socket.ssl(s);
    sl.write('POST /amserver/authservice HTTP/1.0\n\
    Accept: text/xml\n\
    Content-Length: '+`len(request2)`+'\n\
    Content-Type: text/xml;charset=UTF-8\n\n'+request2);
    try:
    while(1):
    sl.read()
    except:
    pass
    # 4. Perform authorization
    request3='\
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\
    <RequestSet vers="1.0" svcid="Policy" reqid="1">\
    <Request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>\
    <PolicyService version="1.0">\
    <PolicyRequest requestId="1" appSSOToken="' + cookie + '">\
    <GetResourceResults userSSOToken="' + cookie + '" serviceName="iPlanetAMWebAgentService" resourceName="http://server.domain.com:80/" resourceScope="subtree">\
    <EnvParameters>\
    <AttributeValuePair>\
    <Attribute name="requestIp"/>\
    <Value>10.144.98.82</Value>\
    </AttributeValuePair>\
    </EnvParameters>\
    <GetResponseDecisions>\
    <Attribute name="uid"/>\
    </GetResponseDecisions>\
    </GetResourceResults>\
    </PolicyRequest>\
    </PolicyService>]]>\
    </Request>\
    </RequestSet>'
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((sys.argv[1], int(sys.argv[2])))
    sl=socket.ssl(s);
    sl.write('POST /amserver/policyservice HTTP/1.0\n\
    Accept: text/xml\n\
    Content-Length: '+`len(request3)`+'\n\
    Content-Type: text/xml;charset=UTF-8\n\n'+request3);
    try:
    while(1):
    print sl.read()
    except:
    print ''
    sys.exit(1);

  • Using Portable datasource lookup for a java client in OC4J 10g

    Hi,
    I'm in the process of porting a standalone java client to j2ee. At the moment I have a thick java client which uses jndi to access a global datasource configured on the OC4J server (10.1.2.0.2) and it works fine.
    Using the 'Services Guide' I decided the next step was to deploy the client as a J2EE application. At the moment the j2ee application only contains the descriptors (i.e application-client.xml and orion-application-client.xml packaged under META-INF in a .jar. This is, in turn, packaged in an .ear along with application.xml (again under META-INF.)
    This is where I'm hitting problems. The following config produces a 'javax.naming.NameNotFoundException' error
    application.xml
    <application>
         <display-name>appName</display-name>
         <description>appDescription</description>
    </application>
    application-client.xml :-
    <application-client>
         <display-name>appName</display-name>
         <resource-ref>
              <res-ref-name>jdbc/MaptoTest</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
    </application-client>
    orion-application-client.xml :-
    <orion-application-client>
         <resource-ref-mapping name="jdbc/MaptoTest" location="jdbc/Test"/>
    </orion-application-client>
    jndi.properties :-
    java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
    java.naming.provider.url=opmn:ormi://<machine>:6004:<OC4J_INSTANCE>/appName
    java.naming.security.principal=<USERNAME>
    java.naming.security.credentials=<PASSWORD>
    client.class
    ctx = new InitialContext();
    ds = (DataSource)ctx.lookup("java:comp/env/jdbc/jdbc/MaptoTest"));
    "jdbc/Test" was configured through OAS and is present in data-sources.xml (it is the ejb-location property).
    I'm running the client through Jdeveloper. I've used SJSAS previously and was use to configuring and deploying a application module through it's own tool. SJSAS also has a tool (appclient) for running the client. Is there something similar I should be using in OC4J?
    The services guide only mentions web.xml and ejb-jar for portable datasource lookup but I assume it's also possible using application-client.xml.
    It seems to me that my descriptors don't mention the j2ee application explicitly. Am I missing an entry in one of the xml descriptors. Any help would be appreciated this is driving me crazy!
    Thanks in advance for any advice.

    Hi Geoff,
    The configurations for your client.xml files look ok. Question: where did you configure the datasources.xml i.e. under j2ee/<OC4J_Name>/config or under the application-deployments/<appname>, kindly check and let us know.
    Thanks,
    Deepak

  • Problem in invoking a BPEL flow using java client

    Hi,
    We are new to BPEL. We tried invoking a flow (assign, invoke, assign) from a java client and we are facing the following exception :
    =========================
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting f
    or response has timed out. The conversation id is null. Please check the process
    instance for detail.
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}hostname: alk3wks30a
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response ha
    s timed out. The conversation id is null. Please check the process instance for
    detail.
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
    .java:251)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
    java:168)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
    alizationContextImpl.java:1001)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
    tionContextImpl.java:242)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
    at org.apache.axis.client.Call.invoke(Call.java:2515)
    at org.apache.axis.client.Call.invoke(Call.java:2210)
    at org.apache.axis.client.Call.invoke(Call.java:2133)
    at org.apache.axis.client.Call.invoke(Call.java:1656)
    at SampleClient.initiate(SampleClient.java:87)
    at SampleClient.main(SampleClient.java:126)
    ==========================================================
    Here is our java client.
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.soap.SOAPFaultException;
    import org.apache.axis.client.Call;
    * @version 2.0 $Date: 07-mar-2005.05:07:45 $
    * @author Copyright (c) 2004 by Oracle. All Rights Reserved.
    public class SampleClient
    private static QName SERVICE_NAME;
    private static QName PORT_TYPE;
    private static QName OPERATION_NAME;
    private static String SOAP_ACTION;
    private static String STYLE;
    private static String THIS_NAMESPACE = "http://xmlns.oracle.com/Hello";
    private static String PARAMETER_NAMESPACE = "http://xmlns.oracle.com/Hello";
    private String location;
    static
    SERVICE_NAME = new QName(THIS_NAMESPACE,"Hello");
    PORT_TYPE = new QName(THIS_NAMESPACE,"HelloPort") ;
    OPERATION_NAME = new QName(THIS_NAMESPACE,"process");
    SOAP_ACTION = "process";
    STYLE = "document";
    public void setLocation(String location)
    this.location = location;
    public void initiate() throws Exception
    try
    /* Create Service and Call object */
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService( SERVICE_NAME );
    Call call = (Call)service.createCall( PORT_TYPE );
    /* Set all of the stuff that would normally come from WSDL */
    call.setTargetEndpointAddress( location );
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOAP_ACTION);
    call.setProperty( Call.OPERATION_STYLE_PROPERTY , STYLE );
    call.setOperationName(OPERATION_NAME);
    call.addParameter(new QName(PARAMETER_NAMESPACE,"input"), XMLType.XSD_STRING, ParameterMode.IN);
    //call.setReturnType(new QName(PARAMETER_NAMESPACE,XMLType.XSD_STRING));
    call.setReturnType(new QName("http://www.w3.org/2001/XMLSchema","string"));
    Object[] params = new Object[1];
    params[0] = new String("Sanju");
    /* Invoke the service */
    String result = (String)call.invoke(params);
    System.out.println( "UseStockReviewSheet BPEL process initiated"+ result );
    catch (SOAPFaultException e)
    System.err.println("Generated fault: ");
    System.out.println (" Fault Code = " + e.getFaultCode());
    System.out.println (" Fault String = " + e.getFaultString());
    catch (JAXRPCException e)
    System.err.println("JAXRPC Exception: " + e.getMessage());
    catch (ServiceException e)
    System.err.println("Service Exception: " + e.getMessage());
    public static void main(String[] args) throws Exception
    //String symbol = "ORCL";
    String location = "http://localhost:1000/orabpel/default/Hello/1.0";
         SampleClient client = new SampleClient();
    /* if(args.length == 1)
    symbol = args[0];
    else if(args.length ==2)
    location = args[0];
    symbol = args[1];
    client.setLocation( location );
    client.initiate();
    Please help us in fixing the problem
    Thanks In Advance

    Hi,
    Thanks a lot for your reply. When we tested the process flow in BPEL console it is giving desired output. The exception trace in the dos console is as following
    ======================================
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFro
    mValue(BPELAssignWMP.java:490)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__execu
    teStatements(BPELAssignWMP.java:122)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:188)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3408)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1836)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:166)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:252)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5438)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1217)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.creat
    eAndInvoke(CubeEngineBean.java:120)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncC
    reateAndInvoke(CubeEngineBean.java:153)
    06/07/04 18:08:01 at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.syn
    cCreateAndInvoke(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:486)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequestAnyType(DeliveryHandler.java:520)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequest(DeliveryHandler.java:435)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.requ
    est(DeliveryHandler.java:132)
    06/07/04 18:08:01 at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.pro
    cessBPELMessage(CXSOAPProvider.java:632)
    06/07/04 18:08:01 at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.inv
    oke(CXSOAPProvider.java:133)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.strategies.Invocat
    ionStrategy.visit(InvocationStrategy.java:32)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.SimpleChain.doVisi
    ting(SimpleChain.java:118)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.SimpleChain.invoke
    (SimpleChain.java:83)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.handlers.soap.SOAP
    Service.invoke(SOAPService.java:450)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.server.AxisServer.
    invoke(AxisServer.java:285)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.transport.http.Axi
    sServlet.doPost(AxisServlet.java:653)
    06/07/04 18:08:01 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:760)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.transport.http.Axi
    sServletBase.service(AxisServletBase.java:301)
    06/07/04 18:08:01 at com.collaxa.cube.fe.CollaxaServlet.service(CollaxaSer
    vlet.java:134)
    06/07/04 18:08:01 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:853)
    06/07/04 18:08:01 at com.evermind.server.http.ServletRequestDispatcher.inv
    oke(ServletRequestDispatcher.java:824)
    06/07/04 18:08:01 at com.evermind.server.http.ServletRequestDispatcher.for
    wardInternal(ServletRequestDispatcher.java:330)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.processRe
    quest(HttpRequestHandler.java:830)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:285)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:126)
    06/07/04 18:08:01 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:186)
    06/07/04 18:08:01 at java.lang.Thread.run(Thread.java:534)
    <2006-07-04 18:08:01,441> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.cli
    ent.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-proce
    ss/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    xpath variable/expression expression "/client:HelloProcessRequest/client:input"
    is empty at line 37, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:HelloProcessRequest/cli
    ent:input" is not empty.
    </summary>}}
    ==========================================
    And the Error logging in domain.log is
    <2006-07-04 18:08:01,441> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    xpath variable/expression expression "/client:HelloProcessRequest/client:input" is empty at line 37, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:HelloProcessRequest/client:input" is not empty.
    </summary>}}
    Wating for ur response.
    Thank you.

  • Socket communication between client and server

    Hi all,
    I am doing an assignment for communication between java client and java server using sockets. This communication is in the form of XML documents. I am facing a problem in this communication.
    Actually at Server side I'm creating an XML document(Document type object) using DocumentBuilderFactory in javax.xml.parsers package and transforming this Document into a stream using StreamResult.
    My code is :
    Transformer xmlTransformer = TransformerFactory.newInstance().newTransformer();
    StreamResult xmlString = new StreamResult(currentClientHandler.getSocketOutputStream());
    DOMSource xmlDocSource = new DOMSource(xmlDocument); // xmlDocument is Document type reference
    xmlTransformer.transform(xmlDocSource, xmlString);
    so, this xmlString(i.e. StreamResult) is passed directly into the output stream. Here I need to close() output stream after transform() call to help SAX parser to know about end of stream.
    Now at Client side, I am parsing this stream using SAX parser. It parses this correctly. But when sending some another data back to Server when client opens output stream, it given Socket closed exception. I know that closing input or output stream closes socket. But in my problem, I have to send data in streams and not by using files or byte[] etc.
    So what is nearest solution to problem ??
    Plz help me. Any kind of help will be greatly appreciated.

    hi
    thanks for ur reply.
    I didnt get any error msg while getting the back the datas.
    Actually i divided my application into two parts.
    My application will act as both server and client.
    server ll get the browser request and send to the client and the client will send that data to the c++ server.
    Im able to do that.and unable to get the data from server.
    Didnt get any error.
    can u tell me how to make an application to act as both client and server.
    I think im wrong in that part.
    thanks a lot

  • OutPut form UserTask to java client

    HI All,
    I have the following senario over here ..help me out :-(
    1)Invoke a webservice
    2)Reply Activity
    3)UserTask-------------->If i approve this user task i will call an other webservice,
    if i REJECT the user task the process comes to an end
    I am calling this BPEL webservice from the java client,and i am able to get the out of the first invoke webservice activity from the result and my BPEL process moves to the UserTask and waits there for the human interaction.
    I am using the Worklist API to APPROVE/REJECT the user task.If i APPROVE the user task from the java code(Worklist API) how can i get the otu put the other
    WEBSERVIES i which is invoked after updating the usertask from java code.
    Cheers,
    Kalyan.

    Hi guys,
    Any updates on the above post .
    Doubt:How to get the out from the invoke activity to the java client which is invoked after the user task.
    NOTE:I am invoking the BPEL process by creating a java client to the BPEL process.
    Thanks
    Patti.

Maybe you are looking for

  • How do I uninstall Lion and go back to Snow Leapard

    Just discovered that Lion Breaks my NAS Time Machine so I have lost the ability to back up regularly. This is a deal breaker for me until the NAS provider QNAP provides updated drivers. Is there a simple retrograde step to remove Lion or do I need to

  • How do I get Logic to reference files instead of importing them?

    Hey guys, I've been trying to figure this out for a while now with no luck. How do I get Logic X to reference audio files on my hard drive without importing them in to the project itself? I've got a lot of remix type tracks that use long audio files,

  • Query Regarding Date/Time

    hi! I have data in below mention form and i want to find only those records which are between "4/3/2009 16:53" and "4/7/2009 12:02". Please share select Query ? ---- bellow records are in date format 4/3/2009 16:49 4/3/2009 16:53 4/3/2009 17:39 4/7/2

  • Woke up and lost an Itunes logo and all the music with it!

    My Imac was calling for some software update yesterday. I tried to find Itunes app but it wasn't on the screen! I put a new one but all my song, books, podcasts are gone. : ( Can anyone help? Can Mac erase music by itself? Why? Thanks for any advise!

  • Cut and paste with mouse setting

    Hi, I am unable to use the cut and paste, copy settings by right-clicking my mouse when in .edu websites. I must use the keyboard instead, such as Ctrl C, V or X. However, this does not occur in IE. Can you please assist? Thanks! Sashtienne