| Job info for Columbus, OH |
|
 |
Index ‹ java-programmer
|
- Previous
- 3
- How Do I Configure a Tomcat Server for Production?Hello,
I am pretty new to Tomcat. I am wondering if there are any standard
configurations that need to be added/modified as part of a Production
deployment aside from database URLs and those types of values.
Currently, we have mostly the same configuration for Production as we
do for development.
As the load increases are there any obvious values that we should be
changing?
Thanks, Jesse
- 3
- Design question: business delegate or not?L.S.,
We're in the process of developing an application using JSF, Hibernate and Spring and we're facing a design question on which we would like your ideas.
The application has it's own database, which is accessed using Hibernate, for most of it's entities (e.g. Problem), but it also has to work with data from a legacy system.
The legacy data is accessed through a set of Spring components (<bean/>s), which use JMS to exchange XML messages with the legacy system. These services provide us with e.g. Article instances.
The Problem instances, which are retrieved using Hibernate, should hold a reference to an Article. Since Hibernate does not know about the Article class, we have added an articleId property to the Problem class and whenever we retrieve a Problem using our ProblemService class, the ProblemService will look at this property and retrieves the corresponding Article instance.
This process happens for a couple of entities (Article, Supplier, TracingInformation, ...)
This approach however has a number of drawbacks:
1) our Problem class contains several 'duplicate' properties: articleId/article, supplierId/supplier,... leading to confusion
2) resolving the correct Article, Supplier, ... instances happens for every Problem ever instantiated in the ProblemService, causing overhead whever the information is not required by the JSF web client (especially for lists of data)
3) whenever someone adds functionality to the ProblemService, we have to be careful to always fill in the missing entities when a new Problem instance is created
We have thought of two possible solutions so far:
1) creating a Hibernate UserType to convert the article id stored in the database to an Article instance and visa versa
- This approach would solve drawbacks 1 and 3, but doesn't help us much with drawback 2.
- There is another issue with this approach: we need Spring's ApplicationContext in our UserType (<type .../> declaration in Hibernate mapping), but this would require rebuilding the ApplicationContext or having some kind of singleton to obtain the ApplicationContext (it is now created by a web application listener) (unless there is a Spring way of doing this, e.g. using a TypeDefinitionBean)
2) creating a business delegate for the Problem class
- This would solve all drawbacks, since the business delegate could quite easily use the Spring components already available to retrieve an Article instance on the fly when needed
- The business delegate should only have to expose the article property and the object sent to our DAO should only contain the articleId
- The business delegate solve the resolving of the Article, Supplier, ... entities once and for all, so nobody can forget to add these to their newly created Problem instance
The 'Business Delegate' solution seems the most appropriate, but wouldn't it add a considerable amount of extra coding for the features it provides?
Which solution would you recommend? Do you see an easier solution for the problem?
Thank you in advance for any feedback,
Gert Vanthienen
email***@***.com
- 3
- 3
- Encryption & DecryptionHi all
I've been asked to look into the encryption and decryption of attachments
sent in emails. The specific scenario is as follows:
- a file is created
- the file is to be encrypted
- the file is attached to an email and sent to a recipient
- once received, the file should be decrypted
- the file is read
At first glance, I think I should be reading up on the JCA (Java
Cryptography Architecture) and use a public key encrypt and a private key to
decrypt. Is this right?
Are there any online implementations or tutorials that you would suggest I
read to learn more about this?
--
Rogue Chameleon...
- 3
- Focusing a JPanel?Is there a way to give a JPanel focus on a mouse click besides explicitly
saying "panel.requestFocus()"? I tried "panel.setFocusable(true)", but it
had no discernable effect. Using J2SE 1.4.2.
--
Ryan Stewart, A1C USAF
805 CSPTS/SCBE
- 5
- Suspending threads by ThreadPoolExecutorHi all,
Does ThreadPoolExecutor may suspend idle threads ?
I wonder wether suspended threads eat less resources than active ?
I imagine the solution when ThreadPoolExecutore suspends each idle
threat after idleness of 60 seconds and after next 60 seconds of being
suspend the thread got killed ?
Is it reasonable ?
Regards,
Maciej
- 8
- Java server accessI have a javaApplet that needs to access a directory on the server, list
the files in directory, then access the selected file. My first idea
was to use a servlet on the server then I found out that the server that
this needs to work with doesn't support servlets or Tomcat. The server
supports PHP and CGI and the hosting company does not want to add java
support.
Can anyone give me an idea on how to go about this?
David Miller
- 11
- Export ApplicationHello.
I am using Netbeans 3.5 IDE and have created several applications which is
fine and dandy. The only thing I cannot do is work out how to export these
apps to another PC i.e. to run them on a machine without having the IDE
installed. I believe this would be via a JAR file but cannot seem to get
these to work. Any help in this area would be great as I am going round in
circles. Also, how do I encrypt the code ?
Regards
Stephen Gray
(Apologies if this is the wrong forum)
- 11
- Eclipse Runtime ErrorI am running Eclipse 3.1.1. I created a project, called PizzaShop.
Inside pizza shop, I have src\ lib\ and build\classes\ folders. Inside
src\, I have a pizza folder for the pizza package. That too is mirrored
in build\classes\pizza.
When I go to debug as ->debug, Eclipse tells me:
java.lang.NoClassDefFoundError: pizza/SystemTest
Exception in thread "main"
What does that mean and how do you tell Eclipse which main to run? I
think I tell it that when it pops open the configuration menu, and I
tell it "pizza.TakeOrder" for the main class to run. But, obviously, it
cannot find the main, and there is a public main() in the TakeOrder
file.
So confused, Scott
- 11
- adjusting boundries of JPanels in JPanel in JFrameHi, I tried searching through the google groups, but am obviously using the
wrong search words.
I have a JFrame with a JPanel in it. The JPanel is using the following
layout:
new BoxLayout (parentPanel, BoxLayout.LINE_AXIS)
Then I added two JPanels to the parentPanel.
But then I would like to click and drag the separator between the two panels
to change the size of the two JPanels.
Any hints?
Thanks,
Novice
- 12
- Array iteration question/*Can i calculate the page totals, column totals, and rowtotals in one pass
through the array instead of the three passes i have coded? I have already
added an outer for loop to combine the three seperate iterations into one
but it still loops through the array multiple times and i would like to have
it loop through only once*/
import java.io.*;
import java.util.*;
import java.text.NumberFormat;
class P3
{
static PrintWriter screen = new PrintWriter (System.out,true);
public static void main (String [] args) throws IOException
{
final int COLLEGES = 4;
final int GENDERS = 2;
final int LANGS = 4;
int langAccum, genderAccum, collegeAccum, totalAccum = 0;
float percentage;
StringTokenizer data;
File file = new File ("p3input.txt");
FileReader inputFile = new FileReader (file);
BufferedReader inFile = new BufferedReader(inputFile);
String [] languageNames = {"C++" , "Cobol" , "Java" , "VB"};
String [] collegeNames = {"CCSU", "ECSU", "SCSU", "WCSU"};
String [] genderNames = {"Male", "Female"};
int [][][] enrollment = new int[COLLEGES][GENDERS][LANGS];
NumberFormat percent = NumberFormat.getPercentInstance();
// load array with values from file
for (int college = 0; college < COLLEGES; college++)
{
data = new StringTokenizer (inFile.readLine());
for (int gender = 0; gender < GENDERS; gender++)
for (int lang = 0; lang < LANGS; lang++)
{
enrollment[college][gender][lang] = new Integer
(data.nextToken()).intValue();
totalAccum += enrollment[college][gender][lang];
}
}
screen.println ("\nStudent Enrollment Survey Results:\n");
// first iteration to calculate percentage by language
screen.println ("Language\tPercentage");
for (int lang = 0; lang < LANGS; lang++)
{
langAccum = 0;
for (int college = 0; college < COLLEGES; college++)
for (int gender = 0; gender < GENDERS; gender++)
langAccum += enrollment [college][gender][lang];
percentage = (float) langAccum / totalAccum;
screen.println(languageNames[lang] + "\t\t" + percent.format(percentage));
}
screen.println("\n");
// next iteration to calculate gender percentage
screen.println("Gender\t\tPercentage");
for (int gender = 0; gender < GENDERS; gender++)
{
genderAccum = 0;
for (int college = 0; college < COLLEGES; college++)
for (int lang = 0; lang < LANGS; lang++)
genderAccum += enrollment [college][gender][lang];
percentage = (float) genderAccum / totalAccum;
screen.println(genderNames[gender] + "\t\t" + percent.format(percentage));
}
screen.println("\n");
// last iteration to calculate college percentage
screen.println("Colleges\tPercentage");
for (int college = 0; college < COLLEGES; college++)
{
collegeAccum = 0;
for (int lang = 0; lang < LANGS; lang++)
for (int gender = 0; gender < GENDERS; gender++)
collegeAccum += enrollment [college][gender][lang];
percentage = (float) collegeAccum / totalAccum;
screen.println(collegeNames[college] + "\t\t" +
percent.format(percentage));
}
inputFile.close();
}
}
- 12
- GUI Object DesignI am pretty new to Java and I am trying to get my hands around OOD.
In the course of designing a GUI, I am working on breaking down the
components into the necessary objects so that the code will be as
versatile as possible.
As I work through it though, I am confronted with the situation where
I feel that I am over analyzing and creating too many objects.
Let's say that I have a pretty basic window application. It has a
window with a menu bar and three menus, each with a few items.
The main window is an object inherited from JFrame.
Is it best to make the menu a seperate object, inherited from
JMenuBar, and then make each menu a seperate object, inherited from
JMenu, and then make each menu item a seperate object, inherited from
JMenuItem? Or, is a lot of this typically placed within a single,
larger object?
I guess I am wondering where you draw the line. How do I know when I
have gone too far and am creating too many objects unnecessarily?
I imagine a lot of this dicussion is personal preference and some
aspects are open to debate. I am just looking for some guidance as I
learn more about this.
Thanks.
- 14
- command line memory profiler toolHello,
I'm looking for a simple command line tool (no windows) to help find a
memory leak in a large amount of old java code. Need to keep the test
machine identical to the production box, which is without xwindows.
Thanks for your help,
Erik
- 15
- Problem with deploytool.I am trying to build a web service starting from hand-written wsdl using
JAX-RPC and wscompile tool from Sun Java System Application Server 8.0.
I don't want any data binding, so i invoke wscompile tool with -f
nodatabinding option with deploytool I create war, and I try to deploy it.
And deployment fails!
Reading server log I have found that reason for this failure is ejbc:
[#|2004-09-29T21:09:41.174+0200|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.out|_ThreadID=11;|
error: [failed to localize] unable to find member rodzajProblemu in
jaxrpcmapping meta for exception whose wsdl message is:
{http://www.eAdministracja.gov.pl/wsdl/ZDGUsluga}problemPrzetwarzania|#]
Message refers to part of my schema cited below:
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ug="http://www.eAdministracja.gov.pl/UrzadGminy/typy"
targetNamespace="http://www.eAdministracja.gov.pl/UrzadGminy/typy">
<complexType name="ProblemPrzetwarzania">
<sequence>
<element name="rodzajProblemu">
<simpleType>
<restriction base="string">
<enumeration value="Merytoryczny"/>
<enumeration value="Systemowy"/>
</restriction>
</simpleType>
</element>
<element name="oznaczenieProblemu" minOccurs="0" type="string"/>
<element name="opisProblemu" type="string"/>
</sequence>
</complexType>
<element name="problemPrzetwarzania" type="ug:ProblemPrzetwarzania"/>
</schema>
Identifiers are polish words, so don't bother with making up what do
they mean.
I have checked mapping.xml generated by wscompile, and ejbc is right -
there is nothing about rodzajProblemu, but if there is no class bound to
element problemPrzetwarzania except SOAPElement, there is no mapping,
so deploytool shouldn't try to compile any bean!
Should I consider it to be bug or I am doing sth. wrong?
- 16
|
| Author |
Message |
pdedea

|
Posted: 2005-12-8 4:20:00 |
Top |
java-programmer, Job info for Columbus, OH
Would I be intruding if I was to post PERMANENT Job orders here?
|
| |
|
| |
 |
Tim Slattery

|
Posted: 2005-12-8 5:14:00 |
Top |
java-programmer >> Job info for Columbus, OH
email***@***.com wrote:
>Would I be intruding if I was to post PERMANENT Job orders here?
Yes.
--
Tim Slattery
email***@***.com
|
| |
|
| |
 |
Chris Smith

|
Posted: 2005-12-8 6:15:00 |
Top |
java-programmer >> Job info for Columbus, OH
<email***@***.com> wrote:
> Would I be intruding if I was to post PERMANENT Job orders here?
>
Not necessarily, provided that:
1. You don't do it very often.
2. The jobs are clearly and directly related to Java programming.
3. You clearly identify that it's job position, and the location.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
Shrike

|
Posted: 2005-12-8 6:30:00 |
Top |
java-programmer >> Job info for Columbus, OH
i don't have much experience with usenet groups, but perhaps you could
set up a comp.lang.java.jobs.columbus_ohio group somehow. i don't
think anyone would have a problem with that, and would appreciate it if
they knew about it.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-12-8 6:57:00 |
Top |
java-programmer >> Job info for Columbus, OH
"Shrike" <email***@***.com> wrote in message
news:email***@***.com...
>i don't have much experience with usenet groups, but perhaps you could
> set up a comp.lang.java.jobs.columbus_ohio group somehow. i don't
> think anyone would have a problem with that, and would appreciate it if
> they knew about it.
Just for your information, it's not trivial to set up a new newsgroup
group (I like the sound of that: "new newsgroup group".) I'm not even sure
how you would go about doing it. There's an FAQ at
http://www.faqs.org/faqs/usenet/creating-newsgroups/part1/ claiming to list
steps on creating a new group (it involves submitting a proposal to a
comittee and having them vote on it), but it hasn't been updated since 1997,
and I'm not sure if it still applies.
- Oliver
|
| |
|
| |
 |
Rhino

|
Posted: 2005-12-8 8:32:00 |
Top |
java-programmer >> Job info for Columbus, OH
<email***@***.com> wrote in message
news:email***@***.com...
> Would I be intruding if I was to post PERMANENT Job orders here?
>
I hope you weren't expecting to get a unanimous answer to your question :-)
Like all unmoderated newsgroups, there is no single voice - dictator or
elected leader - to speak for us all so you will probably get as many
answers to your questions as there are users of this newsgroup.
As far as I'm concerned, go right ahead and post your jobs here. But please
bear in mind that this newsgroups has participants from all over the world
so, if you're going to post a plum job, try to give some information on the
circumstances under which foreign nationals can hope to apply for the job.
I'll give you the benefit of the doubt and assume that you are an ethical
recruiter but if you are not, I'd really rather you just went away and
didn't come back. Remember that old saying: "hell hath no fury like a woman
scorned"? Well, if you jerk around the people on this newsgroup, you may
find that scorned women have nothing on upset Java programmers.
Rhino
|
| |
|
| |
 |
zero

|
Posted: 2005-12-8 8:59:00 |
Top |
java-programmer >> Job info for Columbus, OH
"Rhino" <email***@***.com> wrote in
news:u9Llf.3035$email***@***.com:
>
> Like all unmoderated newsgroups, there is no single voice - dictator
> or elected leader - to speak for us all so you will probably get as
> many answers to your questions as there are users of this newsgroup.
Although quite a few unmoderated newsgroups do have a dictator who *thinks*
he speaks for everyone. Usually they're ignored by the real posters.
Funny sometimes.
>
> As far as I'm concerned, go right ahead and post your jobs here. But
> please bear in mind that this newsgroups has participants from all
> over the world so, if you're going to post a plum job, try to give
> some information on the circumstances under which foreign nationals
> can hope to apply for the job.
Seems to me like posting job offers on usenet is the hallmark of a bad
recruiting system. Unless you really want to reach people all over the
world (as is the case in maybe 0.1% of job offers), there are much better
channels to reach people in the area you're targetting. And a bad
recruiting system usually doesn't bode well for the rest of the company.
I have yet to see any job offer that includes a private jet (with pilot of
course) to bring me back home at the end of the day.
|
| |
|
| |
 |
Chris Smith

|
Posted: 2005-12-8 9:22:00 |
Top |
java-programmer >> Job info for Columbus, OH
Tim Slattery <email***@***.com> wrote:
> email***@***.com wrote:
> >Would I be intruding if I was to post PERMANENT Job orders here?
>
> Yes.
There is some controversy over this. Posting jobs seems to be frowned
upon when most people have jobs, and encouraged when people are looking.
In any case, this is the general-purpose Java programming newsgroup. In
the absence of an alternative place to post, this is the right one.
This is simply how newsgroups work. If enough job postings start up
here and it interferes with the group, then someone will write up an RFD
and then a CFV for a job-specific group. That will resolve the problem
once and for all.
(Note that I'm NOT saying there isn't a better place. I haven't looked.
Just use your best judgement.)
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
Rhino

|
Posted: 2005-12-8 13:00:00 |
Top |
java-programmer >> Job info for Columbus, OH
"zero" <email***@***.com> wrote in message
news:email***@***.com...
> "Rhino" <email***@***.com> wrote in
> news:u9Llf.3035$email***@***.com:
>
>>
>> Like all unmoderated newsgroups, there is no single voice - dictator
>> or elected leader - to speak for us all so you will probably get as
>> many answers to your questions as there are users of this newsgroup.
>
> Although quite a few unmoderated newsgroups do have a dictator who
> *thinks*
> he speaks for everyone. Usually they're ignored by the real posters.
> Funny sometimes.
>
I wonder if we're thinking of the same dictator ;-)
>>
>> As far as I'm concerned, go right ahead and post your jobs here. But
>> please bear in mind that this newsgroups has participants from all
>> over the world so, if you're going to post a plum job, try to give
>> some information on the circumstances under which foreign nationals
>> can hope to apply for the job.
>
> Seems to me like posting job offers on usenet is the hallmark of a bad
> recruiting system. Unless you really want to reach people all over the
> world (as is the case in maybe 0.1% of job offers), there are much better
> channels to reach people in the area you're targetting. And a bad
> recruiting system usually doesn't bode well for the rest of the company.
>
Posting to international newsgroups for local jobs is clearly inefficient.
Then again, it's bound to work occasionally and that may be enough to
justify it in the recruiter's mind.
> I have yet to see any job offer that includes a private jet (with pilot of
> course) to bring me back home at the end of the day.
If they gave me the private jet, I'd probably be willing to take flying
lessons so that I can fly myself home :-)
Rhino
|
| |
|
| |
 |
Viator

|
Posted: 2005-12-8 16:38:00 |
Top |
java-programmer >> Job info for Columbus, OH
You have better places to get people. Let this place be a newgroup for
discussing JAVA not jobs.
Amit :-)
|
| |
|
| |
 |
