angel sar

Greenhorn
+ Follow
since Aug 29, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by angel sar

Any comments? come one.

Thanks.
14 years ago
Hello.

I m trying to map the spring framework into jee layers, but im not sure. (Cause i m newbie in spring ). I got this:

Layers Spring

Web Spring Web MVC

Business Spring Core (bean,context,el)

Integration Spring Jdbc, Spring ORM

Is it ok???

Another question: i can use just spring jdbc or spring orm with ibatis , maybe both but never spring jdbc and spring orm together, correct???

Thanks
14 years ago
Im new in spring , im studying by myself.
How can i start in this topic, i mean spring ajax? Spring has its own libraries? Can i manage it like teh way i can use jquery, prototype, extjs??
thanks.
14 years ago
Thanks for your answer. You mean i have to deploy the application like a war?? If so, how my timer service can call any class of my application? Please give me more details.

Thanks.
Just an idea that helped me sometimes, change the oracle jdbc jar.
Hello. I have this scenario: A java process will run every minute. This process read a file, make alot of logic with the file and then insert and update records of a table in a data base. Since it is a process (a daemon) and it doesnt have a container (like tomcat) to store a connection pool, how would i mange the DB connection? I think its a bad idea to open and close a connection every minute that my process runs.
Any suggestions??? Thanks a lot.
Thansk again. So I ve decided this: I ll get the report designs from ireport. When the process starts, it ll read the .jaspers , generate the reports in pdf, save them in a folder and then save the metadata for everyone in a table.
Then ill get a jsp that lists all my reports of my table and each link will show a report.
Until here, do you have any code for saving and reading pdf, and then to show the report from the server to the client??

Thanks.

14 years ago
JSP
Thanks for your answer bear. So you mean that I should save the reports in, for example c:/reports, then save some metadata in a table for example the location of the report (c:/reports) and the name of the report (myreport.pdf). Later when a user wants to see the report, the application look for the report and then show the pdf to the user.
Am i wrong or correct?
Thanks.
14 years ago
JSP
Hi friends, i dont know if my question is in the right place of the forum. Since its about a web application , i ve posted it here
The context is this: A form button will start a big process in the server side. Part of this process is to generate many reports (NOT showing reports through http at this time) and save them. Later a user can export any generated report from the web application.

My doubts are:
Since tthe reports wont be shown at request time, i have to decide when to save them. I have 2 choices, in a folder of the server or in a table of my data base. If i save them in a folder, how can i publish that folder in order to export the reports later?? so i think the best idea is in a data base so i can list the reports titles and link any of them to see the report through the web. But since the process generate like 50 reports daily, maybe it s no t a good idea to use a table.

This is the first time i get this, so i need your opinions and recommendations.

I hope i m clear.

Thanks
14 years ago
JSP
Any ideas? any help? Is it an error to generate a client using a diferent library?
Please I need your help.
Thanks.
14 years ago
Hi. I generated a ws using ibm libraries. Also i generated a java client using ibm libraries too. It works fine. But, when i generated an axis client, i got this error:

23-oct-2009 10:12:58 org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.tdp.impl.ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.procesarOrdenTrabajo(ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.java:233)
at com.tdp.impl.ServicioProvisorPlantaInternaProxy.procesarOrdenTrabajo(ServicioProvisorPlantaInternaProxy.java:45)
at com.tdp.impl.ClientePruebaWS.main(ClientePruebaWS.java:48)
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
faultActor: null
faultDetail:
stackTrace: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.tdp.impl.ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.procesarOrdenTrabajo(ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.java:233)
at com.tdp.impl.ServicioProvisorPlantaInternaProxy.procesarOrdenTrabajo(ServicioProvisorPlantaInternaProxy.java:45)
at com.tdp.impl.ClientePruebaWS.main(ClientePruebaWS.java:48)


org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
at org.apache.axis.client.Call.invoke(Call.java:1874)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.tdp.impl.ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.procesarOrdenTrabajo(ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_BindingStub.java:233)
at com.tdp.impl.ServicioProvisorPlantaInternaProxy.procesarOrdenTrabajo(ServicioProvisorPlantaInternaProxy.java:45)
at com.tdp.impl.ClientePruebaWS.main(ClientePruebaWS.java:48)
Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:188)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
... 5 more

This is my wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://impl.tdp.com/ws/messages" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://impl.tdp.com/ws/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:documentation>
<wsdl:appinfo source="WMQI_APPINFO">
<MRWSDLAppInfo imported="true">
<binding hasEncoding="false" imported="true" name="ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Binding" originalBindingStyle="document"/>
</MRWSDLAppInfo>
</wsdl:appinfo>
</wsdl:documentation>
<wsdl:types>
<xsd:schema xmlns:mrm="http://impl.tdp.com/ws/messages" targetNamespace="http://impl.tdp.com/ws/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="ws/messages/MSG_ORDTRABXML_REQRESP.xsd"/>
</xsd:schema>
</wsdl:types>

<wsdl:message name="procesarOrdenTrabajo_in">
<wsdl:part element="tns:TdPRq" name="TdPRq"/>
</wsdl:message>
<wsdl:message name="procesarOrdenTrabajo_out">
<wsdl:part element="tns:TdPRs" name="TdPRs"/>
</wsdl:message>

<wsdl:portType name="ServicioProvisorPlantaInterna">
<wsdl:operation name="procesarOrdenTrabajo">
<wsdl:input message="tns:procesarOrdenTrabajo_in" name="procesarOrdenTrabajo_Input"/>
<wsdl:output message="tns:procesarOrdenTrabajo_out" name="procesarOrdenTrabajo_Output"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Binding" type="tns:ServicioProvisorPlantaInterna">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="procesarOrdenTrabajo">
<soap:operation/>
<wsdl:input name="procesarOrdenTrabajo_Input">
<soap:body parts="TdPRq" use="literal"/>
</wsdl:input>
<wsdl:output name="procesarOrdenTrabajo_Output">
<soap:body parts="TdPRs" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Service">
<wsdl:port binding="tns:ServicioProvisorPlantaInterna_REQRESPSOAP_HTTP_Binding" name="ServicioProvisorPlantaInterna">
<soap:address location="http://localhost:9080/PruebasWS/services/ServicioProvisorPlantaInterna"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Its running on a was 6.0.
I was looking for a solution but all said that i check my wsdl again. I did it many times but i have not got a solution. Hope you can help me. thanks
14 years ago
Im getting all i need to start to program thank you. But i have i new question.
what free ftp server dou you recommned to test and use my program?
I ve heard about filezilla and apache ftp server.
thanks again. I forgot to tell you a little detail. I have to use jdk 1.4 because of
my server version, . In this scenario, what do you recommend?
Thak you for your answer. Can you give me more details about implementing ScheduledExecutorService?

Thanks
Hello. I have to solve a requirement and i need some guides. The issue is that my program needs to send a file through ftp every 2 hours. For this issue i have some questions hope you can help me.
1) for the ftp sent, i ve found 2 solutions. Use commons net or jftp from sourceforge page. Whay do you recommend? maybe other?
2)to do something very some time, i thought to program a thread but i ve heard that other good way to do this is by using javax.swing.Timer and java.util.Timer. What do you recommend? Maybe a java daemon library?

Just in case, this program will run in a war file on a was.

Thank you for your time and response.