Is there a free package for reading, manipulating and writing ASN.1 in Java?
It must be:
Free
Lightweight
Self-contained (without external dependencies on, e.g. Apache commons)
Java 5 (not Java 6), and Java 4 is preferred.
...
By both running test programs and looking at source code, it is clear that the method, as implemented by Sun, does not simply yield time to the specified thread, but actually it first attempts to obtain a monitor on the thread object. Specifically, the method is implemented as "synchronized."
Note that the wait and notify methods also ...
I have a JEE application that runs on WAS 6. It needs to have the class loader order setting to "Classes loaded with application class loader first", and the WAR class loader policy option set to "Single class loader for application".
Is it possible to specify these options inside the EAR file, whether in the ibm-web-bnd.xmi file or so...
If you had to audit a Java application for worst-practices when it comes to high-availability and disaster recovery, you would probably look for hardcoded IP addresses and suboptimal caching of bind handles. What else should be considered?
...
Currently, I have two selenium-junit tests configured to run on bamboo about the same time. One test runs on MachineA (selenium etc. installed) and the other on MachineB (selenium etc. installed). When kicked off, bamboo builds the one on machineA and enqueues the one on machineB. My question is why cant bamboo handle multithreading? or ...
Please suggest some elegant way to convert
arrays of arrays to collections of collections and vice versa in Java.
I suppose there's no convenience methods in the Java API, right?
public static <T> T[][] nestedCollectionsToNestedArrays(
Collection<? extends Collection<T>> source){
// ... ?
}
public static <T> Collection<Collecti...
In a DirectoryWalker class I want to find out if a File instance is actually a symbolic link to a directory (assuming, the walker walks on UNIX systems). Given, I already know the instance is a directory, would the following be a reliable condition to determine the symbolic link?
File file;
// ...
if (file.getAbsolutePath().equals(fi...
Hi, I'm writing an class for a hash table in java... can you please make sure that I am doing it correctly so far.
I need to store StudentRecord objects in it.... I am calculating the hash value based on the student's ID which is of type long...
package proj3;
import java.util.LinkedList;
public class HashTable {
LinkedList<Stu...
If I have an LinkedList of Employee objects...
Each employee has a Name, and an ID fields.
I have linkedList call list....
If I want to see if the list contains an employee I do:
list.contains(someEmployeeObject)
How about if I want to see if the the list contains an employee based on the imployee ID..
let's say I have the followi...
Hi,
I was wondering if someone could tell me the best way to call a Visual Basic program from JAVA. I have a few VB applications that I want to run from a JAVA application that I'm building.
Thanks!
...
Presently, for each query, a Prepared Statement is created and reused. I am not using any connection pool. C3P0 is a widely recommended library for the same.
But, as a PreparedStatement is tied to a connection. In the pooled environment, the connections are returned to the pool, effectively making PreparedStatement unusable. Am I corr...
Fairly recently I have picked up a very useful web service framework, Jersey (JAX-RS aka jsr-311; and its rock start implementation), and a nifty validation library Hibernate Validator ("Bean Validation API", jsr-303).
Both of these jsrs are relative new-comers, which makes me wonder what else I may be missing -- given that there are h...
I'm working on this homework that's kind of confusing me...
I am provided with the following BinarySearchTree class
import java.util.NoSuchElementException;
/**
*
* @param <T> The type of data stored in the nodes of the tree, must implement Comparable<T> with the compareTo method.
*/
public class BinarySearchTree<T extends Compara...
Here are the constraints
I have three buckets (water) capacities 10 litre, 2 liters and 50 litres.
I will be given another bucket of water from 0 to 100 litres
I have to fill buckets in order 10 first, 2 next and 50 last. Anything extra can be disposed.
How best can this be done with the least lines of code? while loop? ideas please...
I'm using Spring with Hibernate as a JPA provider and are trying to get a @OneToMany (a contact having many phonenumbers) to save the foreign key in the phone numbers table. From my form i get a Contact object that have a list of Phone(numbers) in it. The Contact get persisted properly (Hibernate fetches an PK from the specified sequence...
Hello,
i will use a query like this in ejb ql:
Select * from whe A&1;
But i have the following error:
line 1, column 171: unexpected char [&].
How can i use this operator to check the bits in a row?
...
Is it possible to create widgets / portlets in GWT that can be dynamically loaded and added to a GWT web application, and where the GWT widgets can reside in a separate war files?
To clarify my question:
JSR168/JSR286 compliant portals make it possible to create portlets in separate projects (war files) and to dynamically load these int...
Likewise are there design patterns that should be avoided?
...
Unlike Java, why C# treats methods as non-virtual functions by default? Is it more likely to be a performance issue rather than other possible outcomes?
I remind reading a paragraph from Anders Hejlsberg about the several advantages the existing architecture is bringing out. But, what about side effects? Is it really a good trade-off to...
Dupe: http://stackoverflow.com/questions/185594/java-generics-syntax-for-arrays
I want to create an array that will hold linked lists of Integer type..
import java.util.LinkedList;
public class Test {
public static void main(String [] args){
LinkedList<Integer> [] buckets = new LinkedList<Integer>[10];
}
}
I ge...