Thomas Weidenfeller

|
Posted: 2005-12-8 17:44:00 |
Top |
java-programmer >> Job info for Columbus, OH
email***@***.com wrote:
> Would I be intruding if I was to post PERMANENT Job orders here?
Order? I guess you mean offer. To answer your question: Yes, you would
abuse the public resources of a discussion(!) newsgroup for your own
advertising of a job. Post to one of the job offering newsgroups, some
of the many job boards, or pay for normal advertising.
/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
|
| |
|
| |
 |
Daniel Dyer

|
Posted: 2005-12-8 17:50:00 |
Top |
java-programmer >> Job info for Columbus, OH
On Wed, 07 Dec 2005 20:20:25 -0000, <email***@***.com> wrote:
> Would I be intruding if I was to post PERMANENT Job orders here?
I don't speak for the group, but I wouldn't have a problem with it. Even
though many (most?)posters, myself included, would not be interested in
jobs in Ohio. If it's a specific Java position and flagged as a job
posting in the subject then I don't see an issue. If it's some
recruitment company posting every single IT job they have on file then it
would quickly become unwelcome.
A couple of suggestions I would make to anybody advertising a position:
1). This is an international group so you should indicate whether, and
under what circumstances, international applications would be accepted.
2). Please indicate which country the position is in. US companies seem
to be particularly guilty of omitting this information. Many places in
the US are named after European towns and cities (Athens, Birmingham,
Boston, Cambridge, Dover etc.) so if you don't specify the country it's
not clear where you are (state abbreviations often mean nothing to
non-Americans).
Dan.
--
Daniel Dyer
http://www.dandyer.co.uk
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2005-12-8 18:15:00 |
Top |
java-programmer >> Job info for Columbus, OH
Daniel Dyer wrote:
> Many places in
> the US are named after European towns and cities (Athens, Birmingham,
> Boston, Cambridge, Dover etc.)
East coast...
-- chris
|
| |
|
| |
 |
