[Embedded JBoss Development] - ShrinkWrap Export to File
by ALRubinger
"Jaikiran" wrote :
| I happened to try out the ShrinkWrap (1.0.0-alpha-1) this weekend.
| Pretty useful stuff, especially in test case environments :) I read
| through the project wiki http://www.jboss.org/community/wiki/ShrinkWrap
| and even tried out my own few testcases. Works great!
|
| One of things that i noticed in my tests was that i kept repeating a
| piece of boilerplate code. As shown in the example in your wiki for
| exporting jars (wars, ears etc...) we get hold of the InputStream from
| the ZipExporter. However, the step of writing out to the file system
| using an output stream is left to the client of the API:
|
| // Export to the Filesystem as a real JAR
| | InputStream zipStream = ZipExporter.exportZip(archive);
| | // Get a FileOutputStream and then write the contents of "zipStream" to it
|
|
| Was this intentional? In my tests, after exporting, i had to almost
| always write out the stream to the file. Although it's not complicated,
| clients of the API could probably avoid this extra code if the
| ShrinkWrap API added a new API which accepts the File to which the
| archive has to be exported?
|
| Something like:
|
| void ZipExporter.exportZip(archive, File outputFile)
|
|
| Thoughts?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261019#4261019
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261019
16 years, 5 months
[JBoss Remoting Development] - JBoss RMI + Serialization performance issue
by ron.sigal@jboss.com
"ravi_eze" wrote :
| hi,
|
| This is w.r.t. http://labs.jboss.com/jbossremoting/docs/benchmark/performance_benchmark.... where comparision between diffarent protocols is done. The page also gives the JUnit code that generated the graphs. we are trying out with 2.5.2. version.
|
| We are evaluating Java RMI and JBoss RMI over socket + Jboss serialization. We see that Java RMI with Java serialization is always atleast 20% faster than Jboss RMI + socket + Jboss serialization.
|
| i am unable to understand the below from the test cases.
|
| 1. The payload uses byte[1024] empty array always. and the object is never serialized.
| 2. why byte[] as theres not thing there to serialize in it
| 3. Even on using byte[1024] to be sent across using jboss and java rmi we see java rmi is superior on our machines.
|
| If this is the case then how ar the graphs generated? Or am i missing something very important. Please help.
|
| --
| ravi
|
Actually, the byte array gets wrapped in some Remoting objects, which do indeed get serialized.
By "Java RMI with Java serialization" I assume you mean the "raw_socket" results, or maybe the "raw_rmi" results, and by "Jboss RMI + socket + Jboss serialization" I assume you mean "socket transport with jboss serialization". Is that right? If so, then I can't explain why you're seeing results different than ours. Who knows? Different machines, different jdk's, etc.
By the way, before I released version 2.4.0.GA, I did a lot of testing and tuning, and, in the end, the performance of 2.4.0.GA and whatever the latest 2.2.x release was at the time were very close, within a few percentage points.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260913#4260913
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260913
16 years, 5 months