| Hibernate and Eclipse -- where to start? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- PrintServiceLookup.lookupPrintServices fails to list new printers until re-start (JDK1.4.2_03, Linux RedHat, Tomcat 4.x)Hi Forum,
How could I get
javax.print.PrintServiceLookup.lookupPrintServices(null,null) to return the
current available services while the program that uses lookupPrintServices
is running? In a tomcat servlet I use the lookupPrintServices(..) to get a
list of the printer services available. The class works well and returns the
list but if I install a new printer, the servlet does not list the newly
installed service until I restart Tomcat. Is there a way to unload and
reload the PrintServiceLookup class and then call
PrintServiceLookup.lookupPrintServices?
It appears that the lookupPrintServices(..) returns the list of services
that was available when the instance of the virtual machine was started.
Hence, while the instance is running, it allways returns the same list of
services. If I run a program that lists the services and then exits, the
program lists the newly added printer on re-run. But if the program never
exits (it runs in a loop, re-listing the services every so often), and I add
a new printer while the program is running, the newly added printer is not
listed until I terminate teh rpogram and re-start it.
Thanks in advance for your responser
- 1
- what i do wrong???Hello All!
I think I have a mistake in my logical sequence of thoughts...
When I want to take influence on my JComponents (JTextField,
JCheckBox, etc.),
do I have to place a listener within the constructor???
My problem was the following. I wanted to get the values from my
different JTextFields an write them to any *.txt file. That did only
work, when I inserted a KeyListener who registered any changes in the
text fields. But my real problem is now, to get the values back from
the *.txt file an set them with setText(String) in the text fields.
This don't work.
I have seen in the NG, that there will be oft spoken about
revalidate() or repaint(), but that don't work anyway.
It does not matter, what I want to do - set a component enabled, or
disabled or what ever, I have to have an adequate listener within the
constructor so that the changes will be visible, isn't it that way???
For example:
public void any_method()
{
myTextfield.setEnabled(false);
}
// IT DON'T WORK
// ...but I don't know why. When I put it within the constructor, it
works...
I don't know what to to. I know it from MFC, there I could get
influence on my components in any method.
I don't know what I do wrong in Java.
(My program is an application with JFrame and SWING componets. I use
JTabbedPane and for each tab a Jpanel)
There must be a simple solution for my problem (I hope so).
Please led me out from this dead-end street.
Thanks in advance
Dariusz
- 2
- Location of Temp Directory?I'm having an app developed for me and they are storing the files in a
newly created folder on the C: drive but I don't want to make directory
there. Is there not a way to get the temp variable for machine, like
%temp or %tmp? Thanks
- 2
- performance and memory usage.
Hi
I created a test program to try the speed and size management of the JDK
HashMap. With regards to this I was wondering if anybody has any
comments on whether this is an appropriate way of testing this
performance, i.e. how realistic is the results with respect to caching
influence of data, heap management etc. The code is simple, but would it
produce a correct result. (the program finishes in 11 seconds on my
machine). the code is attached.
Secondly, I was wondering about the memory (heap) usage in java for this
program. It needs at least 256 MB of heap to run to finish. cmd:
java -Xms32m -Xmx256m -cp target/classes/ App
Using -Xmx128m causes OutOfMemoryError.
When calculating on the size of the datastructure i find approx that
2M Dto's = 16MB
2M Integer's for map key = 8MB
2M Integer's for ArrayList = 8MB
Thats a total of 32MB plus some megabytes for the objects,
datastructures, JVM and so on. So probably about 48-64MB in total.
Thats a completely different number from 128 MB or 256 MB.
Does anybody have any comments on why the program requires that much memory?
arnie
*****************
/* Create 2 million Dto objects with random data and insert into HashMap
also add key to an iterable list */
public void test1() {
int size = 2000000;
Map<Integer, Dto> hmap = new HashMap<Integer, Dto> (size);
Collection<Integer> alist = new ArrayList<Integer> (size);
Random r = new Random();
Dto data;
for (int c=size; c>0; c--) {
data = new Dto();
data.ip= r.nextInt(2000000000);
hmap.put(data.ip, data);
alist.add(data.ip);
}
int c = 1;
for (Integer d : alist) {
hmap.get(d);
}
}
/* Simple data placeholder */
public class Dto
{
public int ip;
public int serialnum;
}
- 2
- src.zip of j2ee1.4 sdkHi,
I downloaded the j2ee1.4 sdk, but I can't seem to find the source files
in that package. They used to be in a src.zip file, or not? Anyway I
already looked at the Sun website, but I didn't find a URL to download
the source files from.
Kind regards,
Dirk
- 2
- How to receive events from a jcombobox in an internal Jpanel ??Good evening,
I've a Frame with two Jpanel, in Jpanel1 I've a Jcombobox and it's
listener while in Jpanel2 I've a JLabel where I want to write the
selected value of the Jcombobox,
Jpanel1 , Jpanel2 and the main frame are in 3 separate class and files,
this because I want to arrange a modular design.
My question is how I can receive in the main Frame the event coming
from Jcombox value changed in Jpanel1 ???
Thanks for your help
Antonio
www.etantonio.it/en
- 2
- JComboBox strange behaviorHello!
I have interesting problem with javax.swing.JComboBox (java 1.4.2)
When I click at combo to open list - there is no reaction to mouse
moves except these on combo header or outside my combo. So I cannot
choose any item from the list.
But I can use keyboard...
This is default combo, I've just create it and populate some Strings
into it.
any idea what's wrong?
B.
- 2
- Image Processing Problem. Need HelpHello, I am writing a web application with Java. There is a function that
user can upload a picture to server, and the server will resize it. I am
using the Java API to do this function. However, the result is not very
satisfactory. The resized image quanlity is very bad.
Can anyone reccommend that any way or tool can resize image with good
quality?
Please help. My boss needs me to complete this project this week.
Regards,
Chris
- 4
- Error :could not initialize interface awt - Exception:java.lang.ExceptionInInitializerErrorHello
i had problems by the install of the german language pack 6.0.2.CF1
for a Lotus domino Server 6.0.2 CF1.
the System:
Acer altos 19000 Server
2X Pentium Pro 200 Mhz
512 MB Ram
OS windows 2000 Server SP4
the Update of the Notes Server was no Problem but when I tried to
install the Language Pack German (its an Java install Wizard ) there
coms the following Error Message :
Error :could not initialize interface awt - Exception:
java.lang.ExceptionInInitializerError
and if i installd the java software jre 1.3.1 standart the Aplet in
Systemcontrol could not be opend without anny Error Message.
what can I do?
Please help.
Thanks for Help
Stefan Germany
- 10
- Precision problem with doubleHi everyone,
I am a Java beginner, and I am trying to create a very simple binary
tree.
Each node has a value, the left child has the same value + an
increment, the right child has the same value - the same increment.
I try to recursively create the tree, but I have precision problems.
My "main" node has a value of 10, the increment is 0.1, tree depth is
4
So i want a tree that goes like this :
depth 1 : 10
depth 2 : 0.9 / 10.1
depth 3 : 0.8 / 10 / 10 / 10.2
depth 4 : 0.7 / 0.9 / 0.9 / 10.1 / 0.9 / 10.1 / 10.1 / 10.3
But at depth 4 when I try to print the value I get 9.700000000000001
instead of 9.7, and 10.299999999999999 instead of 10.3
And things get worse when the depth increase.
All the values and increment are stored in double (native type).
Is it normal? How can I avoid this problem?
Thanks a lot,
Tom.
[main class]
double increment = 0.1;
double startValue = 10;
int maxDepth = 4;
Tree myTree = new Tree(startValue, 1);
myTree.recursivelyCreateChildren(increment, maxDepth);
[Tree.java]
public int depth;
public double value;
public Tree leftChild;
public Tree rightChild;
Tree(double value, int depth){
this.value=value;
this.depth=depth;
System.out.println("node of depth " + depth + " created, value = " +
value);
}
public void createChildren(double increment){
rightChild = new Tree(value - increment, depth+1);
leftChild = new Tree(value + increment, depth+1);
}
public void recursivelyCreateChildren(double increment, int maxDepth)
{
if (depth < maxDepth){
createChildren(increment);
leftChild.recursivelyCreateChildren(increment, maxDepth);
rightChild.recursivelyCreateChildren(increment, maxDepth);
}
}
- 10
- Any HID support for Java?Human Interface Device (mouse, etc)
Does anyone know whether java support the HID devices? (under MS
Windows)
I checked the document but did not see any. A google on this group
also returns little information.
Thanks a lot.
- 11
- show a form from anotherPlease bear with me as I am pretty new to Java.
I am developing a Java Client application.
I have a frame with a button. When I click on the button, it hides the
current frame and opens another frame which is in another class.
When I click on a button on this second frame, I want to close it
(this.dispose) and show the first frame.
The question I have is:
From the second class frame, how do I reference the first frame?
I don't want to close the first frame as I want to keep any data entered.
TS
- 13
- Java encryption <--> .NET encryptionHajo,
I need to exchange encypted data between
.NET and Java environments. The first
problem I encountered is that symmetric
ciphers in .NET needs initialization
vector and Java counterparts don't.
Can some one point me out the place
where I can find any practise and
patterns for encrypted communication
between Java and .NET ?
thanks for any info
Gawel
- 13
- Reference and Garbage CollectionI'm not quite sure about what kind of references to an object determine
its "alive" quality and its readiness for garbage collection. For the
moment I understand that *any* living reference, including non-explict
of member classes, keep the object alive.
Would you agree that the follwoing class "NeverRelease" entails
instances which will never get prone to garbage collection?
class NeverRelease
{
Child1 child;
public NeverRelease ()
{
child = new Child1();
}
private class Child1
{
}
}
While would you also agree that instances of the following class
"AlwaysRelease" always become garbage because the member class is static
and hence does not take reference to the enclosing class?
class AlwaysRelease
{
Child2 child;
public AlwaysRelease ()
{
child = new Child2();
}
private static class Child2
{
}
}
- 15
- Is Eclipse the Commercial IDE Killer?Thomas G. Marshall wrote:
> Super Spinner coughed up:
>> Tim Tyler wrote:
>>> In comp.lang.java.advocacy Super Spinner <email***@***.com>
>>> wrote or quoted:
>>>
>>> [Eclipse plugins]
>>>
>>>> I'd say that anyone that came up with an extension wouldn't be able
>>>> to make money because an OSS group would make a knock-off and give
>>>> it away for free.
>>>
>>> Your argument apparently suggests that nobody can make money selling
>>> software. I think history has proven that that is not the case.
>>
>> I think that one can make money by selling software only if the
>> software is "complex", where "complex" means "too complex to be
>> satisfactorily knocked off by OSS". And the set of "complex" sofware
>> becomes smaller and smaller, as OSS commodotizes more and more
>> markets. I used to think that something like Excel was sufficiently
>> complex to be safe from OSS, but I now know that within the next 5
>> years the spreadsheet market will be fully commodotized and therefore
>> not profitable. The same goes for all "office"-type apps. The same
>> goes for Photoshop and the like.
>>
>> The only software that I can see being safe from commodotization is
>> software that requires special domain knowledge, knowledge that devs
>> themselves do not possess and aren't likely to obtain in a competent
>> manner. Something like tax preparation software; this requires expert
>> knowledge of the tax laws and accountants that have such knowledge
>> aren't foolish enough to work for free like software devs appear to be
>> eager to do. So I can't see OSS "winning" in that space (yes, there
>> are OSS tax preparation packages, but the vast majority won't trust
>> that the devs understand the tax laws enough to trust those packages).
>>
>> Now, as for IDE extensions, sorry, there's no way that those are out
>> of the reach of OSS commodotization. Any extension would be knocked
>> off within a year, so the developers of the original would only have
>> one year to recoup the initial investment of resources and I don't see
>> anyone bothering to try. So nearly all future IDE extensions will
>> have to come from OSS from the get-go.
>>
>> A lot of OSS starts life as poor man's versions of commercial software
>> and gradually improves, but as commercial software is killed off, new
>> software inventions will have to come from OSS itself.
>>
>> As for individual programmers, they'll have to make money by working
>> on in-house stuff or custom solutions for a contractor, because it'll
>> be quite difficult to make money selling software to the general
>> public since OSS competition will make such an effort prohibitive.
>
> I have said for a lonnng time that if you write free software, you are
> only
> making it more difficult for other software engineers to earn a living. I
> don't mean small little utilities, like OE_QuoteFix and the like. But
> creating entirely free large scale applications doesn't make you a hero,
> it makes you a villain.
>
There's an easy solution to this. All the "for money" people have to do is
WRITE BETTER software...
I can't believe that projects like Eclipse are doing so well, simply because
they are OSS. It's because they are better...
--
******************************************************************************
Registered Linux User Number 185956
FSF Associate Member number 2340 since 05/20/2004
Join me in chat at #linux-users on irc.freenode.net
Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
7:42pm up 10 days, 4:15, 1 user, load average: 0.05, 0.07, 0.03
|
| Author |
Message |
dexter

