Haroldo Nascimento

Ranch Hand
+ Follow
since Aug 14, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Haroldo Nascimento

My machine has 8GB RAM
The File System ca aloc other 4GB ?
How I can see the amount th memory alocate for File System ?
19 years ago
Hi

I am run my application java in Linux. The application aloc all memory RAM of machine for my application, but used 0% de swap memory to my applicationin all time.

Has any configuration in Linux that no allow used the swap memory.

thanks
19 years ago
Hi

I have a problem com my aplication. My application has 100 thread that use many cache. The problem is that after that aplication consume 4GB, the machine alloc memory until have no more memory in the machine. The aplicarion no exit e no get OutOfMemory, but run using 7,9 GB de memory. The problem is that the command top show that aplication consumed 4G, but has 7,9 GB de memory alloc. No has any more process in the machine.
The memory swap no is used in no moment and the gclog.txt show gc corrects.
I think that has any bug with the GC.

What is the error ??

Thanks

Information:
- The machine has 8GB RAM and 16GM de swap.

- Start my aplication stand-alone with:

java -verbose:gc -jar -Xms4048M -Xmx4048M -XX:NewSize=512M -XX:MaxNewSize=512M -XX:+PrintGCDetails -Xloggc:gclog.txt extractor.jar >> saida.txt &

- The machine is Linux and the version de jdk is:
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_10-b03, mixed mode)
19 years ago
Hi,

I remember that there is the implementation free of JMS that does not use J2EE Server, but the JMS Server standalone.

Anybody know where I get this implementation ?

thanks
I would like to know if is possible this situation:

My application RMI client:

1- get the XAResource xaR1 of OracleXADataSource
2- create Xid1
3- xaR1.start(Xid1)
4-doAnyThingDB1("insert into table_Client ...")
5- xaR1.end(Xid1)
6- call the method of app Server RMI passing the Xid

and the appSever RMI:
1- get the XAResource xaR1 (same the appClient)
2- create Xid2
3- xaR1.start(Xid2)
4-doAnyThingDB2("insert into table_Server ...")
5- xaR1.end(Xid2)
6- prepare(Xid2)
7- commit(Xid2)

After the conclution of method remote, There will register in the
table_Server and table_Client or only on table_Server ?

I need that the fisrt result is the correct, else what I can do to control
transaction distributes in diferent VMs.

thanks
19 years ago
Hi,

I would like to know if is possible this situation:

My application RMI client:

1- get the XAResource xaR1
2- create Xid1
3- xaR1.start(Xid1)
4-doAnyThingDB1("insert into table_Client ...")
5- xaR1.end(Xid1)
6- call the method of app Server RMI passing the Xid

and the appSever RMI:
1- get the XAResource xaR1 (same the appClient)
2- create Xid2
3- xaR1.start(Xid2)
4-doAnyThingDB2("insert into table_Server ...")
5- xaR1.end(Xid2)
6- prepare(Xid2)
7- commit(Xid2)

After the conclution of method remote, There will register in the table_Server and table_Client or only on table_Server ?

I need that the fisrt result is the correct, else what I can do to control transaction distributes in diferent VMs.

thanks
Hi

I saw that many peolple use Axis in the developement of Web Services.
What is Axis ?
What is the advanatges of Axis ?
I am using only API of jwsdp1.4 to create my RPC Web Services. I need to use the API Axis to get any new feature ?

thanks.
20 years ago
Hi

What I need to create a method with a ArrayList parameter using JAX-RPC ?
The wscompile tools is using the parameter -model "model-wsdl-rpcenc.xml.gz" (I get this file of the HelloWorld of jwsdp1.4).
The error is it:

"[wscompile] modeler error: invalid entity name: "ArrayList" (in namespace: "http://java.sun.com/xml/ns/jax-rpc/ri/model") ..."

and my wsdl is this:

<?xml version="1.0" encoding="UTF-8"?>

<definitions name="Services"
targetNamespace="urn:Har"
xmlns:tns="urn:Har"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://java.sun.com/xml/ns/jax-rpc/ri/model"
xmlns:ns2="http://service_har.org/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns1="http://soapinterop.org/xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema targetNamespace="http://service_har.org/types"
xmlns:tns="http://service_har.org/types"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="TipoWrapper">
<sequence>
<element name="boolProperty" type="boolean"/>
<element name="integerProperty" type="soap11-enc:int"/>
<element name="stringProperty" type="string"/>
</sequence>
</complexType>
</schema>

<schema targetNamespace="http://soapinterop.org/xsd" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="java.util.ArrayList">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/>
</sequence>
</complexType>
</schema>

</types>

