Login/Logout | Profile | Help |
Last 1|Days | Search | Topics
Java/J2EE

Hitguj » Technology » Programming » Java/J2EE « Previous Next »

Swapnil_khole
Tuesday, March 13, 2007 - 8:48 pm:   Edit Post Delete Post Print Post  Link to this message

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

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."

Swapnil_khole
Thursday, March 15, 2007 - 4:29 pm:   Edit Post Delete Post Print Post  Link to this message

अरेच्चा! कोणीच नाही मदत करणारे?

Maanus
Friday, March 16, 2007 - 10:45 pm:   Edit Post Delete Post Print Post  Link to this message

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.


Maanus
Tuesday, August 21, 2007 - 12:15 am:   Edit Post Delete Post Print Post  Link to this message

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

http://www.mockejb.org/

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

Maanus
Wednesday, August 22, 2007 - 3:12 am:   Edit Post Delete Post Print Post  Link to this message

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.


Maanus
Tuesday, February 12, 2008 - 8:07 pm:   Edit Post Delete Post Print Post  Link to this message

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

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

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

Kanky
Monday, April 07, 2008 - 7:13 am:   Edit Post Delete Post Print Post  Link to this message

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

Maanus
Monday, April 07, 2008 - 3:10 pm:   Edit Post Delete Post Print Post  Link to this message

what do you want?

Maanus
Monday, April 07, 2008 - 3:12 pm:   Edit Post Delete Post Print Post  Link to this message

an interesting artical, read it whenever you are free.

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

चोखंदळ ग्राहक
महाराष्ट्र धर्म वाढवावा
व्यक्तिपासून वल्लीपर्यंत
पांढर्‍यावरचे काळे
गावातल्या गावात
तंत्रलेल्या मंत्रबनात
आरोह अवरोह
शुभंकरोती कल्याणम्
विखुरलेले मोती


हितगुज गणेशोत्सव २००६





Topics | Last Day | Tree View | Search | User List | Help/Instructions | Content Policy | Notify moderators