What is RSS?
Java Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java ProgrammingGo to page: « previous | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | next »

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Thursday, 25 October 2007
Summary of Network logging for Java desktop application Frank Harper 09:54:01
 I thought a recap on logging for Java desktop applications might be helpful.

Will Sargent and Vitor Buitoni both recommended using log4j. Log4j has
several client and server side options one of which is a unix syslog
appender. The fire and forget nature of unix syslog which runs over
unconfirmed UDP is particularly appealing to me since some machines on which
the app is installed might not be able to reach the logging server at all.
Using syslog should reduce the risk of destabilizing the app as mentioned by
Peter Booth. One concern with using log4j, is that we are currently using J2SE
logging framework provided by Sun, switching to log4j would require updating
logging code throughout the app.

Jeff Kesselman said that he was perfectly satisfied with the J2SE logging
framework, but didn't say what he recommended using on the server side.

Peter Booth recommended Capistrano (http://www.capify.­org/), which is a Ruby
based tool for automating tasks using SSH. One thing I forgot to mention is
that my app runs on Windows. If I have understood Peter's suggestion,
correctly implementing his idea with Capistrano would require installing an
SSH server on each Windows box on which the my app runs. In my case, this is
not a realistic option.

Thanks to all those who took the time to reply.

Frank Harper
On 10/20/07, Peter Booth <pbooth@nocoinciden­ces.com> wrote:
Do you really want to make your application's reliability and
performance
dependent on the health of the network logging mechanism? If
Call me conservative but I would much prefer to log locally and use a
decoupled mechanism for log file aggregation. Capistrano, for example
can make this trivial across OSes.
Peter
On Oct 19, 2007, at 10:41 AM, Frank Harper wrote:
I have a java desktop application that is installed locally on users
machines via Java Web Start, and would like to centralize the
logging to
facilitate diagnosing bugs.
The app uses the standard java logging framework that comes with J2SE.
Apparently with this logging framework the standard way to do network
logging is to use java.util.logging.S­ocketHandler. I couldn't find any
complete examples on the Web, and the documentation is completely
mute about
what should be running on the server side to collect the
information sent by
SocketHandler.
So, have any of you done network logging in Java, and what software
did you
use? Did you use J2SE+SocketHandler,­ classic unix syslog, Log4J, or
something better/different? And in particular what software did you
run on
the log server?
Thanks
Frank
===================­================
This list is hosted by DevelopMentor(R) http://www.develop.­com
View archives and manage your subscription(s) at http://
===================­================
This list is hosted by DevelopMentor(R) http://www.develop.­com
View archives and manage your subscription(s) at

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
GC issues Avinash Lakshman 09:26:52
 Hi All

We are trying to profile our software on a single server in order to
determine how many transactions per second it can handle. We were trying to
figure out to what extent we can push it to. What we are observing is that
things run fine on the server for like an hour and then everything goes
haywire. We tried to dump the GC details and figured that the full times are
on an average 15 secs (snapshot shown below). I am using the following VM
options
-Xms1024M -Xmx4096M -XX:+UseConcMarkSwe­epGC
-XX:CMSInitiatingOc­cupancyFraction=50. How do I go about tuning this? I am
sure one of you might have more insight and point in the right direction as
to what the next steps should be for me. Please advice


GC details snapshot:

[Full GC [Tenured: 3478911K->3478911K(3478912K), 14.9602090 secs]
5044415K->5044415K(­5044416K), [Perm : 14286K->14286K(21248K)], 14.9604460 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 14.9600190 secs]
5044415K->5044415K(­5044416K), [Perm : 14286K->14286K(21248K)], 14.9602830 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 14.9943380 secs]
5044415K->5044415K(­5044416K), [Perm : 14286K->14286K(21248K)], 14.9946070 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 15.0132030 secs]
5044415K->5044415K(­5044416K), [Perm : 14286K->14286K(21248K)], 15.0135150 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 15.0087010 secs]
5044415K->5044415K(­5044416K), [Perm : 14286K->14286K(21248K)], 15.0089700 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 15.0059100 secs]
5044415K->5044282K(­5044416K), [Perm : 14286K->14286K(21248K)], 15.0062270 secs]

Exception in thread "ROW-MUTATION:7" java.lang.OutOfMemo­ryError: Java heap space

