Submitted by swapnil_khole on 27 July, 2008 - 21:24
ज़ावाचे ईथे भरपूर प्रोग्रमर्स असतिलच. मला थोडी मदत हवी होती.
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."
विषय:
Groups audience:
Group content visibility:
Public - accessible to all site users
शेअर करा
no you cannot, Only objects
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,
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
java चे serialization चांगले नाहीय. खुप वेळ जातो त्यात, मी काल स्वतःचा serializer लिहीला आणि तो खुप वेगवान आहे.
http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/protocol.doc5...
java.io.Bits ह्या दोन गोष्टींची खुप मदत झाली.
java script बाबत
java script बाबत कोन्ही मदत करु शकतो का?
what do you want?
what do you want?
an interesting article, read
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
In case if you are missing Norton Commander
http://farmanager.com/screenshots.php?l=en
The Greatest Programming Tip
The Greatest Programming Tip Ever Written
माझ्या
माझ्या मशीनवर jdk1.6_03 आहे.ते SQL Developer ला support करत नाही.त्याला jdk 5.0 लागते.
तर मी एकाच मशीनवर दोन्ही jdk install करु शकते का?काही problem येतो का?
--------------------------------------------------------------------------------
भिंतीला कान असतात आणि पाठीला डोळे!!!
पीव्ही ,
पीव्ही , तुम्हाला JDK म्हणायचे नसुन JRE म्हणायचे आहे का ?
कारण JRE म्हणजे Java Runtime Environment कि जे तुमच्या SQL Developer लागत असेल, आणि JDK म्हणजे Java development Kit कि ज्याचा वापर जावा प्रोग्रमिंग आणि jaava programs compile करायला होतो.
माझ्या मते, तुम्ही SQL Developer ला कुठले JRE version लागते ते चेक करा, आणि
Control Panel > Java मधे जाउन syetems वर कोणत्या JRE आहेत ते पहा. तिथे JRE 5.0 नसेल तर तुम्हला ते install करावे लागेल्..तुम्ही मशिनवर multiple JREs install करु शकता.
pv, I think you can install
pv,
I think you can install both in separate directories. and put both in the PATH. This should work.
oracle wesite
oracle wesite says
(http://www.oracle.com/technology/software/products/sql/index.html)
* NOTE: Oracle SQL Developer 1.5.4 is shipped with JDK1.5.0_06. However, you can connect to and use any JDK 1.5.0_06 or above. Additionally you can use Oracle SQL Developer 1.5.4 with JDK 1.6 (JDK 6.0). In this case the minimum release is JDK 1.6 Update 3 and above. Oracle SQL Developer will not run with JDK 1.6 Update 1 or Update 2. To use an existing JDK, download the zip files listed below "with JDK already installed."
त्यामुळे JRE चा मी काही विचार केला नाही.
मनोज,
put both in the PATH म्हण़़जे काय??
--------------------------------------------------------------------------------
भिंतीला कान असतात आणि पाठीला डोळे!!!
PATH = the system variable
PATH = the system variable 'PATH'
गजानन ने
गजानन ने बरोबर सांगितले...
त्यासाठी..
start->setting->control panel->system->(advanced tab)->environment variable tab->under system variable drop down list select path and click edit.
In that in the edit box put a ";" at the end and enter the paths of both JDKs.
and then apply/save.
प्रयत्न करुन बघा.
चान्गला
चान्गला धागा चालू केलात मित्रानो...
Java-Corba ची हेल्प लागेल तर विचारा
गौतम, आपण
गौतम, आपण आधी भेटलो आहोत का?
गजानन,
गजानन, काही आठवत नाही राव....
कुणीकडे बरा??? मी पुणे सोडून २ वर्षा झाली...
उद्योगभवन
उद्योगभवनात? पण असो, तुम्हाला आठवत नाही म्हणजे आपण भेटलो नसेन.
JSP/Servlet वापरून एकापेक्षा
JSP/Servlet वापरून एकापेक्षा जास्त फाईल्स एकाच वेळी अपलोड कशा करायच्या?
(याहूच्या मेलमध्ये अॅटॅचमेन्ट करतो तसे)
Old but sad news... कसे आणि
Old but sad news... कसे आणि काय होणार जावा चे
नमस्कार. TOMCAT 5.5 (किंवा
नमस्कार.
TOMCAT 5.5 (किंवा त्याच्या पुढच्या पिढ्यां) मध्ये प्रत्येक रिक्वेस्ट प्रोसेस करण्याकरता किती वेळ लागला याची काही लॉगफाईल बनते का? असेल तर ती कोणत्या फोल्डरमध्ये मिळेल? ती बनण्यासाठी कोणते सेटींग्स असतात?
मदत! मदत!!
मदत! मदत!!
मदन, हे
मदन, हे बघ.
http://wiki.apache.org/tomcat/AccessLogValve
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html (%D - Time taken to process the request, in millis)
%D attribute will tell you how much time it is taking to process each request. You can put this configuration in your context.xml and specify where you want the log file to be created and with what name.
नात्या, मनापासून धन्यवाद!
नात्या, मनापासून धन्यवाद!
उपयोग झाला का पण?
उपयोग झाला का पण?
लॉग फाईल बनतेय.
लॉग फाईल बनतेय.
xxx.xx.xxx.xxx - - [14/May/2010:21:20:53 +xyz] "GET /path/Login.do?command=SignIn HTTP/1.1" 200 6438
फाईलीत असा पॅटर्न येतो आहे.
server.xml मध्ये मी बदलून असा पॅटर्न केला -
pattern="%t %H cookie:%{SESSIONID}c request:%{SESSIONID}r %m %U %D"
पण तरीही लॉग फाईलीतला पॅटर्न बदलत नाही. २०० मला वाटते HTTP रिक्वेस्ट स्टॅस्ट्स आहे. आधी %U नंतर %s होते. ते मी काढून टाकले. तरीही ते URL नंतर 200, 304, 404 असे आकडे (स्टेटस?) येताहेत. %m %U %D %T %v असेही करून पाहिले पण तरीही लॉग फाईलीतला पॅटर्न बदलत नाही.
200 6438 यातला 6438 हा रिस्पॉन्स टाईम आहे का? थोडे आणखी धडपडायला लागेल असे वाटतेय. %D काढून टाकले तरीही हाच पॅटर्न फाईलीत लिहिला जातोय. मी काही चुकतोय का?
F1 F1 F1 मी Sun चे SCWCD Cert
F1 F1 F1
मी Sun चे SCWCD Cert देत आहे. तर कुणी दिले असल्यास अभ्यास कोणत्या पुस्तकातुन करावा व कोणत्या मॉक परीक्षा द्याव्यात?
जाणकारांनी क्रुपया मदत करावी
I am getting javascript alert
I am getting javascript alert 'Stack overflow at line: 115' while populating the menus after login into the application. This started coming after I implementaed the Servelt filter to restrict access to the pages if the user does not have rights to that page. Plus this filter calls another class called RequestWrapper.class for eliminating javascript keywords to avoid Cross Side Scripting. If the filter is commented in web.xml then this Stack overflow error does not come.
कृपया मदत करा.
त्या Cross Side Scripting
त्या Cross Side Scripting कोडमध्ये अनटर्मिनेटेड लूप किंवा नेस्टेड लूप implement झालेय का ? सहसा अनटर्मिनेटेड लूप किंवा स्वत:लाच ट्रिगर करणारा इव्हेंट कोड/लिसनर (उदा: ऑन क्लिक इव्हेंटवर ऑन क्लिक फंक्शन कॉल) असेल तर अशी एरर येते.
Pages