Kaleeswaran Karuppusamy

Ranch Hand
+ Follow
since Jul 19, 2007
Java |Integration |Microservice |Cloud Native |Cloud Foundry
Singapore
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 Kaleeswaran Karuppusamy

Feeling Happy - I Cleared "Spring Enterprise Integration Specialist" certificate today with 78%
3 years ago
Can we use EJB @Asynchronous annotation in distribute environment. I know we can use it but I want to know its Advisable or not. Because It's not advisable to manage user thread in Distribute environment like EJB container .

Earlier if we want to make Asyn call then we use JMS. But now they added @Asynchronous annotation with Future Class to achieve the same result.


Please advise me.

Hi Dittmer, Its great pleasure to receive reply from you after 5 year..I have learned many thing's here in javaranch 5 year before, you were really helped me to understand what is servlet and jsp when i was beginner in java.

Thanks you so much...

back to the business..

We are generating boomerang javascript for monitoring purpose and we are generate unique clientid for each user transaction and that clientid will be send to beacon servlet.

one of our client is using akamai netscaler caching tool which cache the client id which we generate each user transaction.

That is the issue. so now my question is every time generate new unique clientid how that would be store in cache. is it possible to happen like that. if so how could we avoid prevent to store in cache.

Thanks,
Kaleeswaran K
4 years ago
Hi All,

I am generating java script tag and javascript code in servlet and diplaying it in each jsp page. i include this in every jsp in my application
i am preparing the following javascript content and diplayin each jsp

<script type="text/javascript"> BOOM.addVar (clientId = SOME universal unique ID ) </script>

the clientid will be uniqueid it gets generated every time.

here my question is, is there any possibility the clientId will be store in browser cache or third party cache server. if yes how to prevent clientId from cache.

i don't want to prevent the whole jsp file from cache. i just want to prevent only that particular field. so that i can use advantages cache and also prevent particuler header field to be cached.


also can we prevent particular http header attribute from cache.


Thanks,
Kaleeswaran K


4 years ago
what java webservice annotation replaces this Webmethod attribute Xmlinclude(typedef(VO)) used .net
9 years ago
i really confused .please read this link

http://www.coderanch.com/t/449274/Web-Services/java/do-Bulk-data-transfer-using

i concluded which is we cannot send bulk VO using webservice after i came across this link

please suggest me
9 years ago
Thanks for your reply

here i explain in details

i started my project with webservice its good enough for sending single VO class to client.but the problem is when client searching something that time i need to send 500 VO as a array.so in this case i cannot send All VO in a single SOAP body. so in this case either we have to send as SOAP attachment or RESTful. Flex client does not support SOAP attachment. so i have plan to use RESTful webservice.

I created sample RESTful and i can access in flex client and now only i know JAX-RS also we can access in swing client using jersey api.

for security i planned to use Https connection.

using HTTPS connection can we access JAX-RS? if we can means we can use JAAS with any one of authentication method.Can we implement like this?

i dont know much about webservice security.i know only webserrvice security is actually Application level security thats really not needed in my application.Transport level security more than enough to my project.


my question is can we use RESTFul in my application without scare anything because i am only person to choose technology.so i need to Either RESTful mature implementation or not?

at the same time we are not exposing any method to public client so webservice is not must.we need to use http port using http our client flex and swing able to communicate with server.


please suggest me
9 years ago
i would like to know shall i use RESTful webservice to my project. or any issues are there. i started my project with webservice.but i need to send bulk of date to Flex client and also swing application client so planning to use RESTFul webservie .please suggest me How RESTful help me
9 years ago
can we implement any one of the j2ee authentication method when implement RESTful webservice.
9 years ago
in my project we used EJB for Swing client to access data from server. later we decided to replace wbservice instead of EJB for using same http port because the client only ready to provide single port not more than one port. so my question is can we send array of VO with large data more than 50000 thousand VO object in a single request..please suggest me..

