| Displaying multiple beans in a struts form |
|
 |
Index ‹ java-programmer
|
- Previous
- 2
- ADT's vs. interfaceswhat is the differences between ADT's and interfaces? also what are
abstract classes? can you also include examples?
thnks
- 2
- Compiling Java code using Ant within EclipseHi,
I am using Eclipse 3.0 to create a number of Java projects all located
within the same workspace. I had everything building ok but decided to
migrate to using Ant to try and manage things a bit better.
Now when I try and compile my app using Ant it does not find references
to external libraries. Now I suspect I need to specify the classpath in
the build.xml file, but is there a way of telling it to use the set of
libraries I have allready specified via Project->Properties->Java Build
Path->Libraries?
I currently have a build.xml file for each of the projects in my
workspace. Is there a way of creating a build.xml file which invokes
each of these in turn so that I can just do one big build?
Thanks for your help.
Andy
- 6
- Preverifier error in Sun Java Wireless ToolkitHi ppl,
I'm using an SDK provided by my client and building a MIDlet
application which does ApiCalls on this SDK. I copied all the jar files
from the SDK and put it into my lib folder of my MIDlet project so that
it could add it to the classpath during build. But when I build it
shows the following error:
Error preverifying class com.myClient.sdk.attributes.AttributesMaster
VERIFIER ERROR
com/myClient/sdk/attributes/AttributesMaster.addErrorElements(Lorg/w3c/dom/Document;Lorg/w3c/dom/Node;[Lcom/myClient/sdk/attributes/model/ErrorSet;)Lorg/w3c/dom/Node;:
Cannot find class org/w3c/dom/Node
If I don't use that particular jar, and the rest of the jars, it
shows this error:
Error preverifying class com.myClient.sdk.call.AddDisputeCall
java/lang/NoClassDefFoundError: com/myClient/sdk/ApiCall
I read that this is because I might be using a class library created
for the J2SE platform and hence it doesn't work for the J2ME Wireless
toolkit which uses a limited JVM and APIs. Is there any way I can merge
it into my MIDlet so that it will use it?
P.S: I'm comparatively new to J2ME :( Also i'm using the Sun Java
Wireless Toolkit 2.3 Beta. Please help...
Thanks in advance,
Sajida Abdul Salam
- 6
- sound in JavaHi all!
How is possible to change frequency at java's command beep()? Or
somehow? I need two different beeps in my application. They should be
only a kind of beeps and not playing MIDI or something similar.
Thanks,
Branko
- 6
- Handling of DST in javaStefan Ram wrote:
> Raymond DeCampo <email***@***.com> writes:
>
>>Perhaps, but that is not something the government can easily
>>legislate nor enforce. (Do you really want the time police
>>checking to see if you are working an hour later?)
>
>
> Something like this is done here for the closing-time of
> stores. So, since the government already enforces
> opening-times and closing-times of stores, they could change
> these and they could change to times for schools, universities
> and their own agencies. Some other institutions then might
> follow.
>
By "here", I assume you mean Germany, based on what you wrote below.
There are no such laws in the US with the exception of some states that
have "blue laws" that only apply on Sundays.
Your suggestion sounds like a nightmare where you never know what is
going to be available when.
>
>>There is nothing sacred about the time zone.
>
>
> It is only that, given two time stamps of the legal time for
> a location in Germany, like
>
> 2005-07-10T21:38:10 and
> 1960-07-10T21:38:13
>
> it would be a typical programming task to write a routine
> that can calculate the difference between them in seconds.
> And this would be much more easy, without the need to have
> to find out all details of regulations for DST in Germany.
>
> After WWII, in Germany, there were several different zones
> controlled by different countries and some details for the DST
> differed between these zones. In one zone, there was a special
> DST with two hours added for the mid of summer. Then there are
> reports that there were years with DST even in winter. And so
> on.
>
> All these special regulations make it very difficult to
> write such a routine.
>
This is why any environment worth its salt has these routines available
in a standard library. Asking people to forgo a substantial reduction
in energy use for the (supposed) convenience of computer programmers is
ridiculous. Remember that computers are not an end unto themselves,
they are tools here to serve.
Ray
--
This signature intentionally left blank.
- 7
- Labels and paint questions...I have an applet, here
http://www.aquaticwhirlpools.com/sean/selectMenu.html
What I need is for the select menus to have some space between
them so that I can have the orange/yellow images next to each one.
As you can see, there is a bit of one of the images next to
"by product size" and a full image next to "by model".
The space between the two "by product size" and "by shape" is
created by an empty label. The image is placed in the paint method.
The problem is that without the empty label, the menus have no space
between them, as with "by shape" and "by model". Is there any other
way to create that space... or is there a way to make the images 'paint'
on top of the labels?
Thanks for any help.
- 7
- JSR 211 CHAPIHello everybody
Does anyone know if some mobile devices implement JSR211?
Thanks for help
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
- 7
- USENIX Security '08 Call For Papers Reminder---------------------------------
Call for Papers
17th USENIX Security Symposium
July 28-August 1, 2008
San Jose, CA, USA
http://www.usenix.org/sec08/cfpb/
Submissions Deadline: January 30, 2008
---------------------------------
Dear Colleague:
I'm writing to let you know that the paper submissions site for the 17th
USENIX Security Symposium (USENIX Security '08) is now open and can be
found here:
http://www.usenix.org/events/sec08/cfp/submit_form.html
Please submit all work by January 30, 2008.
Refereed paper submissions are solicited in all areas relating to
systems and network security, including:
* Adaptive security and system management
* Analysis of network and security protocols
* Applications of cryptographic techniques
* Attacks against networks and machines
* Authentication and authorization of users, systems, and applications
* Automated tools for source code analysis
* Botnets
* Cryptographic implementation analysis and construction
* Denial-of-service attacks and countermeasures
* File and filesystem security
* Firewall technologies
* Forensics and diagnostics for security
* Intrusion and anomaly detection and prevention
* Malicious code analysis, anti-virus, anti-spyware
* Network infrastructure security
* Operating system security
* Privacy-preserving (and -compromising) systems
* Public key infrastructure
* Rights management and copyright protection
* Security architectures
* Security in heterogeneous and large-scale environments
* Security policy
* Self-protecting and healing systems
* Techniques for developing secure systems
* Technologies for trustworthy computing
* Usability and security
* Voting systems analysis and security
* Wireless and pervasive/ubiquitous computing security
* Web security
Please note that the USENIX Security Symposium is primarily a systems
security conference. Papers whose contributions are primarily new
cryptographic algorithms or protocols, cryptanalysis, electronic
commerce primitives, etc., may not be appropriate for this conference.
Submissions are due January 30, 2008, 11:59 p.m. PST
(firm deadline).
For more details on the submission process, please see the complete
Call for Papers at:
http://www.usenix.org/sec08/cfpb/
We look forward to receiving your submissions!
Paul Van Oorschot, Carleton University
USENIX Security '08 Program Chair
email***@***.com
---------------------------------
Call for Papers
17th USENIX Security Symposium
July 28-August 1, 2008
San Jose, CA, USA
http://www.usenix.org/sec08/cfpb/
Submissions Deadline: January 30, 2008
---------------------------------
- 7
- Junit: overriding original class private methodsI have a class that when run will call a private sendEfvent() method
that sends data to an external process. I would like to override that
behavior in testing and just report what is set to avoid the
complications, etc of having to use external processes during unit
testing.
I don't think I can just use an assertTrue() because I also want to
know how many times this private method is called (i.e. is it sending
the correct number of copies out)?
Is there a way I can cause Junit to stop the JRE from calling the true
sendEvent() method and instead call something in my test class??
-Robert
- 8
- 9
- Help needed with Realm authorization and AuthenticationDear All
I'm somehow new to weblogic workshop, and i want to have a role based
security for a project.
I used XML based security in web.xml and in web-config.xml . Now i have
a problem, regarding to my project, i want for example, if role A was
logged in, to show him A in one pages of pageflow (for example
index.jsp) and if another role was logged in, not to show him the A.
I mean I want to have access to Roles in the pageFlow, and by knowing
which Role change the sequence of pageflow, do you ever reach this
problem ? any suggestions ?
I think there must be an API for accessing the realm security for
Weblogic.
Shahin Sheidaei
- 11
- What is Delegation, versus inheritence, examples in C or C++"Bernard" <email***@***.com> wrote:
> I apologize if this has been brought up here before.
> Searching through the newsgroup I found variants of
> my question, but not exactly what I am thinking about.
>
> I am trying to learn UML from a well publicized book,
> "Instant UML" Wrox press by Pierre-Alain Muller.
>
> While I may admire the book for its conciseness, I
> have difficulty following its examples and explanation
> of Delegation. He explains Delegation mechanism by
> a diagram of client communicates with an interface that
> propagates questions to one or more delegates. It is
> not clear but is on page 53. Next page he has some
> discussion of the "covariance problem" which he discusses
> earlier but never defines, leaving a vague understanding.
> On p54, he also has example of how inheritence is simulated
> by hand using delegation and talks of X-windows which is
> written "entirely in C". There is no example. Where
> ever I was able to understand his discussion, it was
> due to prior knowledge of the field. If some kind
> soul has been able to follow this book and can give
> explanations with reference to page numbers that would
> be very nice.
>
> Thanks++,
I looked for your concept of "Delegation" in the only book that I have
on UML. This is by Craig Larman. Its index does not evennnnn list it.
You should expand your query to other language groups. I can do it
for you. OOP implementation questions have been asked there before
Monica
- 11
- Will MS be less evil now?I don't understand Gates. If he wants to do good deeds and be a
philanthropist, why limit such good deeds to healthcare and
education? Why not also do a good deed in the computer
industry? In this industry he is known less for his innovations
than for tactics such as sabotaging Java and cutting off
Netscape's air supply. He has done the industry and consumers
immeasurable harm, for example, by freezing the development
of web browsers. Here's an idea for Gates: Unfreeze the web
browser. Take web browsing to the next level. Start by
implementing SVG, the W3 standard for vector graphics, in IE.
- 11
- "CallByName" in Java?Hello,
is there any way to do the job "CallByName" (as in VB) for Java? We want to
build a hashtable which has the
names of java methodes with their parameters, and later all the methodes
will be called only by
names automatically.
Thanks,
Le
- 14
- JBOSS and IPlanet setupHi,
This is a generic architectural question. I am not sure if this can
be posted at this forum.
I am using JBOSS as App server and Iplanet as WebServer and Reverse
Proxy plugin to forward all the JSP requests from Iplanet to JBOSS.
Both Web Server and App server are on different boxes.
When I request a JSP page, its coming up fine. But if that JSP page
has a 'response.sendRedirect' in it, then its failing to redirect to
the specified page. Instead its going to the webserver root.
Also, this behaviour is not consistent - meaning, sometimes it goes
through and sometimes its coming back to webserver root.
Using 'response.forward' fixed the problem.
But I do not want to use 'forward' in the web application because of
the obvious diff between 'forward' and 'redirect'. (Using the forward
doesn't change the URL and upon browser refresh, the same form gets
submitted again and again)
Are there any alternatives to fix the redirect problem?
Any help is appreciated.
Thanks,
-Sudheer
|
| Author |
Message |
glenleblanc

|
Posted: 2003-10-16 1:48:00 |
Top |
java-programmer, Displaying multiple beans in a struts form
I have a list of beans that I retrieved from a database. These beans
are all of the same class. Now I want to display these beans in a
struts form so that the user can modify the data in the beans and save
it back to the database.
Can anyone help with this problem? Is there any sample code out there
that would show how to do this?
Thanks
|
| |
|
| |
 |
James

|
Posted: 2003-10-16 8:49:00 |
Top |
java-programmer >> Displaying multiple beans in a struts form
There is a lot of online tutorial information you will find searching Google
for struts tutorial. You can include a property easily
<bean:define id="show_P_Msg" name="nextIDForm" property="mcMsgforProf"/>
<logic:equal name="svcCodeForm" property="isUpdateMode" value="true">
Here you are interrogating a property called isUpdateMode in svcCodeForm or
bean.
<html:text name="svcCodeForm" property="svcCode" styleClass="labelsmall2"
size="5" maxlength="5" ></html:text>
These values can be referred to in Javascript as well
var srvicecd = "<%=svcCode%>";
but only for a few user friendly functions. Its just a broad topic and you
should be able to go to the Jakarta Struts site and do some reasearch.
"Glen" <email***@***.com> wrote in message
news:email***@***.com...
> I have a list of beans that I retrieved from a database. These beans
> are all of the same class. Now I want to display these beans in a
> struts form so that the user can modify the data in the beans and save
> it back to the database.
>
> Can anyone help with this problem? Is there any sample code out there
> that would show how to do this?
>
> Thanks
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Connection Pooling in Java application for interacting with Websphere MQI have following infrastruture at my site.
1> Machine #1 has below
- Websphere MQSeries 6.0 (client setup - Slim Client)
- OS = Windows 2003
- i/p address : 10.1.11.10
- Tomcat web server 5.5
- No Websphere Application Server.
2> Machine #2 has below
- Websphere MQSeries 6.0 (Server setup)
- OS = Windows 2003
- i/p address : 10.1.11.21
- Queue Manager Name : qMngr
- Queue Name (client will put the message) : toServerQ
- Queue Name (client will get the message) : fromServerQ
- I have developed the web application in Tomcat web server 5.5 using
MQ base classes for accessing the Websphere MQ.
- Since it is web application there can be atleast 25 request at
time.
i.e. when client#1 request data from queue he must get data related
to client#1 only not other than client#1.
- For accessing the websphere MQ, I am using websphere MQ base classes
in Client mode. (Not JMS)
==>>>> Source Code as follows
Class MQInterface (Servlet) is used for getting the web request from
user and reply the response in html format.
------------------------------------------------------------------------------------------------------
public class MQInterface extends HttpServlet {
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
String Output = "";
System.out.println("!! Entered into Banking Servlet !!");
String requestParam = request.getParameter("OPRN_CODE");
if (requestParam.equalsIgnoreCase("GET_NAME_DETAIL")){
String id = request.getParameter("id");
Output = MQDataObject().getNameDetail(id);
return Output;
}
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(Output);
}
Class MQDataObject is used for getting and putting data(message) into
Websphere MQ.
------------------------------------------------------------------------------------------------------
public class MQDataObject {
private String hostname = "10.1.11.21";
private String channel = "Chnl1";
private String qManager = "qMngr1";
private MQQueueManager qMgr;
private ISISSSLAdaptor ssl;
private ISISConfigHelper ConfigHelper;
private String Output;
public MQDataObject(){
MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES_CLIENT);
MQEnvironment.sslCipherSuite =
"SSL_RER_WERH_3KIUD_EQW_CRT_SSA";
try{
ssl = new DEMOSSLAdaptor("DEMOSSLAdaptor.config");
ConfigHelper = new
ISISConfigHelper("MQConnection.config");
}catch(Exception exception){
System.out.println("Exception Details => " + exception);
}
}
public String getNameDetail(String sendMessage){
....
....
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES_CLIENT);
String msgText = "";
try
{
....
....
// Create a connection to the Queue Manager.
qMgr = new MQQueueManager(qManager);
// Set up the options on the queue we wish to open
int openOutOptions = MQC.MQOO_OUTPUT;
// Specify the queue to open and open option
MQQueue sendingQueue =
qMgr.accessQueue("toServerQ",openOutOptions,null,null,null);
// Define the MQ message and write some text in UTF
format
MQMessage sendingMessage = new MQMessage();
sendingMessage.writeUTF(sendMessage);
// Specify the message options..
MQPutMessageOptions pmo = new MQPutMessageOptions();
// Put message on the queue
sendingQueue.put(sendingMessage,pmo);
// Close Sending Queue
sendingQueue.close();
// Receiving the message back
// Wait for 5 seconds to get reply from receiving queue
Thread.sleep(5000);
// Set up the options on receiving queue we wish to open
int openInOptions = MQC.MQOO_INPUT_AS_Q_DEF |
MQC.MQOO_OUTPUT;
MQQueue receivingQueue =
qMgr.accessQueue("fromServerQ",openInOptions,null,null,null);
MQMessage receivingMessage = new MQMessage();
// Set and Get the message options
MQGetMessageOptions gmo = new MQGetMessageOptions();
// Receiving the message off the queue.
receivingQueue.get(receivingMessage,gmo);
// Get the message from the receiving queue.
msgText =
receivingMessage.readStringOfByteLength(receivingMessage.getMessageLength());
// Close Receiving Queue
receivingQueue.close();
// Close a connection to the Queue Manager.
qMgr.disconnect();
// Parse the received message using parser.
String output = new IFXXMLParser().runExample(msgText);
}
catch (MQException mqex){
System.out.println("MQ Error : " + mqex);
}
catch (Exception ex){
System.out.println("General Error : " + ex);
}
return Output;
}
}
The message for sending the receiving is in XML format.
Could any one help me following in questions.
1> Since there is 30 request at time so for improve the performance
and resources I need to do connection pooling.
How can I achieve this using base classes.
2> While retrieving (getting) the message for particular request how
can I identify the response message.
i.e. when client#1 request data from queue he must get data related
to client#1 only not other than client#1.
because In above scenario there are separate queues for getting the
message and putting the message.
I have read the tutorial on connection pulling but I am little
confused.
Thanking in Advance
Sanjeev
- 2
- A little optimization question: Local var allocationI often wonder: Does it make any difference in EXECUTION TIME which
version I choose:
#1:
String st;
while (true){
st=dis.readLine();
if (st==null) break;
< do something else >
}
#2:
while (true){
String st=dis.readLine();
if (st==null) break;
< do something else >
}
It's obvious that st is valid outside the loop in #1. But does it get
allocated on the stack for every iteration in #2, or just re-used? If
not, I suppose #2 is preferred as far as limiting the scope, enabling
gc, is an issue.
Chris
- 3
- 4
- Fwd: Reminder: Call for FreeBSD status reports!FYI.
Ernst
---------- Doorgestuurd bericht ----------
Subject: Reminder: Call for FreeBSD status reports!
Date: maandag 29 september 2003 23:33
From: Scott Long <email***@***.com>
To: email***@***.com
All,
Don't forget to submit your FreeBSD status reports by Oct 1, 2003!
These reports are open to not only official project memebers, but also
to anyone who is engaged in the development of projects that relate to
FreeBSD. Kernel, userland, ports, documentation, installation,
integration, etc, reports are all welcome and encouraged. Reports should
be 1-2 paragraphs in length, focus on one topic, and should follow the
template that is available at
http://www.freebsd.org/news/status/report-sample.xml.
Submissions must be made to email***@***.com. Submissions for multiple
projects per person are welcome.
Thanks!
Scott Long
Robert Watson
-------------------------------------------------------
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 5
- 6
- What is J2EE and an application server?Can someone explain to me what java enterprise edition is?? I've been
looking into the web for some info, but can't really make sense of the
info found. Is there also an tutorial avaible?
I've found one at the java site, but there it was attached to an
application server. And that's my second question, what is a
application server and what can u do with it??
Thnx someone.....
- 7
- Automated Basic Authenication with an Applet for the Browser ?I like to automate web access to secure pages and proxies, which are
proteced with a Basic Authenication scheme.
The Basic Authentication within an Applet works really well, I get all
the information I need when I attach the
Authorization: Basic base64encodeUID_PW to the request Header.
or
if I use the Authenticator Class of the JDK1.5.
My problem is that the browser does not notice that I already have
a UID/Password combination for the desired web page.
When I did the same with a form based authorisation the URLConnection
was setting the Cookie inside the browser implicitly, the
showDocument() method displayed the secure page, because the browser
used the cookie to access it.
Is there any way to access the cache for the UID and Password of the
browser to set these values that when I invoke the showDocument() to
display the page inside the browser, I don't have to enter the UID and
Password again?
My current code to authenticate myself is this, I also tried a direct
socket connection and a HttpURLConnection there was no difference:
String urlString =
"http://www.demo.com/basicprotectedpage/index.html"
AppletContext appCont = getAppletContext();
//created password authenticator.
mmAuthenticator myPassAuth = new mmAuthenticator(uid,pw);
//setting password.
Authenticator.setDefault(myPassAuth);
//URL created.
URL url = new URL(urlString);
//opening connection
URLConnection conn = url.openConnection();
//setting do input and do output.
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(true);
//Data Input Stream
BufferedReader bin = new BufferedReader(new
InputStreamReader(conn.getInputStream()));
String inputLine;
System.out.println("web page data " );
while ((inputLine = bin.readLine()) != null)
System.out.println(inputLine);
bin.close();
appCont.showDocument(new URL(urlString)); // this should
display the secure page without the prompt for uid password
Thank you in advance. Have a nice day.
FB
- 8
- Tomcat and QueueHi,
Does any one know about the Coyote connector queue in Tomcat?
How does it work? if a connection gets queued then when does it get a
thread? will it be given preference over the requests arriving after
its arrival??
rgds,
Prashant
- 9
- User privilege for getMetaData()When using a basic user with only data query and update privileges I
cannot get column data from the DatabaseMetaData object returned from
getMetaData() (on a connection using the JDBC Oracle thin driver).
When I use the schema owner with full privileges, I get the column
data. What privilege is necessary to get column information from
getMetaData?
- 10
- JTextArea append method doesn't always appendI have an application with many custom loggers, and a number of JTextArea
instances for displaying the log entries written to the loggers. Each
JTextArea has a thread associated with it that continuously pulls entries
out of a particular logger and appends that text to the JTextArea. Thus,
each entry written to a logger should show up in the associated JTextArea.
The problem I have is that not all the log entries show up in the text area,
and what shows up and what does not can change with each execution. I've
put print statements before and after the log statements, and before and
after the text area append, and all the expected log entries show up at all
those places. Only in the JTextArea is there variability in what shows up.
Is this a bug in JTextArea, or is this some known behavior?
--
=================
Lee Graba
email***@***.com
=================
- 11
- setCursor() for a ContentPanel
Joana,
I was having a similiar problem and did some searching and found the
following forum:
http://forum.java.sun.com/thread.jsp?forum=57&thread=110928
Basically, I think you need to use setCursor on the GlassPane. I used
the following code in my application and it seems to work.
Component gp = getGlassPane();
gp.setVisible(true);
gp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
//do your computations
gp.setCursor(Cursor.getDefaultCursor());
gp.hide();
Hope this helps,
Kin Wong
On 14 Jun 2003 09:09:45 -0700, email***@***.com (Joana)
wrotE:
>Hi!
>
>May I ask you for a favour ... a hint would please me a lot ...
>
>When the Graph is completely shown in the window I can see no
> WAIT_CURSOR, but DEFAULT_CURSOR.
>When I move the mouse out of the window and hit back the window area I
>get the WAIT_CURSOR.
>
>Could You please tell me, where is my bug or better what should I do,
>to get the WAIT_CURSOR during the graph computing process
>
>Thanks a lot for every single answer!
>
>Best regards,
>Joana
- 12
- Reading file lines into large ListHi all,
I have tried posting this problem a few times looking for a solution.
What I have works but is slow.
I have to read unordered data from a text file. Data A has a
one-to-many relationship with Data B, and Data B has a one-to-many
relationship with Data C . Once I find Data A, Data B and Data C could
be anywhere in the file. So I do a RandonAccessFile.seek(0) . This
needs to be repeated hundereds of times for lots of Data B and Data C
relationships.
I'd like to put the file in memory. However, I'm using Scanner and
regex to get the data. I don't think I can run Scanner on ByteBuffer
per line.
So my latest idea is to read the file per line and store it in List. So
a 10,000 line file would have a 10,000 size List. That way I could run
Scanner on the Strings in the List, and Iterate repeatably. The data in
the List would be read only.
Any advice appreciated.
iksrazal
- 13
- MacOS X (was javax.usb)Steve W. Jackson wrote:
>>http://en.wikipedia.org/wiki/Macos#Mac_OS_X
>>
>>Mac OS X brought Unix-style memory management and pre-emptive
>>multitasking to the Mac platform. It is based on the Mach kernel and the
>>BSD implementation of UNIX, which were incorporated into NeXTSTEP, the
>>object-oriented operating system developed by Steve Jobs's NeXT company.
>>
>>Cheers,
>
>
> That's an interesting read, but it should not be taken as any form of
> "gospel" since it contains some inaccuracies of its own.
It's easily fixable, should you be so inclined. What's wrong with it
though - it's what I've read in the past, that MacOS X is the Mach
microkernel (tightly) wed to bits and pieces of a BSD (I'm not sure
which, I think FreeBSD or NetBSD).
--
David N. Welton
- http://www.dedasys.com/davidw/
Linux, Open Source Consulting
- http://www.dedasys.com/
- 14
- jxta in subnetHallo,
i have a broblem with the jxta technology. I build up a testbed
consisting of a server a router and two clients. The router is
connected to the two clients and the server. Any connection from one
client to another or from one client to the server goes through the
router. Client 1 is configured with ip 192.168.100.1, client two with
172.16.0.1 and the server with 10.0.0.2. So the router routes for
three different subnets. No machine has access to the another (except
the router). There is also no connection to the internet.I wrote an
application built on jxta. The application runs on the server and the
two clients. I configured the peers as rendevouzs and added to every
peer the ip's of the two others to the list of known rendevouzs peers.
When i run my application, the peers can find each other, BUT it needs
a lot of time, somtimes about 10 miutes. I cannot understand this,
because the peers know each other by the list of known rendevouzs. How
can i improve the time the peers need to find each other? I think my
configuration settup is ok (, otherwise the peers never would find
each other?).
Can anyone help me ?
Michibeck.
- 15
- Finding BeanInfo for superclass?Hi,
I'm having a problem or a misunderstanding with BeanInfo.
I have a class Alpha, and a class Beta. Beta extends Alpha. I've
created an AlphaBeanInfo class.
The following code works fine:
BeanInfo info = Introspector.getBeanInfo(Alpha.class);
...
Problem is though when I call the following code:
BeanInfo info = Introspector.getBeanInfo(Beta.class);
...
AlphaBeanInfo is not returned, nor are any of its methods called
(verified via debugging)
Shouldn't this be returned by the Introspector? I could of course write
a BetaBeanInfo, but this seems silly to have to do this.
Any ideas/clarifications?
Many thanks,
M
|
|
|