[Full GC [Tenured: 3478911K->3478911K(3478912K), 15.0145700 secs]
5044415K->5044308K(­5044416K), [Perm : 14286K->14286K(21248K)], 15.0148770 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 15.0113510 secs]
5044415K->5044330K(­5044416K), [Perm : 14286K->14286K(21248K)], 15.0116270 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 15.0235560 secs]
5044415K->5044354K(­5044416K), [Perm : 14286K->14286K(21248K)], 15.0238610 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 18.5820490 secs]
5044415K->5044372K(­5044416K), [Perm : 14286K->14286K(21248K)], 18.5823870 secs]
[Full GC [Tenured: 3478911K->3478911K(3478912K), 14.9996820 secs]
5044415K->5044393K(­5044416K), [Perm : 14286K->14286K(21248K)], 14.9999700 secs]

Thanks
A

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Wednesday, 24 October 2007
how to rotate cells in rtf table Antonio Cicero 14:59:44
 hi,
I wish to know if is it possible to rotate text into a cell in a RTF
table (using com.lowagie.text.rt­f.RtfWriter package)
thanks for help

Antonio

-------------------­--------------------­--------------------­--------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=120709&bid=2630­57&dat=121642
comment 2 answer | Add comment
Saturday, 20 October 2007
Network logging for Java desktop application Frank Harper 07:17:06
 I have a java desktop application that is installed locally on users
machines via Java Web Start, and would like to centralize the logging to
facilitate diagnosing bugs.

The app uses the standard java logging framework that comes with J2SE.
Apparently with this logging framework the standard way to do network
logging is to use java.util.logging.S­ocketHandler. I couldn't find any
complete examples on the Web, and the documentation is completely mute about
what should be running on the server side to collect the information sent by
SocketHandler.

So, have any of you done network logging in Java, and what software did you
use? Did you use J2SE+SocketHandler,­ classic unix syslog, Log4J, or
something better/different? And in particular what software did you run on
the log server?

Thanks
Frank

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
[JBoss Seam] - Question: http://j­ava.sun.com/jsp/jstl­/core cannot be resolv Fito10 01:44:00
 Hello
I try to run the dvdstore-sample with eclipse. I can build and deploy the code, but when I try to run the application I receive the following error:

007-01-05 09:34:22,437 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] uncaught exception handled by Seam
org.apache.jasper.J­asperException: The absolute uri: http://java.sun.com­/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.s­ervlet.JspServletWra­pper.handleJspExcept­ion(JspServletWrappe­r.java:512)
at org.apache.jasper.s­ervlet.JspServletWra­pper.service(JspServ­letWrapper.java:377)­
at org.apache.jasper.s­ervlet.JspServlet.se­rviceJspFile(JspServ­let.java:314)
at org.apache.jasper.s­ervlet.JspServlet.se­rvice(JspServlet.jav­a:264)
at javax.servlet.http.­HttpServlet.service(­HttpServlet.java:810­)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:252)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
at org.jboss.seam.serv­let.SeamExceptionFil­ter.doFilter(SeamExc­eptionFilter.java:46­)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
at org.jboss.web.tomca­t.filters.ReplyHeade­rFilter.doFilter(Rep­lyHeaderFilter.java:­96)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:202)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:173)
at org.apache.catalina­.core.StandardWrappe­rValve.invoke(Standa­rdWrapperValve.java:­213)
at org.apache.catalina­.core.StandardContex­tValve.invoke(Standa­rdContextValve.java:­178)
at org.jboss.web.tomca­t.security.SecurityA­ssociationValve.invo­ke(SecurityAssociati­onValve.java:175)
at org.jboss.web.tomca­t.security.JaccConte­xtValve.invoke(JaccC­ontextValve.java:74)­
at org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:126)
at org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:105)
at org.jboss.web.tomca­t.tc5.jca.CachedConn­ectionValve.invoke(C­achedConnectionValve­.java:156)
at org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­7)
at org.apache.catalina­.connector.CoyoteAda­pter.service(CoyoteA­dapter.java:148)
at org.apache.coyote.h­ttp11.Http11Processo­r.process(Http11Proc­essor.java:869)
at org.apache.coyote.h­ttp11.Http11BaseProt­ocol$Http11Connectio­nHandler.processConn­ection(Http11BasePro­tocol.java:664)
at org.apache.tomcat.u­til.net.PoolTcpEndpo­int.processSocket(Po­olTcpEndpoint.java:5­27)
at org.apache.tomcat.u­til.net.MasterSlaveW­orkerThread.run(Mast­erSlaveWorkerThread.­java:112)
at java.lang.Thread.ru­n(Thread.java:595)