Daniel Dyer

|
Posted: 2005-12-8 18:28:00 |
Top |
java-programmer >> Job info for Columbus, OH
On Thu, 08 Dec 2005 10:15:05 -0000, Chris Uppal
<email***@***.com> wrote:
> Daniel Dyer wrote:
>
>> Many places in
>> the US are named after European towns and cities (Athens, Birmingham,
>> Boston, Cambridge, Dover etc.)
>
> East coast...
>
Yes, New England is, unsurprisingly, full of English place names, but
there are Spanish place names in California too. It's not just the US
though, Australia is full of cities named after British places (Perth,
Newcastle, St. Kilda, Tamworth, plus lots of much smaller towns).
If you post a position in Perth is it in Scotland or Western Australia?
If you want someone in Boston, Lincolnshire you had better specify that or
you will get applicants from Boston, Massachussets.
Dan.
--
Daniel Dyer
http://www.dandyer.co.uk
|
| |
|
| |
 |
zero

|
Posted: 2005-12-9 0:42:00 |
Top |
java-programmer >> Job info for Columbus, OH
"Rhino" <email***@***.com> wrote in
news:G4Plf.8509$email***@***.com:
>
> If they gave me the private jet, I'd probably be willing to take
> flying lessons so that I can fly myself home :-)
>
Well maybe, if the lessons are paid by the company, and on company time.
--
Beware the False Authority Syndrome
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-12-9 1:07:00 |
Top |
java-programmer >> Job info for Columbus, OH
"Rhino" <email***@***.com> wrote in message
news:G4Plf.8509$email***@***.com...
>
> "zero" <email***@***.com> wrote in message
> news:email***@***.com...
>> "Rhino" <email***@***.com> wrote in
>> news:u9Llf.3035$email***@***.com:
>>
>>>
>>> Like all unmoderated newsgroups, there is no single voice - dictator
>>> or elected leader - to speak for us all so you will probably get as
>>> many answers to your questions as there are users of this newsgroup.
>>
>> Although quite a few unmoderated newsgroups do have a dictator who
>> *thinks*
>> he speaks for everyone. Usually they're ignored by the real posters.
>> Funny sometimes.
>>
> I wonder if we're thinking of the same dictator ;-)
Does his/her name contain the character 'e'?
> Posting to international newsgroups for local jobs is clearly inefficient.
> Then again, it's bound to work occasionally and that may be enough to
> justify it in the recruiter's mind.
Recruiting, from what I understand, is an expensive process. Posting on
usenet is essentially free. Couldn't hurt.
- Oliver
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- javakeyHey Im in a spot of bother I have set the path in my windows xp to point to
java bin dir. and can run javac, but when ever I go to run javakey i gives
me "javakey" is not recognised as an internal or external command....
Im trying to sign some applets so they can open a network connection to
another computer. Im not 100% sure on how to do this or how difficult it
is, so any help would really be greatfully recieved.
Thanking you
niall
- 2
- Application for Nokia 3410 cell 'phone
This should be simple enough! I have a Nokia 3410. I have downloaded the
J2ME Wireless Toolkit. I would like to write some applications for the cell
'phone.
Now, I read that J2ME is a range of standards and applications, not a
platform. Fair enough.
Since this is in Java, I'd like to write my applications so that they run on
all cell 'phones - or all Nokia 'phones at least.
What I'd like to know is the following:
- What steps do I need to take to write and load a 'Hello World'application
into my 3410 and see it run?
If there is a document you can point me to, or a better newsgroup that would
be great!
Later on it would be nice to know how to advertise an cell 'phone
application so other people can download it and pay for it - but that can
wait until I have one fully written. For that I need to know the above!
--
"The pure and simple truth is rarely pure and never simple." - Oscar Wilde
- 3
- 4
- java.lang.NoClassDefFoundError when calling method from EJBI have a java app that runs on Websphere 6.0 and I needed a way to run
a scheduled task once a day that sends out emails. I used the
following link from IBM's site to develop a stateless EJB session bean
that ran the WAS task scheduler.
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/scheduler/tasks/tsch_schedulebtask.html
I placed a call in the implemented process method (just like the
example says) to a non-EJB method and I get a
java.lang.NoClassDefFoundError error on the method I am tryign to call.
I'm new to EJB so I'm not sure if you can even make a call from an EJB
to a normal (non-EJB) method. Any help would be appreciated.
- 5
- Runtime.getRuntime().exec causing Windows 16-bit error!Hi there,
I'm trying to do something i've done many times before without problem, even
from signed applets...
trying to run a system command from Java.
I'm doing this:
import java.io.*;
public class SysCommand{
public static void main(Stirng[] args){
try{
Process proc =
Runtime.getRuntime().exec(
new String[]{"command.com",
"/C",
"echo",
"%windir%"});
BufferedReader reader =
new BufferedReader(
new InputStreamReader(
proc.getInputStream()));
System.out.println(reader.readLine());
proc.waitFor();
proc.destroy();
}
catch(Throwable th){
th.printStackTrace();
}
}
}
I'm trying to find out where the Windows directory is (i need to copy some
DLL's into there as part of an installation process).
When i run this, Windows raises a dialog box saying:
_______________________________________________________________
|16 bit MS-DOS Subsystem
|
|
|
| C:\WINNT\system32\ntvdm.exe
|
| Error while setting up environment for the application. Click 'Close'
to terminate |
---------------------------------------------------------------------------
---------
I'm running JDK 1.4.2_02 on a Win2K box.
Any ideas?
Thanks,
Paul
- 6
- cannot call a paint function across classes?Just wondering if this is possible, as im having no luck working it out, no
matter what ive tried so far..
I have 2 classes, lets call them gP and kP. in gP ive got this function:
public void paint55(java.awt.Graphics graphics) {
Dimension d=getSize();
graphics.setColor(Color.RED);
graphics.fillRect(0, 0, (int)d.getWidth(), (int)d.getHeight());
graphics.setColor(Color.BLACK);
//call another function here
}
now, in the kP class, im using a jComboBox, the combo box works fine, but i
want to try and call that function from it
Ive tried
gP.paint55();
ive tried referencing it as gP paint55();
Just cant work it out, any ideas?
Thanks
- 7
- Poserpoint slide file (PPS) open with wired characters in jspI included a PPS file as a hyperlink in the jsp file that was
developed in Weblogic 8.1.4 on Windows 2000 platform. However, when I
clicked the file, it opened it with strange characters file contents.
The same file opened correctly under ASP format as a same hyperlink
file. I have never need to specify filetype in ASP. Search couple
hours on Web, could not find any clue, not even a topic talked about
similar subject. Can anyone help? Thanks.
C Chang
- 8
- Learning ArraysHi, I am just learning arrays and I am trying to get this 2D array to print
out like this:
0 1 2 3 4 5 6
0 1 2 3 4 5 6
0 1 2 3 4 5 6
0 1 2 3 4 5 6
0 1 2 3 4 5 6
but insteads it prints out like this: 0 1 2 3 4 5 6 0 1 2 3 4 5 6 0 1 2 3 4
5 6 0 1 2 3 4 5 6 0 1 2 3 4 5 6
I can get it to work with system.out.println but I need to use a
JOptionPane.showMessageDialog box as I have attempted to do. Any ideas?
(my code is below) Thanks!!!!!!!!!!
import javax.swing.*;
public class array5by7{
public static void main (String args[]){
String outputString = "";
int table[][] = new int [5][7];
for (int row=0; row<table.length; row++)
{
for (int col = 0; col <table[row].length; col++)
table[row][col] = 0 + col;
}
for (int row=0; row<table.length; row++)
{
for (int col = 0; col<table[row].length; col++)
outputString += (table[row][col] + " ");
}
JOptionPane.showMessageDialog (null, outputString + "\n");
}
}
- 9
- How Robots Will Steal Your Jobgoose wrote:
> until AI people can give us something which does not need them to
> "pull the strings to set it into motion", then i think that they
> are only merely playing games.
I think that's the point of neural nets. You just develop a general
mechanism that "learns" from input--similar to how our brains do.
We aren't anywhere near achieving the complexity of the human brain,
yet, but we will get there eventually.
And THEN we'll see if true intelligence is an emergent property of
complexity (possibly) or whether it requires something more than
mere machinary (possibly).
Until then, we're all just guessing. (-:
> no, it only gets emotional when you accuse everyone on the group
> of species vanity. thus far you have twice told an agnostic that
> their "religion" is preventing them from recognising that others
> (creatures) have intelligence. good job!!
The irony is that I believe Mr. Green experienced what most
theologians would call a "conversion experience" (with dolphins)
and now, like many, many of the converted, is something of a
fanatic on the matter. His posts have more a sense of preaching
than of discussing, and--as you note--he is intolerant of the
"non-believers".
[shrug] Which is fine. Takes all types to make a world, and it's
good to have people on the Side of the Animals. As you can see
from the volume, the thread has certainly captured people's interest.
--
|_ CJSonnack <email***@***.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL |
|_____________________________________________|_______________________|
- 10
- Java Applet Parameter LimitHi all,
I would like to know the maximum number of parameters that can be passed
to an applet. While I think there is no theoretical maximum, I believe
there to be a practical limitation for browsers.
I am using winXP, IE6 and firefox1, and jre1.4.2.
I have a graphing applet which works very well except when there are a
large number of parameters i.e. 5000. When I load such an example with
appletviewer the applet opens fine. However when I load the same applet
in either IE6 or firefox1 then nothing happens except the page appears
to be loading but gets no where even if you leave it for hours - in
other words the browsers seem to hang. Java does not appear to load into
memory - the icon does not appear in the system tray which leads me to
believe that it is a browser limitation, rather than a java one.
Does anyone know if there is such a limitation? Do you think it could be
remedied by merging the tags - i.e. having less but longer params? Or is
there another way of passing data to the applet?
Many thanks,
Chris.
- 11
- cannot start application server 8 ?installed the Sun Java System Application Server 8 recently. I run the
"asadmin start-domain --verbose domain1" command to try to start it,
however, it didn't happen. i'm using windows 2k server SP$.
thank's!
--
AbdelHalim MIMOUNI
- 12
- web browser plugin problem .... JRE not found?Hello,
I'm trying to load a Java 1.2 applet into IE 5 using the browser plugin.
When I do so, I get an error message telling me that the plugin cannot find
the JRE where in the path specified (ie., the path to which I just installed
the plugin).
What's going on here?
TIA,
- Boyd S.
- 13
- Making Form results readableI have coded a simple form that sends the results to an email. The
form works, but when I recieve the data it is all together in one big
line. What kind of coding do I need to do to separate the data and
label it as well. Do I need to create some sort of template in
notepad??? I am a very beginner coder.
Thanks,
Lindsay
- 14
- help with image display gui
hi wondered if anyone can help i want to create a dummy gui which looks
like a media player eg transition window buttons etc and have created
them as jpeg can someone help me in understanding how to inport them
into jframes etc and place there positions on the grid,
can gridbag place static images.is there any tutorials to do?
- 15
- How to determine the PID of your Java programHi
I was unable to find a decent How-To for finding the PID of a Java
program running on Windows, that did not use JNI. Here is a solution
that uses netstat.
Hope this is useful. If you have a better strategy, let me know!
Thanks
Andrew
package pid;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.SocketTimeoutException;
/**
* Program to obtain the Process Identifier (PID) of the running Java
program
* Assumes the Windows program
* @author Andrew Ward
*/
public class GetPID {
public static void main(String[] args) {
getPid();
}
/**
* Obtain the PID, by listening on a port, then using netstat -ano
* to find the PID of the processing listening on the port
* @return the pid of this process
*/
public static int getPid() {
// Select a port between 50000 and 51000
final int port = 50000 + (int) (Math.round(Math.random() * 1000));
// Windows specific command line
// Netstat -ano will return many lines, one of which will match
// TCP 0.0.0.0:<port> 0.0.0.0:0 LISTENING
<pid>
final String cmd = "netstat -ano";
final String criteria = "0.0.0.0:" + port;
// Listen on the port for 5 seconds
new SocketListener(port, 5 * 1000).start();
int pid = -1;
try {
// Run netstat
Process process = Runtime.getRuntime().exec(cmd);
InputStream istr = process.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(istr));
String str;
while ((str = br.readLine()) != null) {
if (str.indexOf(criteria) > 0) {
String match = str.substring(1+str.lastIndexOf(" "));
pid = Integer.valueOf(match);
System.out.println("PID: " + pid + " {" + str + "}");
}
}
} catch (Exception e) {
e.printStackTrace(System.err);
}
return pid;
}
/** listen on a socket */
public static class SocketListener extends Thread {
int port;
int wait;
public SocketListener(int port, int wait) {
this.port = port;
this.wait = wait;
}
public void run() {
try {
ServerSocket server = new ServerSocket(this.port);
server.setSoTimeout(this.wait);
server.accept();
server.close();
}
catch(SocketTimeoutException e)
{
// We are expecting the accept() call to timeout
// so ignore this exception
} catch (IOException e) {
e.printStackTrace(System.err);
}
}
}
}
|
|
|