Hi All,
I'm creating a java program that creates a file and fills it with data in string form with each field in the record limited to a specific length.
What I think I need to do is to create a class that has a string for the data field and a length specifying the length of the string. And then somehow restrict it so that the string n...
Hello,
I have created one form using Swing in Java.In the form I have used one textfield on which I have to set the focus whenever I press the key.How to set focus on a particular component in Java ?
...
I am using the Apache tomcat server for webserver and OPEN NMS server(in separate system). I am modifying the OpenNMS jar file to support our application. But if I want to add some code for Assets to add/modify the Assets table in OpenNMS DB then it is giving "HTTP 503 error". For other module (alarm), the same is working but for Assets ...
I currently have a GWT application which uses the RequestBuilde to
send messages to a servlet I have (using POST and GET), and my servlet
(in doPost and doGet) "pauses" the request (this is done by using
Servlets 3.0 spec) and adds it to a queue.
Additionally I have a
Daemon thread which runs in the background and "plays" the request...
When I run following code through Main method, it works fine but when i try to execute it on click of swing button, it hangs.
Please help
import java.util.Hashtable;
import javax.naming.AuthenticationException;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.nami...
Is there any alternative way to implement Switch Case in java other than if else which is not looking good. A set of values will be there in combo, according to selection corresponding method has to be executed.
...
My example is using the ImplicitViewable configuration feature (see WEB-INF/web.xml) and implicit viewables approach, where the JSP pages are mapped via being placed at the right
path corresponding to the appropriate resource package name. It doesn't work. What should I do as an extra?
if ${it.name} is written into jsp file also resour...
I've the JBoss and Hibernate based system.
And I need to process two long operations. Operations can be probably longer than transaction's timeout.
It operations are persists many-many entities, in two different transactions.
And if something goes wrong, during this operations, I should rollback all changes of the transactions.
What's ...
Hello,
I have to set a focus on the text field depending upon the key event I get from BarCode gun instead of keyboard key event.How should I differentiate these key event ?
...
I am a newbie in Hibernate.
I am working on a cloud service data access layer.
Currently we are using Hibernate for OR mapping and as data access layer using Hibernate annotations. But lately i have been asked to implement Hibernate/Data Access layer in such a way that my stored procedures be in HQL and we can change our DB at a short ...
Hello, I'm refactoring legacy C++ system to SOA using gSoap. We have some performance issues (very big XMLs) so my lead asked me to take a look at protocol buffers. I did, and it looks very cool (We need C++ and Java support). However protocol buffers are solution just for serialization and now I need to send it to Java front-end. What s...
Hello, I am using jboss 4.2.3 with metro. I deploy an EJB 3.0 web service without error but when I try to call its wsdl it throws me:
java.lang.NoClassDefFoundError: Ljavax/servlet/http/HttpServletRequest
What is happening? I have servlet-api in the lib.
...
In Java, one can create instances of a class without actually calling a declared constructor by retrieving one via sun.reflect.ReflectionFactor.newConstructorForSerialization().
As far as I know, this special constructor is called "munged". Where does this term come from? I could not find it in any dictionary.
...
Hi,
I want to read file from client system, I have path of client system where our file is generated,
I want to use WSDL to do this functionality ... I am new to WSDL if any body already did please guide me how to read file from client system with WSDL ....
Any Help Appreciated ...
EDIT :- The requirement is like ... We have client c...
I am using hibernate 3.2.2 in my application. For connection pooling, we are using c3p0 0.9.1.
I am using Generic DAO Pattern and Open Session in View pattern to do database operation.
We are working on new website of existing website. Right now, the no of visits is half million page visit in existing application. I am confused with t...
I am A MCA 2009 Pass out and I like programming in C#.Net and also know PHP/MySQL, Java. I am confused which programming language should I choose (C#, PHP, Java) will have great future. I love all the three languages and also interested in learning new languages. But want to concentrate on any one language. Can you suggest me?
...
I would like to get a list of all subclasses of a given class with their fully qualified names. I wanted to copy it from Eclipse and paste into a text file like this:
some.package.Class1
some.package.Class2
some.other.package.Class3
...
I've tried:
doing Search | Java | Type, Limit to implementors. But this one for some strange ...
JavaFX provides a feature Drag-to-Install simply by dragging them out of your browser - you can then relaunch the applications directly from your desktop. How different is it different from JNLP? Or how easy or advantageous it is over JNLP in terms of distributing content over the web?
...
I need a queue that can be processed by multiple readers.
The readers will dequeue an element and send it to a REST service.
What's important to note are:
Each reader should be dequeueing different elements. If the queue has elements A, B & C, Thread 1 should dequeue A and Thread 2 should dequeue B in concurrent fashion. And so forth...
Hi friends,
I want to send the raw audio buffer to c++ for audio transcoding.
I have two option
using piped stream
using direct buffers (java.nio)
Are these really my 2 best options (and which would people recommend?) Thanks!
...