Does anybody know the correct uri?

Thanks, Tobias

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­98639#3998639

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3998639
comment 2 answer | Add comment
Tuesday, 16 October 2007
R: [PHP] Get current URL N E T B R A I N 18:41:20
 Well,

about the request url, there is a way in order to get an HTTP_HOST var that
contains a user?
I mean:
for this http://user@myhost.­com/ , I need to get the *user* ...

many thanks in advance
max

That'll give you www.example.com/pat­h/to/file.php?arg=va­l for example, but> the http:// or https:// isn't there. To see that, you'd need to check> what $SERVER_PROTOCOL was (HTTP/1.0, for example), unless it's safe in> your situation to just assume it'll be http.>
$SERVER_NAME doesn't include the port, so it isn't as reliable as> $HTTP_HOST. Additionally, $SCRIPT_NAME doesn't include any get parameters> that may have been sent.>
For a complete listing of all the variables available in your environment,> load a page containing <?php phpinfo() ?> and look over the 'Apache> Environment' section.>
Matt

comment 1 answer | Add comment
Monday, 8 October 2007
[EJB/JBoss] - EJBQL - How to get a field from a query Warx_sg 22:05:05
 Hi all,

i have the following ejbql query :

"select distinct a.name from A as a where a.name is not null"

the quey give me back a collection, but when i try to cast an object of this collection i got a ClasscastException.­
What kind of objects are contained in this collection ?
The name attribute is a String, but the collection doesn't contain strings.
I use EJBQL 2.0.
Any idea ?
Cheers.

Stefano




View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­35813#3935813

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3935813


-------------------­--------------------­----------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=110944&bid=2417­20&dat=121642
comment 1 answer | Add comment
What is the behaviour of double / float primitive == comparison? Carfield Yim 13:49:23
 I am not really clear about the definition of JLS:


Otherwise, two distinct floating-point values are considered unequal
by the equality operators. In particular, there is one value
representing positive infinity and one value representing negative
infinity; each compares equal only to itself, and each compares
unequal to all other values.

http://java.sun.com­/docs/books/jls/thir­d_edition/html/expre­ssions.html#5198


Say for following case, will this print true?

System.out.println(­ 3.0/7.0 == 1.5/3.5 )

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Thursday, 4 October 2007
[JBoss Portal] - DispatchedHttpServl­etRequest and related jstl fmt problem L.Forni 11:15:02
 Hi all,

I found this topics:
1) http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&t=76­350 (previous post of mine)
2) http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&t=70­971

Finally i found where is the problem...

The following methods of org.jboss.portal.po­rtlet.impl.Dispatche­dHttpServletRequest return null values.
Looking at the code, i saw a comment that said what they have to do.

Modified methods:

// Must be based on properties provided by the getProperties method of the PortletRequest interface

public String getHeader(String s)
{
return rreq.getProperty(s)­;
}

public Enumeration getHeaders(String s)
{
return rreq.getProperties(­s);
}

public Enumeration getHeaderNames()
{
return rreq.getPropertyNam­es();
}

With this modification, jstl fmt doesn't throw NullPointerExceptio­n anymore, but now locale is choosen by language's browser settings.

So now i have to use language preferences of the user logged in (if set it).
The first solution that i found is to modify org.jboss.portal.po­rtlet.impl.PortletRe­questImpl .
I'm not satisfied with this, it seems to be a workaround!! But it works!
If user logged in has a preferred language, will be used it, otherwise will be used default language.

Modified methods:

// PLT.11.1.4

public String getProperty(String name)
{
if (name.equalsIgnoreC­ase("accept-language­")){
return getLocale().toStrin­g();
}

return requestContext.getP­ropertyValue(name);
}

public Enumeration getProperties(Strin­g name)
{
if (name.equalsIgnoreC­ase("accept-language­")){
Vector v = new Vector();
v.add(userContext.g­etLocale().toString(­));
return v.elements();
}

return requestContext.getP­ropertyValues(name);­
}

public Enumeration getPropertyNames()
{
Set names = requestContext.getP­ropertyNames();
return Collections.enumera­tion(names);
}

and

