Susan

Ranch Hand
+ Follow
since Apr 26, 2005
Merit badge: grant badges
For More
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 Susan

Ilja,

thanks for the reply. I understand what you are saying, however I feel at this point we arent in a position to undertake what you are currently doing, eg our lack of test coverage, and the culture of the company. Over time hopefully we can get to where you are at, but I feel its too big a jump for us now.

So at this point while a monthly release cycle isnt ideal, I feel its definitely a step in the right direction and does give us breathing room to develop off the one codebase for different customers.


thanks,

Jac
Hi,

I have exercised a simple JDepends testcase suing JDepends 2.9.1, eclipse 3.2 and JDK5 - however the testcase fails. Despite the simplicity of my example I cant work it out. Any feedback appreciated!!

My 'project' to analyze is very simple:

package a;
import b.B;
public class A {
B b = new B();
}

package b;
public class B {
}


My junit test is pretty simple too being:

public class TestJDepend extends TestCase {
private JDepend jDepend;

public TestJDepend() {
}

protected void setUp() throws Exception {
jDepend = new JDepend();
jDepend.addDirectory("bin");
}

public void testPackageDependencies() {
DependencyConstraint constraint = new DependencyConstraint();
JavaPackage a = constraint.addPackage("a");
assertNotNull(a);
JavaPackage b = constraint.addPackage("b");
assertNotNull(b);
a.dependsUpon(b);
jDepend.analyze();
assertEquals("Package dependency violation", true, jDepend.dependencyMatch(constraint));
}

}


where the classes are below the 'bin' package. However running this results in a:

Time: 0.047
There was 1 failure:
1) testPackageDependencies(TestJDepend)junit.framework.AssertionFailedError: Package dependency violation expected:<true> but was:<false>
at TestJDepend.testPackageDependencies(TestJDepend.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at TestJDepend.main(TestJDepend.java:29)

FAILURES!!!
Tests run: 1, Failures: 1, Errors: 0


any ideas?
17 years ago
I know there are quite a few open source JMS providers around. But to help narrow the reseaching, if anybody has used an open source JMS provider in a production environment that requires high availability and scalability I'd appreciate to know which product that was.


thanks,

Susan
Frank & Stan,

thanks for the well weighted replies - it makes sense.
Hi,

we need to be able to print directly from a browser to a small receipt printer connected locally to the PC that the browser is running on (without the user having to print from the browser manually). Obviously we want a thin solution - so outside of using an applet, would javascript be an option?

thanks in advance


Susan
Hi,

we need to be able to print directly from a browser to a small receipt printer connected locally to the PC that the browser is running on (without the user having to print from the browser manually). Obviously we want a thin solution - so outside of using an applet, would javascript be an option?

thanks in advance


Susan
Hi,

we need to be able to print directly from a browser to a small receipt printer connected locally to the PC that the browser is running on (without the user having to print from the browser manually). Obviously we want a thin solution - so outside of using an applet are there any other viable options?


thanks in advance,

Susan
17 years ago
Hi,

can anybody recommend a product that enables me to view the log files from our application so that it displays any logging as it happens realtime?


thanks,

Susan
17 years ago
Can somebody explain how https can be used to maintain session state, as described in the Sun Certified Enterprise Architect for J2EE - Study Guide, p144?


thanks.
Campbell & Ernest thanks for the reply & confirmation.

I have a followup question, in the javadocs of the java.text package it says "Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages." Do you know what they mean by 'natural language'?


thanks again!
18 years ago
Hi,

can somebody confirm whether the following is true or false?

Even though Java supports unicode, if the underlying platform that the JVM is running on doesnt have a font capable of displaying a Unicode character then you are out of luck?


thanks in advance,

Susan
18 years ago
I was listening to the Java Posse podcast and they mentioned that SCEA would at some point be changed to incorporate EJB3. Does anybody know if this is going to happen & if so, when?


thanks,

Susan
Edwin & Ilja,

thanks for the explanation - you have helped clear it up. Unfortunately all the examples I came across on the net didnt show the critical steps you both outlined, being:
1) the Director may have some model to feed to the builder.
2) the Directory can invoke multiple method calls on the builder to construct the complex object.

To my way of thinking, if there arent multiple steps to be performed to construct the object, which translates into the Director making multiple calls on the builder, then either the abstract factory or factory method patterns are more suitable?


many thanks!

Susan
Hi,

I have 2 questions about the Builder pattern:

1) the defintion of this pattern is "to separate the construction of a complex object from its representation so that the construction process can create different objects". What is meant by "representation" in the definition?

2) Whats the point of the director object? All it does is delegates into the builder abstraction. The client could just invoke the builder directly to create the object and then call its gettor to retrieve the constructed object? What am I missing here?

thanks,

Susan
Hi,

looking closely at the abstract factory & factory method patterns I'm sort of wondering whats the difference between them is.

As, I could easily change the factory method pattern to be the abstract factory pattern by implementing a new factory (deriving from the 'Creator' interface) and implementing a new object hierarchy (deriving from the interface returned from the factory) ?? Note that changing from factory method to abstract factory would not change any existing implementation.

Finally, the factory method pattern defines an interface for creating an object but lets the subclass decide which class to create -- this is also what the abstract factory pattern does.

thanks,

Susan