Win a copy of Terraform in Action this week in the Cloud forum!

Srinivas Ivaturi

Ranch Hand
+ Follow
since Jan 28, 2003
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 Srinivas Ivaturi

I am not SCEA (infact preparing for first part), but I feel SUN should give the requirements that match JEE. If I see a statement like "Load is low", obviously I dont tend to think using EJBs, instead of will go with something else. I see lots of different assignments being talked these days in the forum. Hope those requirements are at enterprise level (I mean to say the requirement should force to think the designer to use specific technology, that is where the actual usage of SCEA comes into the picture.).
Thanks
Srinivas Ivauti.
Are you planning to complete the notes with all objectives covered?

Thanks
Srinivas Ivaturi.
Using JAX-WS programming model, you can pretty much have asynchronous client to communicate to service. Find more information here.

http://today.java.net/pub/a/today/2006/09/19/asynchronous-jax-ws-web-services.html

Thanks
Srinivas Ivaturi.
Using JDK API Is it possible to get solution for my problem? Because I would expect some Unicode support API being available to us.
15 years ago
Hi

I have a file contais this as data. "This is a test\u4321". When I read that file and write it into other file I want the unicode character data to be converted as "This is a test?". I used the following code but not successful.can someone help me in this?

Here is the code snippet.

try
{
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("c:\\in.txt"), "UTF-8"));
PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream("c:\\out.txt"), "UTF-8"));
String line;
while ((line = in.readLine()) != null ) {
// do some processing with line, and then:
out.println(line);
}
out.close();
in.close();}
catch(Exception e){
e.printStackTrace();
}
}


The interesting thing is when I assing the line = "This is a test\u4321" and write into file, it is writing properly as "This is a test?"

Thanks
Srinivas Ivaturi
15 years ago
yes, it works for me.
15 years ago
All permissions are there for that file. I mistyped the command.
Process process = Runtime.getRuntime().exec("/data1/eqa/Installdir/ssacrm1408/shared/bin/cljava.sh com.test.profileloader" );

Is there any other problem that you see?

Thanks
Srinivas Ivaturi
15 years ago
Hi

I am trying to execute a .sh file using Runtime.getRunTime() as below. It says that file is not found. But the file exisits in the path. Here is the code snippet I am using. The environment is any non windows environment I am getting this execption.

Process process = Runtime.getRuntime().exec("/data1/eqa/Installdir/ssacrm1408/shared/bin/cljava.sh" com.test.profileloader );

Exception is :

err, java.io.IOException: "/data1/eqa/Installdir/ssacrm1408/shared/bin/cljava.sh": not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:84)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at java.lang.Runtime.exec(Runtime.java:364)
at java.lang.Runtime.exec(Runtime.java:326)
15 years ago
Hi

I wonder if the topics are RSS enabled? If so it would be great. I dont see any RSS/ ATOM gif on the sub topics. But it would be handy to have RSS enabled for these topics.

Thanks
Srinivas Ivaturi.
16 years ago
Can anyone look into this please.

Thanks
Srinivas Ivaturi.
16 years ago
Hi

After deploying my application, I want to change the login-config.xml file using a program rather manually. Which API can I use to do that?

Thanks
Srinivas Ivaturi
16 years ago
Hi

I am facing a varitey problem with ANT. I have written an ant Script which Installs me a WAR file into Tomcat. I have one more Task to uninstall also. When I use uninstall It is giving me some HTML dump on my command line and at the end it is saying BUILD FAILED. But When I check with Admin pages WAR files is uninstalled. What could be the problem with Script. Here I am pasting the script I am using.



<!-- Tomcat Ant Tasks -->
<project name="webmodulebuilder" default="uninstall" basedir=".">
<taskdef file="C:/tomcatTasks.properties">
<classpath>
<pathelement path="C:\Program Files\Apache Software Foundation\Tomcat 5.0\server\lib\catalina-ant.jar"/>
</classpath>
</taskdef>



<target name="uninstall" description="Remove application from Tomcat" >
<undeploy url="http://localhost:8080/manager/html"
username="admin"
password="admin"
path="/TestJ2EE"
/>
</target>
</project>


Tomcat.Properties:

deploy=org.apache.catalina.ant.DeployTask

undeploy=org.apache.catalina.ant.UndeployTask

remove=org.apache.catalina.ant.RemoveTask

reload=org.apache.catalina.ant.ReloadTask

start=org.apache.catalina.ant.StartTask

stop=org.apache.catalina.ant.StopTask

list=org.apache.catalina.ant.ListTask

Thanks
Srinivas Ivaturi.
16 years ago
Hi


When I tried to run the Ant Build contains JACL script on WAS 6.0.2. I am getting the followinf Error. Can somebody help me in this?


Unable to parse setupCmdLine: null\bin\setupCmdLine.bat (The system cannot find
the path specified)
[wsadmin] The java class is not found: com/ibm/ws/bootstrap/WSLauncher
[wsadmin] Java Result: 1


Thanks
Srinivas Ivaturi.
16 years ago
Hi

I want to do Shared Library setting for my Jboss Server. My constraints are I have a constraint that the libraries should be loaded by application level classloader. It means that
1. I cannot put them in <<Jboss Home>>/bin/run.bat JBOSS_CLASSPATH
2. I cannot put them in <<Jboss Home>>/lib

Is there any possible way to do this in Jboss. I am using Jboss 3.2.6 version. There is similar concept available in Websphere Shared Libraries where we can add the folder contains the JAR files to shared libraries and tell that folder as Shared Library to specific application.

For reference http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tcws_sharedlib.html

Can I do the same way in Jboss?

Thanks for your time and help in advance
Srinivas Ivaturi.
16 years ago