Java/J2EE

ज़ावाचे ईथे भरपूर प्रोग्रमर्स असतिलच. मला थोडी मदत हवी होती.

As we know in traditional EJBs we pass the objects as "pass by value" over the network/wire. I need to pass the objects by reference. I read somewhere that it is possible in EJBs to pass the values by reference. But how exactly? & what would be the code changes. The requirement to pass the values by reference is due to "reduced cpu and memory usage when remote interfaces are used by avoiding making copies and marshalling/unmarshalling."


no you cannot,

Only objects implementing RomoteInterface can be passed by reference.

But you can create some kind of delegate/manager/mock class which will do all EJB calls for your api users, so they dont have to worry about writing all complex logic.

Networks class are not that expensive these days, so dont worry its not going to cause big harm in your project.

anyway search in google for better response. there are a lot smart people out there.



मला आज हे एक framework सापडले जे EJB, JMS test करण्यासाठी वापरु शकता.

http://www.mockejb.org/

जर तुमच्या पैकी कोणी TDD फॉलो करत असाल आणि EJB, JMS कश्या test करायच्या माहीत नसेत, तर हे वापरा... खुप उपयोगी आहे हे framework



Tip:
How many of you know, you can do this on OracleConnection object

((OracleConnection)conn).setDefaultRowPrefetch (100);

by default oracle jdbc driver pre fetches only 10 rows, but if you modify this, so you can fetch many rows at a time... which can improve your while(rs.next()) loop performance.



java चे serialization चांगले नाहीय. खुप वेळ जातो त्यात, मी काल स्वतःचा serializer लिहीला आणि तो खुप वेगवान आहे.

http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/protocol.doc5...

java.io.Bits ह्या दोन गोष्टींची खुप मदत झाली.



java script बाबत कोन्ही मदत करु शकतो का?



what do you want?



an interesting article, read it whenever you are free.

http://www.theserverside.com/news/thread.tss?thread_id=48973



In case if you are missing Norton Commander

http://farmanager.com/screenshots.php?l=en