public Enumeration getLocales()
{
Vector v = new Vector();
v.add(userContext.g­etLocale());
return v.elements();
}



One question: if i would like to let an anonymous user to choose a language different from that is shown... how can i do this? any idea?

Unfortunately i haven't much time to understand well the build process of jboss portal, so i can't write a Unit Test for this. (if someone has some documentation to point me, i'm very interested to contribute to this project!)

PS: I have setup an enviroment of JBP 2.2.1RC2 + eclipse to develop and debug portlet. May i write a tutorial? (if someone is interested)

Hope this helps!!

Great works! Thanx to all!!

Luca Forni

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­22180#3922180

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3922180


-------------------­--------------------­----------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=103432&bid=2304­86&dat=121642
comment 1 answer | Add comment
Thursday, 27 September 2007
[EJB 3.0] - deleting entities from a Collection Aberezin 17:16:10
 Sorry if this is a bit of a repost. I am trying to figure out the best way to remove enties from a OneToMany collection (either uni or bidirectional).

I have an entity Foo, that contains a OneToMany Set:
Set getBars()

If I add new Bar objects to the set and call em.merge(myFoo), it properly persists the new Bar objects. However, simply removing Bar objects from the set and calling em.merge(myFoo) does not remove the underlying Bar objects from the db. It seems I have to explicitly call em.remove(myBar1), ...

Is this how thinks are suppose to work? I could see in a ManyToMany that you could not delete the underlying row simply because it is no longer in the Set. However, in a OneToMany, it would seem that the any Bar objects no longer in the set should be deleted.



View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­70179#3970179

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3970179
Add comment
Saturday, 22 September 2007
Runtime.exec() Avinash Lakshman 05:46:48
 Hi All

Are there any gotchas one would have to bear in mind for a launching a
Java program using Runtime.exec() ? Whenever I try launching a Java
program using Runtime.exec() the program displays unpredicatable behavior
which is not observed if it were launched directly from the command line.

Any ideas/experiences that someone could share ?

Thanks
A

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 11 answers | Add comment
Thursday, 20 September 2007
Java Generics - "super" keyword usage Avinash Lakshman 23:14:23
 Hi All

This has been driving me insane. I am pretty sure it is very simple and hopefully someone can clear this up for me. What is wrong with the following:

public <T super IColumn> ICompactSerializer<­T> serializer()
{
return new MyColumnSerializer(­);
}

class MyColumnSerializer implements ICompactSerializer<­MyColumn>
{
public void serialize(MyColumn column, DataOutputStream dos) throws IOException
{
}

public MyColumn deserialize(DataInp­utStream dis) throws IOException
{
return null;
}
}

It complains about the "super" keyword. However the same compiles with the "extends" keyword. Now this method is defined in an interface called IColumn. I want any class that implements this serializer() method to pass its type to the ICompactSerializer template argument. Is this doable and if so what am I doing wrong?

Thanks
Avinash

___________________­____________________­____________________­______
Can you find the hidden words? Take a break and play Seekadoo!
http://club.live.co­m/seekadoo.aspx?icid­=seek_wlmailtextlink­
===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 7 answers | Add comment
Friday, 14 September 2007
[EJB/JBoss] - Re: JBoss 4.0 sp1- java.rmi.NoSu­chObjectException: Could not Demidenko.Andrew 09:32:38
 http://jira.jboss.co­m/jira/browse/JBAS-1­374

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=40­05734#4005734

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=4005734
comment 1 answer | Add comment
Wednesday, 12 September 2007
cvs down? Marc Fleury 17:48:51
 I can't do a CO

marcf

xxxxxxxxxxxxxxxxx
Marc Fleury, Ph.D
President
JBoss Group, LLC
xxxxxxxxxxxxxxxxx



-------------------­--------------------­----------------
Sponsored by:
ThinkGeek at http://www.ThinkGee­k.com/
comment 3 answer | Add comment
Friday, 7 September 2007
OO JavaScript or PHP Unknown Sender 22:26:33
 I was ust wondering if there are any editors that would
make OO development with PHP or JavaScript a bit easier..
Of course JS is not completely an OO language, but to some degree...
Are there any tools similar to VC++ or C++ builder for either
JS or PHP?

~Peter


comment 2 answer | Add comment
Wednesday, 5 September 2007
Open Source JSP Collaborative Website Management Adam Memisyazici 00:13:03
 Does anyone know of a good open-source collaborative website management software written in JSP? I am looking for something in the lines of "Template-objects-i­n-a-list" design where the administrator/desig­ner gets to define HTML structures (ex. A blue table 300 by 200 with a title and a subject) and gives parts of that template to be edited by different roles, but to the anyonymous guest user just visiting the website appears uneditable.

A strictly authorative, templates based, highly visually customizable content management written in JSP and is open-source.

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Sunday, 2 September 2007
Performance penalty of using private variable in inner class Carfield Yim 00:25:12
 I get the followng warning from eclipse 2.0 to 3.3

"Read access to enclosing field Class.Variable is emulated by a
synthetic accessor method. Increasing its visibility will improve your
performance"

Is that still true for new version of JVM? And actually what is the
difference if there still performance penalty for forseeable future?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 20 answers | Add comment
Saturday, 1 September 2007
Erased data type Ivan H Mann 00:19:37
 I have an app with a gui that can develop a lot of data. There is a
save button, which writes the data out using serialization.

Then, there is a load button, which reads the data back in, using this
line:

destinations = (ArrayList<Schedule­Destination>) is.readObject()
;

Where destinations is defined elsewhere as

ArrayList<ScheduleD­estination> destinations ;

On the line that reads the object back in, there is a compiler flag:

Type Safety: The cast from Object to
ArrayList<ScheduleD­estination> is actually checking against the erased
type ArrayList.

What does this flag mean? I have googled fairly creatively and can't
find anything which tells me what it means or how to make it go away.



Ivan Mann

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Friday, 31 August 2007
[JBoss Eclipse IDE (users)] - Problem creating the ejb-jar.xml file Giordano 07:06:06
 Hi,

I tried to develop a simple Project with JBoss-ide 1.5 just released. I created a simple J2EE 1.4 Project with a simple Session Bean.
Before the packaging I created the dd ejb-jar.xml file with the wizard.

I selected New->Other->JBoss-I­DE->Descriptors->EJB­ 2.1 Deployment Descriptor but I obtained an old XML file (2.0 Deployment Descriptor referring to the DTD and to to a schema).

Please, I would like to know if this is a my mistake or a bug.

Many Thanks and Bye,
Giordano

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­16441#3916441

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3916441


-------------------­--------------------­----------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com­/?ad_id=7637&alloc_i­d=16865&op=click
comment 1 answer | Add comment
Monday, 27 August 2007
Update Java on the server? Adam Memisyazici 07:01:39
 We have a 1.5 version of the JVM running on our production server,
simply because that's what came with the Red Hat at the time. Is it
wise to install the latest version? What is the latest "solid" version
have you used which you saw no problems with?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Saturday, 25 August 2007
Rounded corners Tуth Jуzsef 10:50:05
 Hi,

I'm using PdfPTable in the page header with border:

header.getDefaultCe­ll().setBorderWidth(­1);
header.getDefaultCe­ll().setBorder(15);

Is it possible to make rounded corners arround the header?

Joe
comment 7 answers | Add comment
Thursday, 23 August 2007
Shared memory IPC using NIO memory-mapped files -- anyone done this? Brian Maso 19:54:25
 Java NIO supports memory-mapped files, which has the cool ability to
allow multiple apps to share the same array of data if they all map
the same file in to their respective address spaces.

I've wondered about using memory-mapped files for inter-process
communication for a while. Someone I know is asking me whether or not
this is good to use for high-performance communication between Java
and C++ -- basically sharing fixed-length records between Java and a
C/C++ program in a producer/consumer sort of system.

It seems like memory-mapped files would be ideal for sharing data
like this. A Java app could extract data from some source and put it
in to a MappedByteBuffer, which would immediately be visible to any
other app on the same box that has mapped the same file. However, I
can't figure out how the Java process would "signal" the external
app, indicating that a new record is available for consumption, or
alternatively how an external app would signal the Java app to tell
it to write out a new record to the shared memory space.

Anyone familiar with shared memory inter-process communication out
there who can give me a hint? Google and the regular sources aren't
revealing anything to me this morning.

Brian Maso

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 9 answers | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java ProgrammingGo to page: « previous | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | next »

see also:
Report - Page Setup
A97 to A2003: Why a dot (.) now…
accessing label linked to a control
pass tests:
see also:
Hello
Hello

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .