Iam writing an Application Sharing application, my company has used to choose Adobe Air for this.
After Researching on google and posting on Adobe Forums , I found that AIR doesn't allow to access the OS natively. We need to create workarounds.
I have tried and implemented Merapi and tried using J2EE based server Queues and also tried ...
I was just wondering if there was a library out there which could generate a xsd schema from a java class .
Google yields lots of results the opposite ( java classes from xsd ).
...
In the following Jackson/Java code that serializes objects into JSON, I am getting this:
{"animal":{"x":"x"}}
However, what I actually want to get is this:
{"dog":{"x":"x"}}
Is there something I can do to AnimalContainer so that I get the runtime type ("dog", "cat") of the object, instead of "animal")? (Edit: I am aware that the ...
What is the best way to set the time zone in Tomcat for a single web app? I've seen options for changing the command-line parameters or environment variables for Tomcat, but is there a way to set it that is self-contained in the WAR file and not dependent on any Tomcat configuration?
Edit: to reemphasize, I'm looking for a solution that...
Typically when I'm creating a Swing (or any UI) application, I have various Actions that appear on menu items and buttons. I usually create an action registry and store the actions in there and then when certain things occur, I disable/enable actions in the registry based on the state of the application.
I wouldn't call myself an avid Sw...
Hi,
I am using WinXP. I use java to generate a list of files. The file will be created as abc.txt.temp at first, and after completing the generation, it will be renamed to abc.txt.
However, when i generating the files, some of the files failed to be renamed. It happen randomly.
Is there anyway to find out the reason why it failed?
i...
I am deploying an EAR in a WebLogic node with many jars defined in the bootstrap (startWeblogicServer.bat) class-path. The problem is that my ear and the bootstrap contain different versions of the same jars, not only that but certain jars contain extracted third party libraries which also differ in version from the WebLogic bootstrap ...
I need as much knowledge as a college graduate! What books should I read? If you had to study PHP, Java, Ruby or Python, I'm even more interested in your answer.
...
Currently, we serialize user's session object into database but the object changed too much lately so we decide to redesign this process. We all agree that we can't serialize the whole object and we need to save it field by field. There are 2 proposals,
Store all fields in a map and serialize the map.
Use ObjectOutputStream.putFields()...
Hi,
I am looking for library (open source) like Joda Time in Java world. is there any library like that ?
Joda Time is very helpful to calculate date and time. I can add days, weeks, month, year and also can converting date and time easily.
I wish there is library like joda time for PHP
edit:
I need some functions that available in...
Hi,
I'm confused in one of the line about Business delegate that says:
Business delegate handle & abstract
any remote exception
What do they mean with the word "abstract" here? Is it just providing a details not how to implement them?
...
I am using the Javamail API connecting to my IMAP server. Everything is working great with the javax.mail.Folder.idle() method. My listener gets called when a new mail comes in. However the problem is idle blocks forever, how do I interrupt it? How do I actually stop the listening without killing my java program?
I've tried calling Thre...
Hi,
I'm using the Apache BeanUtils setProperty method to import data from an Excel file in a generic manner. I provide the parser a list of "colum name" and "property name" pairs and then the parser sets the properties with setProperty( ..., "property name", ...) for the Excel fields that match with "column name". It's working nice but ...
In the past I have used C++ as a programming language. I know that the code written in C++ goes through a compilation process until it becomes object code "machine code". I would like to know how Java works in that respect. How is the Java code analyzed by the computer?
...
hi ,
i have a little confusion..
i want to write a string in a text file which should be dynamically saved by the saveDialog
i have done this task statically.. means file with specified file name is created and text is also written from jTextArea.. but i wnt to save this file on my given location and with my given name.. can u please gu...
Recently I've faced a question : How to avoid instantiating a Java class?
However, I answered by saying:
If you don't want to instantiate a class, use "abstract" modifier. Ex: javax.servlet.HttpServlet, is declared as abstract(though none of its methods are abstract) to avoid instantiation.
Declare a no argument private constructor.
...
With the following settings:
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.maxFileSize=100KB
log4j.appender.file.maxBackupIndex=5
log4j.appender.file.File=test.log
log4j.appender.file.threshold=info
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{AB...
Hi . i want to display a set of records in a grid view format in jsp. i am able to display using html table and tags. But now requierment is to display in gridview format so that we can do edit and update more than one records simultaniously. can anyone help me out regarding this,
Thanks in advance
Malathy.L.
...
I've been a "Microsoft developer" ever since I started programming... I started out by learning QBasic then ASP & Visual Basic and finally I moved on to learn VB.NET, ASP.NET and C# which is now my primary language. Still I've always wanted to learn something like Java or C++ to see how what the "other side" is like, and to learn the pro...
Hi,
What the following line is saying about model component in MVC pattern:
If the model adheres to a strict
contract (interface). then these
components can be reused in other
application areas such as GUIs or
J2ME.
Does the above line mean, if the model components implement any interface based on any GUI and J2ME applicat...