<message name="ServicesIF_syncDB">
<part name="nameDB" type="xsd:string"/>
</message>
<message name="ServicesIF_syncDBResponse">
<part name="result" type="xsd:string"/>
</message>

<message name="ServicesIF_testar">
<part name="tWParam" type="ns2:TipoWrapper"/>
<part name="param2" type="ns1:java.util.ArrayList"/>
</message>
<message name="ServicesIF_testarResponse">
<part name="result" type="ns2:TipoWrapper"/>
</message>

<portType name="ServicesIF">
<operation name="syncDB" parameterOrder="nameDB">
<input message="tns:ServicesIF_syncDB"/>
<output message="tns:ServicesIF_syncDBResponse"/>
</operation>
<operation name="testar" parameterOrder="tWParam param2">
<input message="tns:ServicesIF_testar"/>
<output message="tns:ServicesIF_testarResponse"/>
</operation>
</portType>

<binding name="ServicesIFBinding" type="tns:ServicesIF">
<operation name="syncDB">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</output>
<soap peration soapAction=""/>
</operation>

<operation name="testar">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</output>
<soap peration soapAction=""/>
</operation>

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
</binding>

<service name="Services">
<port name="ServicesIFPort" binding="tns:ServicesIFBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>
</port>
</service>

</definitions>

Where is the error ?

thanks
20 years ago
Hi

I have a doubt:

I or the container can control the transacion of the intereaction of 2 EJB (a EJB is in the AppServer A and the second EJB is the AppServer B). The EJB_A call one service of EJB_B. If in the EJB_A occur the error after the call service of EJB_B, the transaction must be rollback and the changes of EJB_A and EJB_B must be rollback.

Is it possible ?
Hi,

I download the wsdp1.3 and wsdp1.4 and didnt get any example of the JAX-RPC using Dynamic Proxy and Dynamic Invocation Interface (DII).

The tutorial of the SUN http://java.sun.com/webservices/docs/1.3/tutorial/doc/index.html say much times of this example located in <INSTALL>/jwstutorial13/examples/jaxrpc/dynamicproxy/ , but there are not this example.

Anybody know any example of RPC using Dynamic Proxy and Dynamic Invocation Interface (DII) or where I can download the jwstutorial13 ?

Thanks.
20 years ago
Thanks Lasse,

I have more any doubts. I see in the many sites the follow example xml using the JAX-RPC: (This http://www.w3.org/2000/03/29-XML-protocol-matrix.html is a example of site)

<methodCall>
<methodName>examples.getStateName</methodName>
<params>
<param>
<value><i4>41</i4></value>
</param>
</params>
</methodCall>

In the specification of the project FlyByNight entreprise of SCEA part II use this specification of XML too.

My doubt is: The library of JAX-RPC understand this XML pattern or I have that implements a layer that parser this xml and call the RPC and in the response get the return of remote method and create the XML that contain the data.

How I would can use JAX-RPC send the XML above because the example of HelloWorld of the C:\jwsdp-1.4\jaxrpc\samples\ need that the client use the stub class to call the method stub.sayHelloBack("JAXRPC Sample"). I would like send the XML and not use the stub class.

thanks
20 years ago
Hi

I know that JAX-RPC is the tecnology portable. It use WSDL to permit that clients of the other platforms exchange message with WS EndPoint.

but the SAAJ does not use WSDL. Is possible other application (Perl, Microsft, ...) exchange message using only SAAJ. Eh possible use JAX-RPC and SAAJ together ?

What is the advantages and disadvantages of SAAJ and JAX_RPC ?

thanks
20 years ago
Thanks,


but I will wish use XML to access the remote method and get the result in XML too. For example:

<?xml version="1.0"?>
<methodCall>
<methodName>GetCelcius</methodName>
<params>
<param>
<value><int>-5</int></value>
<param>
<params>
</methodCall>


How I can do it using the simple example Hello World of jwsdp ?

Thanks
20 years ago
Hi

I create the simple application that using JAX-RPC similar to the examples of WSDP.
My doubt is if this example use the SOAP, because I dont amount any xml, but the client call the method e receive the return this method. The SOAP is tranparent to application or the applicatin can define this XML of SOAP ?

How I can use XML to create call of RPC and recieve data in format XML ?

Thanks
20 years ago
Hi

I have a doubt about transaction. I need exchange message between two components located in the diferent container (JBOSS).
Is possible control the transaction of all operation below:

AppA
start trx
do anythink (how update database)
AppB.syncDB (call RPC using SOAP of other application - service of Web Service)
commit trx or rollback

The commit or roolback must be execute of all operation in the AppA and the service of AppB. How I can create I unique transaction for 2 diferent applications. It is possible ?

thanks