Tom George

Ranch Hand
+ Follow
since Jan 28, 2004
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 Tom George


The problem described must be commonplace and surely must have been discussed before. Apologies for bringing it up again.

I have a simple action class named say Hello in struts.xml, and have the validations specified in xml (Hello-validation.xml). The messages come up when invoking Hello. How do we prevent the messages from appearing when invoking 'hello.action'? They should appear only when the user posts the form.

Read somewhere that S2 will ensure this when the action class returns INPUT. That does not seem to work. A bit curious about the best practice to follow here...
11 years ago
A reply in less than 10 minutes. Javaranch rocks

Your last idea - cache and write - seems interesting. Will sleep on it. Thanks and have a nice day.
11 years ago
Alfresco seems to be more of document management rather than CMS. The other commonly referred java based CMS tools are OpenCMS, Magnolia, infoglue, MMBase.

There are many articles comparing these. But when it comes to the operational aspects, information is hard to find. I am trying to find a best practice on content management in a clustered environment. For example, can one CMS server serve contents to four instances of a webapp?
11 years ago
A problem that should be sufficiently common:

There is this webapp, and user activity on pages is logged in files. Problem is, when there is high user activity, the logs will not show user activity sequentially. Consequently, when there is a need to trace what user John Doe was doing at, say 1430 GMT, there is a bit of a headache

One obvious solution would be to log into a database with session id, user details activities etc and pull up a report. Is there any other solution than that?
11 years ago
Does Javaranch have a dedicated forum for Java Management API / JMX / mbeans? I couldn't find one..
11 years ago
RPC makes sense when you want to convert an existing function to a web service call. Essentially you give provision to switch back and forth between java & xml to expose your methods for a web service call. This is usually the case when you migrate existing functionality as such to web services (which IMHO is a bad idea anyway !)

Document based services are used when you pack together a set of data as xml and send it over to the server, which does a set of functionality and give you back some data as xml. For example, add goods to inventory, update an order processing system, send mail etc (maybe as an asynchronous process) Here you are more concerned about grouping business rather than migrating your java functions as web services.

Performance improvements of one over the other? hmm.. none - if the same functionality involved is the same.

Folks, correct me if I'm wrong !!

14 years ago
Hello there,
Not sure if this thread is relevant in a JSP forum; Maybe you can try deleting and recreating the procedure, create it under a new name etc and then try to call it. Maybe check how you're connecting to the database to make sure you're going to the right table. This should not be related in any way to the fact that you're running JSP in Tomcat.

Cheers!
14 years ago
JSP
Hello there,
Not sure if this thread is relevant in a JSP forum; Maybe you can try deleting and recreating the procedure, create it under a new name etc and then try to call it. Maybe check how you're connecting to the database to make sure you're going to the right table. This should not be related in any way to the fact that you're running JSP in Tomcat.

Cheers!
Well, IMHO, what is easy for the developer isnt always the perfect way, right? If your web services have different functionalities and are distinct entities, it makes sense to separate them. Anyway the WSDL has to go over the net and the "small-is-beautiful" principle applies..

Of course, I could be wrong.

14 years ago
Well, it seems the Weblogic ant task looks for public methods; any method declared as public is exposed as a web service.

Well folks, no one helped me !


But anyway,
14 years ago
I'm using the servicegen task to generate a web service server side component out of an existing class. Script as below.


<target name="ear">
<servicegen
destEar="${build}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="mypackage.ExistingAppService,mypackage.ExistingAppHelperClass"
targetNamespace="${namespace}"
serviceName="MyWebService"
serviceURI="/MyWebService"
generateTypes="True"
expandMethods="True">
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>

The class "ExistingAppService" has got a number of methods, and I just want to expose one method as a web service. But the servicegen task seems to expose all the methods in the web service. How can I specify the individual methods? Yes I did go through BEA's documentation but it seems a bit vague about this.

Yes the web service works fine with the method in question.
14 years ago
Thanks Henry.

What I am trying to do is to change a few application properties at runtime without having to restart the server, and thought JMX would be a neat way of accomplishing this. And btw, I am working with a product, which means that I cannot rely on implementation specific things. ie, cannot rely on JBoss or BEA libraries, and have to work (as much as possible) with the Sun JDK itself. That was why I was asking whether JMX was supported in JDK 1.4.2 and before..

15 years ago
Not too familiar with JAXB, but if it is expecting input from some property file, the folder containing the property file should be included in the classpath, right?

15 years ago
Umm.. wasnt too sure where to post this, anyway.

Is it necessary that JDK5 is needed for coding mbeans using Java Management Extensions API? How to do this with JDK 1.4.2, and the versions before that?
The library package structure for jmx isn java.lang.management.*, and by conventional wisdom, the java.lang related stuff should all lie in rt.jar, right? But couldnt find this in my rt.jar in jdk1.4.2 ?

Could someone point me in the right way?
15 years ago
Normally this error shouldnt interrupt your thing. It pops up in the logs for me all the time. Anyway, to remove it, set the classpath as follows
javax.activation.DataHandler - Activation.jar from Sun's site
javax.mail.internet.MimeMultipart - j2ee.jar (if you're using Websphere) or weblogic.jar (if using BEA weblogic)

15 years ago