We want to push data from a server to clients but can only use HTTP (port 80). What is the best solution for messaging? One idea is Comet. Are there other ideas or frameworks which offer lets say JMS over HTTP. (Yes, ActiveMQ supports it too, but waggly IMHO. And JXTA supports it too but the configuration is complicated. Something simple...
I want to color(and give an icon to) a particular node of a JTree as opposed to in groups like OpenNode, LeafNode etc. How do I go about doing this?
...
Hi,
I am looking for a good book to prepare for Sun Certified Enterprise Architect (SCEA) exam step 1 (see here). Can anyone, preferrably with experience taking the exam, recommend one? Or two...
Thanks.
...
Strange error i received from compiler:
Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(siachoice). Found javax.faces.component.UISelectItems.
So, if he was expecting UISelectItems, and found UISelectItems, then where is the error?
My JSP implementation:
<h:selectOneMenu id="s...
Hi
I have the following problem:
I have a Web Service returning an ArrayList< CommunicationMedia > where CommunicationMedia is a superclass of many other classes and the List contains objects of these inheriting classes - the problem is, that wdsl generated does not contain any other declarations than CommunicationMedia itself - how do...
Here,job is something like a complete utility.
I need to know this to start the c/java journey!
...
I'm sending GData queries to renders traffic charts for users of Instructables.com using the Java GData package. However, this exception is sometimes thrown:
[Line 1, Column 0] Invalid root element, expected (namespace uri:local name) of (http://www.w3.org/2005 Atom:feed), found (:feed
The only mention of this error I can find online ...
We have seen a strange issue on some Windows XP machines involving the "Co-ordinated Universal Time" time zone. Not all Windows XP machines seem to have it, but on those that do, the following simple Java program
public class TimeTest {
public static void main(String[] args) {
System.out.println(java.util.TimeZone.getDefault...
In short I'm creating a Flash based multiplayer game and I'm now starting to work on the server-side code. Well I'm the sole developer of the project so I'm seeking a high-level socket library that works well with games to speed up my development time.
I was trying to use the Twisted Framework (for Python) but I'm having some personal ...
I have a web application written using freemarker, webwork and java. Now when user clicks on "getReport", java code returns the string variable (named "otchet") which contains the whole report in plain text and the following page is displayed:
simple.ftl:
<#if (otchet?exists)>
${otchet}
<#else>
<@ww.text name="report.none"/...
I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems.
It's a tool to create custom labels, so we need drag-n-drop and other related UI components.
To which technogly will you migrate given the code base is in Java.
Applet -- No
Java FX -- Adoption rate is too low...
Hi
I have webapplication which is running in my machine(written in java) and i need to find out the class files associated with html page generated by this web server.How to findout this?.
...
Normally we use singleton instance for business / dao layer. What is the reason behind pooling stateless session beans in case of EJBs?
...
Hi all
I want to develop a system that is similar to calculation of salary. A salary has a basic value. On top of it, an employee can get some Bonus (es) or Penalties. Decorator Pattern seems to fit this scenario
Salary finalSalary = new HardworkBonus(new LateComingPenalty(new BasicSalary()))
System.out.println("Your total salary is : ...
I've configured the MySQL connector for Java to report metrics using:
logger=com.mysql.jdbc.log.Log4JLogger&gatherPerfMetrics=true&reportMetricsIntervalMillis=60000
That works just fine for one data source, but when I have three there is no way to distinguish them, since they all look like:
2009-11-13 12:37:05,506 INFO MySQL ** Perfo...
I tried to store a resume in an online CRM on trying to save that i got the following exception
javax.xml.bind.UnmarshalException
- with linked exception: [javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[73,12]
Message: Character reference ""
is an invalid XML character.]
i can store the resumes using th...
Hello,
I am writing some java code so that in the code, when an event happens, it opens Microsoft powerpoint from the program and then emulates some key presses which are defined in the code. My problem is that when I ask it to emulate a key press and pass in the decimal value of the key I want it to emulate, It does it wrong. The code ...
I've been stumped for a while trying to figure out why my GWT demo app isn't working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the samples directory and ran "ant hosted". The hosted browser launches and only shows the static html content but none of the dynamically generated...
Hello all,
I'm using Sun WTK to run a midlet that needs to send and optionally receive SMS. WMA console can be used to send and receive messages to the midlet but I'd like to do the same thing using my own application.
I have done some sniffing, and noticed that the messages are sent by UDP from the WMA console to the emulator.
Does ...
The project I'm doing is written in Java and parsers source code files. (Java src up to now). Now I'd like to enable parsing Ruby code as well.
Therefore I am looking for a parser in Java that parses Ruby source code.
The only thing I have been able to find up to now are Ruby parsers in Ruby (ParseTree and RubyParser...).
I could maybe ...