|
Posted: 2005-2-25 12:43:00 |
Top |
java-programmer, Hibernate and Eclipse -- where to start?
Hi folks,
This began as a thread in comp.lang.java.programmer, but the focus has
really moved toward db stuff, so I repost bits here. For the full
thread, see "searching for yoda - a developer's tale" at:
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_frm/thread/aa12c688b702cc72/f769b8aebe720db5?_done=%2Fgroup%2Fcomp.lang.java.programmer%2Fthreads%3Fstart%3D0%26order%3Drecent%26&_doneTitle=Back&&d#f769b8aebe720db5
[...] how to fit Hibernate into Eclipse. Again, my problem statement
is that I naturally work with objects and object graphs and would
prefer to spend most of my development effort in this domain. I would
like as much as possible to have mapping and schema handled by the
tool. It *seems* to me that the "natural" mode for Hibernate is to
start with the mapping and use the tools to generate Java and schema.
This is still better than starting with a relational model.
The learning required for these technologies is what I'm confused
about. What exactly do I need to learn? I have a couple of Hibernate
books (the "in Action" is one of them and is, so far, quite good). The
API seems reasonable and not too intimidating. If I were still a
vi/JDBC coder, I would simply add Hibernate API as a tool and
incrementally move forward. But, now that I'm a full-fledged Eclipse
user and committed to focusing on the object model, I'd like to (1)
integrate Hibernate into Eclipse (via any of the afore-mentioned
plug-ins or others), and (2) try to work from the object side of ORM.
Online docs for the plug-ins to solve (1) seem weak. It's hard to tell
which plug-in does what, and what the advantages/disadvantages of each
might be. (2) seems to imply, from my reading, a need for XDoclet or
some other Attribute-Oriented solution to bury the necessary hibernate
tags into the code. Once again, the docs I've found seem weak. More to
the point, as I've mentioned, each new link leads to five others and
their associated technology requirements...It just gets out of hand
quickly. My hope is for someone here to point the way through the fog
and say "here's how to integrate Hibernate" or perhaps "don't bother
integrating Hibernate, use this basic config file and modify as
needed", etc.
Any guidance would be greatly appreciated.
-don.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- KENT DOLAN == DUSTY HILL!!! (was: Travelling Salesmen, the Gimpand KPDolan)"JTK" <email***@***.com> wrote:
> dragonfly99 wrote:
>> i saw your webpage. i was impressed.
>> http://www.anycities.com/user/xanthian/TravellerArt/TravellerArt.html
>> Can you lay down more specifics about
>> the structure of your Travelling
>> Salesman and/or random walk
>> algorithms? i'd be much obliged.
See http://www.well.com/user/xanthian/java/TravellerDoc.html ;
sadly that links to a jar file containing a version about
1/3rd the size of the one I'm running now, which contains a lot
more featuritus captured as Java, but is nowhere near ready to
publish. If you want a "warts and all" copy of the current work
in progress, I can send one to you by email.
> OH MY GOD, KENT IS ACTUALLY ZZ TOP
> BASSIST DUSTY HILL!!!!!:
Funny you should say that. When I was
courting my current wife, she showed the
secretaries working for her a picture of
me, with an earlier incarnation of the
same beard (this was 1991) , and to a
one they responded: "You're marrying ZZ
Top!?!" I was a lot cuter then.
> http://www.lowpft.com/dustwed2.jpg
> http://www.anycities.com/user/xanthian/KentImages/KentByTreeHeadAndShouldersNoFlash.jpg
Posting unworkable URLs doesn't much
help. In anycities rabid insistance
that you get a chance to read one of
their misleading and deceptive "improve
your website" ads, before seeing
anything useful, they disable direct
access to anything that isn't an HTML
file they can corrupt.
To see the above picture thus takes
two steps:
Click here:
http://www.anycities.com/user/xanthian/KentImages/KentImages.html
Then choose the top link "this" to see
the above picture. If you look at some
of the others, you'll notice I've added
a bit of fur.
> TELL ME WITH A STRAIGHT FACE YOU CAN
> TELL THE DIFFERENCE!!!!!!!!
How to tell it's Dusty and not Kent the
man from xanth:
1) Dusty still has a lot of orange color
in the sides of his beard; mine is snow
white except for a score of black hairs
in my moustache.
2) No time in my entire life have I had
a babe like that on my arm, counting two
wives and a daughter all in wedding gowns.
> HE'S BAD, HE'S NATIONWIDE!!!!!!!!!!!!!!!!!!!!!
Worldwide actually, but hardly
admirable.
xanthian, the homelier twin.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
- 2
- Logging APIHello,
I have been using the logging API to log HTTP requests. I have an
object, which resembles a HTTP request and has methods to extract the
typical fields of a HTTP request.
Now, I have noticed that you can only pass log messages as a String and
not as an object. Also I saw that Formatters format "around" this
String. I think that is quite a limitation for my purpose.
What's if I have different Log Formats, which I would like to apply.
For example, there are different levels of verbosity. The apache log
format "combined" sends more output then "common". Maybe I also want to
define my own custom ones.
Then I would like to have a Formatter for each output Format. Do do
that, however, Formatters would have to be able to work on those HTTP
objects, which contain the fields.
That does not seem to be possible under the current logging API or am I
missing someting here? I really don't understand, why the message is
not being stored as an Object but a String - that only limits the use
of the Formatter.
Can somebody elaborate on this. Maybe it should be brought up with Sun?
- 3
- Creating HTML files from Java accessing OracleHello folks,
I have some queries that folks would like to have as HTML reports. At
first I tried Oracle Reports but it's HTML output seems really poor
and not 508 compliant which is an issue for us. I'd like to use JAVA
(I use Jdev as my IDE right now.) but was hoping someone might have
some insight on the best way to tackle this. I guess I am looking for
methods that would make things easier rather than just outputting
print commands line by line. :)
Thanks folks...
- 4
- FW: FreeBSD Upgrade bountycastle-1.16_1 to version 1.25Hi there,
I've emailed the maintainer about this and haven't received a
response in a weeks time. Could someone have a look at this?
Kind regards,
Manfred N. Riem
email***@***.com
http://www.manorrock.org/
-----Original Message-----
From: Manfred N. Riem [mailto:email***@***.com]
Sent: Friday, December 10, 2004 12:07 AM
To: 'email***@***.com'
Cc: 'email***@***.com'
Subject: [FreeBSD Port] Upgrade bountycastle-1.16_1 to version 1.25
Hi there,
A kind request to upgrade bountycastle-1.16 to version 1.25. If you need any
help in doing so, please let me know!
Kind regards,
Manfred N. Riem
email***@***.com
http://www.manorrock.org/
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 5
- CFP Reminder: World Congress on Engineering and Computer Science (WCECS 2007)Call for Papers Reminder: World Congress on Engineering and Computer
Science (WCECS 2007)
From: International Association of Engineers (IAENG)
World Congress on Engineering and Computer Science 2007
San Francisco, USA, 24-26 October, 2007
http://www.iaeng.org/WCECS2007
The WCECS 2007 is organized by the International Association of
Engineers (IAENG), a non-profit international association for the
engineers and the computer scientists. The conference has the focus on
the frontier topics in the theoretical and applied engineering and
computer science subjects. Our last IAENG conference has attracted
more than one thousand participants from over 30 countries, and our
IAENG conference committees have been formed with over two hundred
committee members who are mainly research center heads, faculty deans,
department heads, professors, and research scientists from over 20
countries.
WCECS Congress Co-chairs
Prof. Craig Douglas (WCECS Keynote Speaker & Co-chair)
Professor of Computer Science & Professor of Mechanical Engineering,
University of Kentucky
Senior Research Scientist (corresponding to nonteaching full
professor)
Computer Science Department, Yale University, USA
Prof. Warren S. Grundfest, Fellow, AIMBE, SPIE (WCECS co-chair)
Co-Chair, Biomedical Engineering IDP
Professor of Electrical Engineering and Professor of Surgery
The Henry Samueli School of Engineering & Applied Science
University of California, Los Angeles, USA
Former Chair, SPIE Health Care Engineering & Technology Policy
Former Vice Chair, Health Care Engineering Policy Committee, IEEE
Prof. Lee Schruben, Ph.D. Yale (WCECS & ICMSC co-chair)
Professor and Former Department Chairman
Department of Industrial Engineering and Operations Research
University of California, Berkeley, USA
Prof. Jon Burgstone (ICIMT honorary co-chair)
Faculty Chair
Center for Entrepreneurship & Technology
College of Engineering
University of California, Berkeley, USA
Board Member of the Rock Center for Entrepreneurship at Harvard
Business School, Harvard University
Prof. Su-Shing Chen, Fellow, SPIE (ICCB honorary co-chair)
Emeritus Professor, Department of Computer Information Science &
Engineering, University of Florida, USA;
Principal Investigator of Systems Biology Laboratory,
CAS-MPG Partner Institute for Computational Biology (PICB);
Shanghai Institutes for Biological Sciences; Chinese Academy of
Sciences
Prof. Benjamin Friedlander, FIEEE (ICCST honorary co-chair)
Professor of Electrical Engineering
Department of Electrical Engineering, Jack Baskin School of
Engineering,
University of California, Santa Cruz, USA
The IEEE Third Millennium Medal (2000)
Former Vice Chairman of the Bay Area Chapter of the Acoustics, Speech
and Signal Processing Society
Former Associate Editor of the IEEE Transaction on Automatic Control
Prof. Burghard B. Rieger (ICMLDA honorary co-chair)
Professor of Computational Linguistics
Former Dean (1999-2001) of Faculty of Languages and Literature
Former Head of Department of Linguistic Computing, University of
Trier, Germany
President (1989-93) of the German Society for Linguistic Computing
(GLDV)
Vice-President (1990-94) of the International Society for Terminoly
and Knowledge Engineering (GTW)
Prof. Lei Xu (ICSCA honorary co-chair)
IEEE Fellow and IAPR Fellow,
Member of European Academy of Sciences,
Chair Professor, Department of Computer Science and Engineering,
The Chinese University of Hong Kong, Hong Kong
The conference proceedings will be published by IAENG (ISBN:
978-988-98671-6-4) in hardcopy. The full-text congress proceeding will
be indexed in major database indexes so that it can be assessed
easily. The accepted papers will also be considered for publication in
the special issues of the journal Engineering Letters and other IAENG
journals. Revised and expanded version of the selected papers may also
be included as book chapters in the standalone edited books under the
framework of cooperation between IAENG and Springer. Dr. Mark de
Jongh, Senior Publishing Editor, Springer SBM NL, will also give a
presentation about book publishing with Springer. Dr. Mark de Jongh
will also be available during the conference period to talk to
potential authors whom may have a new book idea/proposal.
The WCECS 2007 is composed of the following 15 conferences (all will
be held at the same location and date):
ICCB'07
International Conference on Computational Biology 2007
ICCE'07
International Conference on Chemical Engineering 2007
ICCS'07
International Conference on Circuits and Systems 2007
ICCSA'07
International Conference on Computer Science and Applications 2007
ICCST'07
International Conference on Communications Systems and Technologies
2007
ICEEA'07
International Conference on Electrical Engineering and Applications
2007
ICEIT'07
International Conference on Education and Information Technology 2007
ICIAR'07
International Conference on Intelligent Automation and Robotics 2007
ICIMT'07
International Conference on Internet and Multimedia Technologies 2007
ICMHA'07
International Conference in Modeling Health Advances 2007
ICMLDA'07
International Conference on Machine Learning and Data Analysis 2007
ICMSC'07
International Conference on Modeling, Simulation and Control 2007
ICSCA'07
International Conference on Soft Computing and Applications 2007
ICSEEM'07
International Conference on Systems Engineering and Engineering
Management 2007
ICSPIE'07
International Conference on Signal Processing and Imaging Engineering
2007
=========
Submission:
WCECS 2007 is now accepting manuscript submissions. Prospective
authors are invited to submit their draft paper in full paper (any
appropriate style) to WCECS{at}iaeng.org by 6 July, 2007. The
submitted file can be in MS Word format, PS format, or PDF formats.
The first page of the draft paper should include:
(1) Title of the paper;
(2) Name, affiliation and e-mail address for each author;
(3) A maximum of 5 keywords of the paper.
Also, the name of the conference that the paper is being submitted to
should be stated in the email.
=============
Important Dates:
Draft Paper Submission Deadline: 6 July, 2007
Camera-Ready Papers Due & Registration Deadline: 30 July, 2007
WCECS 2007: 24-26 October, 2007
It is our target that the reviewing process and the result
notification for each submitted manuscript can be completed within one
month from its submission. The reviewing process is to ensure the
quality of the accepted papers in the WCE congress. The conferences
have enjoyed high reputation among many research colleagues ( for
example, see the http://cs.conference-ranking.net/ or http://www.conference-ranking.com/
or http://www.conference-ranking.org/cs.html ).
More details about the WCECS 2007 can be found at:
http://www.iaeng.org/WCECS2007/index.html
http://www.iaeng.com/WCECS2007/index.html
http://www.iaeng.net/WCECS2007/index.html
More details about the International Association of Engineers, and the
IAENG International Journal of Computer Science, and the IAENG
International Journal of Applied Mathematics can be found at:
http://www.iaeng.org/about_IAENG.html
http://www.iaeng.org/IJCS/index.html
http://www.iaeng.org/IJAM/index.html
The official journal web site of Engineering Letters at:
http://www.engineeringletters.com
Other Engineering Letters web sites at:
http://www.engineeringletters.com
http://www.engineeringletters.net
http://www.engineeringletters.org
http://www.engineeringletter.com
http://www.engineerletters.com
http://www.engineerletter.com
********
It will be highly appreciated if you can circulate these calls for
papers to your colleagues.
- 6
- Runtime.exec and socketsI submitted this as a bug, but no response. Can anyone help?
FULL PRODUCT VERSION :
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Runtime.exec() to start a new java program. The new java program
should create a socket connection to another program.
The socket will connect if created and used from the static main
method. It will also work if placed in a static method called from
main. It will not work if I create an object and have the object
execute the same code (which is what I need); it fails both times if
the method is static or not static.
If I run the java program from the command line and not by using
Runtime.exec, it works beautifully.
If while it is blocking I kill the first vm, then the second vm
continues.
ACTUAL -
Blocking
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class ProgA {
public static void main(String[] args) throws Exception {
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("java ProgB");
p.waitFor();
System.out.println("Process Returned");
}
}
///////////////////////////////////////////////////////////////////////
import java.net.*;
import java.io.*;
public class ProgB {
public void service() throws Exception {
//If I move this body of code to main or another static method,
//the program works.
Socket s = new Socket("127.0.0.1", 5000); //Blocking
OutputStream o = s.getOutputStream();
o.write("test data".getBytes() );
s.close();
}
public static void main(String[] args) throws Exception {
ProgB b = new ProgB();
b.service();
}
}
---------- END SOURCE ----------
- 7
- 8
- i18n in Swing, trouble.Hi,
I am building my first Gui with Swing, and in the same time I need to
use the i18n to make it work in Japanese and English.
I use Eclipse and its great Visual Editor to save time, all my files are
utf8 encoded. And, I am under WinXp...
My trouble is the following :
-> If I make a jMenu with some japanese hardcoded text, it appears fine
in my application.
-> If I use a ResourceBundle to get the text, I have garbage. I use the
following line: myMenu.setText(myBundleResource.getString("myTest"));
The .properties files for the japanese is also in Utf8
Do you have any idea why the text in the .properties file is not passed
correctly ? Any help would be really appreciated.
Best Regards,
Schlum
- 9
- list jar contentsI am trying to list the contents of a jar file.
I should be able to run
jar -t -f myjar.jar
but when I run this the command does not return and does not display
any thing.
I have to ctrl-c to terminate the app.
I can get the contents if I use the command line version of winzip.
I have tried
jar -t myjar.jar
and
jar -t -f myjar.jar
thanks for the help
john
- 10
- Java Application Programmer for Oracle/Win Envir
Title: Java Application Programmer for Oracle/Win Envir.
Skills: Java Coder/Application Programmer (Web-Based Apps), SQL,
Oracle 8i or 9i, STRUTS
Trinity Consultancy Services is seeking applications from qualified
and experienced software engineers with above skills for various
requirements with their Clients.
Job description:
Java Coder/Application Programmer
We are seeking a Java developer to code applications and code Java
Classes from scratch to help in the development of an nth-tier web
application using Java language and associated technologies, in an
Oracle 8i/9i and Windows environment.
Duties and Responsibilities:
* This position requires a strong Java Application coder (3 years).
Ability to code applications from scratch by writing basic Java code
plus the ability to compile Java Applications using Java Servlets,
Applets, JSP's and JavaBeans. Must be able to create JavaBeans from
scratch. Should be able to track down particular Java code lines,
Scripts, JSPs, Beans, Servlets or Applets.
Required Experience:
* At least 3 years hands-on paid software development experience in
design and coding of Web applications.
* At least 3 years in Java and Object-Oriented software development.
* Experienced in Windows Dev.
* Experienced in large-scale, enterprise systems implementation with
through understanding of system development methodology.
* Must have STRUTS experience.
Required Skills:
* Strong computer programming skills in Java coding of Java Classes
and OO Design.
* Strong programming skills in programming with SQL and Oracle 8i/9i
Database.
* Strong programming skills in J2EE technologies, such as JSP, Java
Servlet, Javabean, EJB, JNDI, MVC, and JDBC API.
* Must have STRUTS experience.
* Good working skills in using Http, SSL, JDBC, RMI, XML, JMS.
* Good working skills in using Windows OS (XP, NT, 2000).
* Good interpersonal and communications skills.
Education:
Bachelor degree, CS or equivalent required.
Trinity Consultancy Services is a leading source of Information
Technology, Engineering and Management Experts that corporations of
all sizes turn to, from Global 2000 corporations to mid-sized and
small organizations nationwide. With the commitment to excellence, is
subtly managed to find, recruit, screen, submit and effectively
organize a technical workforce anywhere in the United States for
various Technical needs of corporation irrespective of its size.
Trinity Consultancy Services is one of its unique kind of the leading
information technology consulting services, and business process
outsourcing organizations committed for excellence.
Trinity provides business consulting, systems integration, application
development, staffing services and managed services to Global 2000
Corporations, medium-sized businesses, and government organizations
throughout the United States.
Trinity can mobilize the right resources, skills and technologies to
enable our clients to reach their dreams by enhanced performance. With
deep industry and business process expertise and broad global
resources, Trinity Consultancy Services is committed for excellence.
Please contact our Human Resource Manager Ms. Ann and send your
detailed Resume with your work authorization status, current salary
and expectations.
Mention the position you are applying in the subject line.
Email: email***@***.com
www.trinityconsultancy.com
- 11
- Sending XML as a String through a web service (Tomcat/AXIS)?Hi, I have a web service written with Tomcat/AXIS. One of my
methods receives a String. Is it possible to send a String of
XML through this method? Will the XML tags confuse the
underlying web service system? Or will the XML be "escaped"
(with the <, > characters rewritten somehow)?
Thanks.
- 12
- JSP vs XSLT?Which is better JSP or XSLT? I prefer JSP for two reasons performance
and less complicated to learn.
JSPs are compiled one time, then cached, unless the code changes. This
not the case with XSLT, as I understand it.
XSLT is very complicated to learn, in my opinion.
See this article by IBM on JSP vs XSLT:
http://www-106.ibm.com/developerworks/websphere/techjournal/0405_brown/0405_brown.html#sec9
- 13
- Extending the code
I have the following code but i want to add a function which will allow
me to count the number of vowels in the text file. I was wondering if
anyone would be willing to give me some help with this
[CODE]
import java.io.*;
import java.util.*;
public class App {
//Create BufferedReader class instance
public static InputStreamReader input = new
InputStreamReader(System.in);
public static BufferedReader keyboardInput = new BufferedReader
(input);
public static void main(String[] args) {
int[] lengths = new int[100]; //Runtime error if the file contains a
word of more than 100 characters
int longestWord = 0;
for(int i = 0; i < lengths.length; i++) {
lengths[i] = 0;
}
try {
System.out.println("Enter the name of the file you wish to read:
");
String fileName = keyboardInput.readLine();
FileReader file = new FileReader(new File(fileName));
BufferedReader myFile = new BufferedReader(file);
int numTokens = 0;
int numWords = 0;
int numChar= 0;
String line;
while ((line = myFile.readLine()) != null ) {
String[] words = line.split(" ");
numWords = numWords + words.length;
for (int i = 0; i < words.length;i++) {
numChar = numChar + words[i].length();
if(words[i].length() > longestWord) {
longestWord = words[i].length();
}
lengths[words[i].length()] = lengths[words[i].length()] + 1;
}
}
System.out.println("\nThere are " + numWords + " words in the text
file");
System.out.println("\nThere are " + numChar + " characters in the
text file");
System.out.println("\nThere length frequency of the words is as
follows:");
System.out.println("\nLength : Frequency ");
for(int i = 0; i <= longestWord; i++) { //Print frequencies only up
to the longest word
System.out.println(i + " :"+lengths[i]);
}
myFile.close();
}
catch(IOException iO) {
iO.printStackTrace();
}
}
}
[/CODE]
- 14
- Interrupt on Java thread..I have two threads, one reading from stdin and writing to a socket
(requestThread),
one reading from a socket and writing to stdout (responseThread).
When the response thread gets a msg from server that an error occurs, it
closes the socket and calls interrupt() for it's thread group before
exiting.
But requestThread never seems to get the interrupt.
It is blocked(?) on a readLine() from the BufferedReader omn stdin.
What am I doing wrong?
- 15
- Trusting ceritificates where CN does not match website hostnameJDK 1.4.2_08
I am getting the following exception:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:224)
I have imported the certificate into the cacerts file via keytool -import.
However, my problem is that, the operator has setup a development and
production website, where the hostname naturally differs ... but both
development and production URLs have the same certificate.
That is, the production, Verisign-signed server certificate is the same
certificate on the development website. This ceritificate, therefore, has
the common-name ( CN ) set to the hostname of the production website.
Thus, even if I import the certificate into the cacerts file, because the
server certificate' CN does not match hostname of the website, I get the
exception above when connecting to their development website.
Apart from implementing DummyTrustManager as per this article:
http://www.javaworld.com/javatips/jw-javatip115.html
... which I'd rather not, is there any other workaround ??
|
|
|