In my knowledge webservice used to move simple message oriented service not suite for big object oriented class support ..please suggest mes
9 years ago
please tell me can we use same port for connecting http and https connection
9 years ago
<definitions targetNamespace="http://services.server.voicesys.m2.com/" name="TranscriptCollectWSService">
<types>

<xsd:schema>
<xsd:import namespace="http://services.server.voicesys.m2.com/" schemaLocation="http://localhost:8157/voicesys/TranscriptCollectWSService?xsd=1"/>
</xsd:schema>
</types>

<message name="authenticate">
<part name="parameters" element="tns:authenticate"/>
</message>

<message name="authenticateResponse">
<part name="parameters" element="tns:authenticateResponse"/>
</message>

<message name="getTranscriptFileList">
<part name="parameters" element="tns:getTranscriptFileList"/>
</message>

<message name="getTranscriptFileListResponse">
<part name="parameters" element="tns:getTranscriptFileListResponse"/>
</message>

<message name="updateTransCollectSentStatus">
<part name="parameters" element="tns:updateTransCollectSentStatus"/>
</message>

<message name="updateTransCollectSentStatusResponse">
<part name="parameters" element="tns:updateTransCollectSentStatusResponse"/>
</message>

<portType name="TranscriptCollectWS">

<operation name="authenticate">
<input message="tns:authenticate"/>
<output message="tns:authenticateResponse"/>
</operation>

<operation name="getTranscriptFileList">
<input message="tns:getTranscriptFileList"/>
<output message="tns:getTranscriptFileListResponse"/>
</operation>

<operation name="updateTransCollectSentStatus">
<input message="tns:updateTransCollectSentStatus"/>
<output message="tns:updateTransCollectSentStatusResponse"/>
</operation>
</portType>

<binding name="TranscriptCollectWSPortBinding" type="tns:TranscriptCollectWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>

<operation name="authenticate">
<soapperation soapAction=""/>

<input>
<soap:body use="literal"/>
</input>

<output>
<soap:body use="literal"/>
</output>
</operation>

<operation name="getTranscriptFileList">
<soapperation soapAction=""/>

<input>
<soap:body use="literal"/>
</input>

<output>
<soap:body use="literal"/>
</output>
</operation>

<operation name="updateTransCollectSentStatus">
<soapperation soapAction=""/>

<input>
<soap:body use="literal"/>
</input>

<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>

<service name="TranscriptCollectWSService">

<port name="TranscriptCollectWSPort" binding="tns:TranscriptCollectWSPortBinding">
<soap:address location="http://localhost:8157/voicesys/TranscriptCollectWSService"/>
</port>
</service>
</definitions>


this is my wsdl
9 years ago
ServiceFactory serviceFactory = ServiceFactory.newInstance();
String wsdlURLString = "http://localhost:8157/voicesys/TranscriptCollectWSService?WSDL";
URL wsdlURL = new URL(wsdlURLString);
String serviceName = "TranscriptCollectWSService";
String nameSpaceURI = "http://services.server.voicesys.m2.com/";
String portName = "TranscriptCollectWSPort";
Service service = serviceFactory.createService(wsdlURL, new QName(
nameSpaceURI, serviceName));
create the service proxy
com.m2.voicesys.server.services.TranscriptCollect serviceProxy = (com.m2.voicesys.server.services.TranscriptCollect) service .getPort(new QName(nameSpaceURI, portName),
com.m2.voicesys.server.services.TranscriptCollect.class);
System.out.println(serviceProxy.authenticate("", "", ""));


when i execute this code i getting this error
Exception in thread "main" port: {http://services.server.voicesys.m2.com/}TranscriptCollectWSPort does not contain operation: getTranscriptFileList

i am using netbean and glassfish server


9 years ago
i created web service project and i created web service using glassfish server.when i call this webservice from other project in netbeanIDE everything working .but when i created web service and web service client in the same project in netbeanIDE at that time i cannot call web service method i am getting error

what is the reason...please reply
9 years ago
i am using simple servlet i like to use spring jdbc fromwork alone to my application . can we use like that?
9 years ago