Tejas Aryan

Greenhorn
+ Follow
since Apr 12, 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
2
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tejas Aryan

There is no need to define the namespace prefix separately for <soap:Body>. The namespace prefix is already defined in . The other thing I see missing is end tags for <soap:Body> and <soap:Enveloper>. Check if the response has the end tags as well.
12 years ago
I am assuming the build file here means, your different war files. Does log files give you any information on why the build (wars) did not get deployed. There must be some information.
12 years ago
Can you check if CATALINA_HOME is set to some other installation of Tomcat. Also check your classpath environment variable for JDK settings.
12 years ago
Try executing the batch file with "Run as administrator" option by right clicking on the batch file.
12 years ago
To all,

Being in IT industry requires you to keep yourself update with new technologies in software domain coming up. Latest patterns, latest release, etc etc.. I usually try to follow up in sites like theserverside.com, infoq.com . I am trying to look out for more sites/newsletters .. Can you update this thread with what you guys follow ?

Thanks.
12 years ago
Hi,

The question is too simple but I need some definite understanding. Many xml parser have some API that enable the XML to validated against XSD. Typically the name of XSD is given in the form of namespace like http://mycompany.org/sampl.xsd. So the question here is how does the xml parser knows the exact location of xsd. Does it looks for in classpath or path defined through some APIs ?

I am trying to find definite answer but if someone has the answer kindly post.

Thanks.
There could be multiple approaches on how this can be done like maintaining a small data base in device. It depends how big you want your dictionary to be. One possible solution would be to integrate with some 3rd party library which exposes some kind of web service which your android app can use. Of course, here the user should be able to connect to internet. So start by knowing how to integrate your app with external web service.
12 years ago
Read in one of the forum that tomcat's inbuilt jndi can be used to attach the object and then this object can be referenced from other servlet context. I have not tried this, though. However, even if this works this will tie my application to tomcat. Any other options ?
12 years ago
The tomcat runs on one JVM. Suppose the tomcat has 2-3 web applications, say A, B and C. A class in web app A declares a static variable int xA = 5; Since there is only one JVM this variable is created there. My question is can class in other web application,B, access this variable through some means if not directly ?. I don't want to use any web services/ rmi etc.
12 years ago
UTF-8 is primarily meant for globalization. To make your jsp page render non-English characters. It doesn't work well for special characters like #,@ etc. The only way , as far as I know, is to encode at origin and decode where it is received. I have posted a similar question in Servlets forum.
12 years ago
I want the encoding scheme but I should not do it explicitly everywhere in my application. It should be somewhat like declaring char-encoding in Connector element of tam server.xml file.
12 years ago
I have a URL in form http://localhost:8080/custserver/customer/{custId}
The custId I receive can have any characters. It could be cust#101, cust/101, cust@mail.com etc.

If I encode the URL on client side, the other url delimiters are encoded. The other option is to extract the custId part and encode and append again to URL and send to server. On the server side, I decode it again to get the original custId. Is there a way where I can avoid this explicit encoding/decoding. ?
12 years ago
If there is no restriction on the data structure to use, change the implementation to SortedSet and use TreeSet as implementation. Note that you need to give a Comparator interface implementation.
12 years ago
Personally, I would say that don't believe the findings of these tools are rule written on rock. There are ways to configure the tools to tweak some rules. It's better to speak to some expert if you have iota of doubt.

In case of passing objects to method parameters instead of primitives, the reasons I can think of :

1. Java is considered as object oriented language. So deal with objects where-ever you can.
2. Passing primitives as object would give access to some more functionality related to object.
3. By passing objects, there is a scope of extending some functionality.

Of-course, the above objectives can also be achieved by passing primitive and converting to object inside method.
12 years ago
Other option is to move the business logic from ejb method to another method (public or package private) and test that method.
12 years ago