Some questions on JNI Specification(s)

Which is the definitive spec? Is it the book "Programmer's Guide and
Specification" (Guide) by Sheng Liang, or the online doc "Specification" v1.5
(Spec)? The trouble is they don't agree on some matters. It's not simply a
question of which is right, but rather what various JVM vendors have
regarded as correct (regarding the Spec or the Guide as normative) at
various points in time. I'm intending my code to be portable across multiple
platorms and vendors, so it depends to which document they've worked. Do I
have to program within the intersection of the two specs?
The big one is that In the online Spec, it says that only ExceptionOccurred(),
ExceptionDescribe(), and ExceptionClear() can be called when an exception
is pending (end of Chapter 2). But the Guide (11.8.2) lists several other
functions, among them ExceptionCheck(). For instance, according to the
Guide if I call DeleteLocalRef() with a valid argument, nothing bad will
happen, but according to the online Spec I could heading into crashes or
other forms of Undefined Behaviour because there might be a pending
exception. (Having been coding according to the Spec, the Guide now
implies I could afford to have been a lot less cautious, so if the Guide is
normative I can happily rip out lots careful error-handling code.)
One apparently exception-unsafe function is PopLocalFrame(), which
makes it unique amongst the resource cleanup functions. Is this
accurate? Is there a reason for this?
To clarify, what are all the functions that might FatalError() due to
inability to allocate LocalRefs? Is it anything that returns a LocalRef
except NewLocalRef (which just returns NULL and posts an exception)?
What about PopLocalFrame() with a non-NULL argument?
With those functions that take JNI Version parameter, will the resulting
JNIEnv only have those function table entries for that version, or the
most recent one? (i.e. is the supplied version a request for a minimum,
or more exact)? If the former, does this mean that the JNI version
hierarchy is guaranteed never to fork, so there is no ambiguity over the
"latest version"? (My library may create a JVM or attach to a thread in
a variety of circumstances, and it may not be possible to know what the
most appropriate version to request is; I'm hoping the JNI just Does The
Right Thing and saves me some trouble). The same holds for the JavaVM
interface.
For RegisterNatives, the Spec says the functions passed in must
"nominally" have sig
ReturnType (*)(JNIEnv*, jobject objectOrClass,...);
Does this actually mean they should use a va_list and the C calling
convention, rather than JNICALL and explicit params (as in "ordinary"
native methods)?
Thanks for your help
John

> With those functions that take JNI Version parameter, will the resulting JNIEnv only have those function table entries for that version, or the most recent one?
It sounds safest to assume it implements only the version you requested, unless you call GetVersion first to determine the true version.
> Does this actually mean they should use a va_list and the C calling convention, rather than JNICALL and explicit params (as in "ordinary" native methods)?
The book makes this clear. You pass pointers to "ordinary" native methods, having the exact same prototype and implementation as if you used implicit linking rather than RegisterNatives.
-slj-

Similar Messages

  • Hello-- I'am thinking off making an app to the iphone, but i'am not sure aboutsomething. the app should get some alarms from a specific phone number, and my question is, can i make an app that can receive message from a specific phone number ?

    Hello-- I'am thinking off making an app to the iphone, but i'am not sure aboutsomething. the app should get some alarms from a specific phone number, and my question is, can i make an app that can receive message from a specific phone number ?

    This needs to be asked at http://developer.apple.com/

  • Some questions on SAP DMS

    Hello
    some questions on SAP DMS:-
    - can versions of same document be shown graphically. ?
    - can links be created for documents. can we make sure that links are not broken when document is moved ?(links to document on 1st location shall not be broken)
    - is there a notification mechanism(user can recieve e-mail when document gets changed)
    - is there a review mechanism, before doc. is archived.(sort life cycle)
    Thanks

    Hi Shovon,
    1. can versions of same document be shown graphically?
    You can display all existing versions of a document info record by using the menu 'Extras' >> 'Versions'. Then you will see all existing document version for this specific document number. Further you will see which is the current version at the moment.
    2. can links be created for documents. can we make sure that links are not broken when document is moved ?(links to document on 1st location shall not be broken)
    I'm not quite sure what you mean by links to documents. If you mean linking document info records together, I can confirm that this works also in DMS. You can maintain the object DRAW for object links in the customizing and then you will be able to link one document info record to another. The data for all document info records is stored in table DRAW.
    If you are talking about originals which are linked to document info records, please note that if you check in an original the system creates a unique LOIO- and PHIO-ID which is stored in the Content Server and in the database tables DMS_DOC2LOIO and DMS_PHIO2FILE. But there are also different reports to migrate original data from one content Server to another (e.g. DMS_RELOCATE_CONTENT).
    3. Is there a notification mechanism(user can recieve e-mail when document gets changed)
    Yes you can activate an event type linkage for object
    DRAW     CHANGED     DOKST
    DRAW     CHANGED     DWNAM
    in transaction SWE2. Here you just have to set the flag for 'Type linkage' (linkage activated). Then everytime the document is changed a notification is sent to the entered USER of this document info records.
    4. Is there a review mechanism, before doc. is archived.(sort life cycle)
    Normally there is no special lifecycle. You can control this by maintaining a released status and if there are more versions always version with the release status is the current one. But there is no specific date when the document info record expires or something like that.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information.

  • Some question on IDOC (Control Record/Data Record/Status Record)

    Dear all,
    I am new in this area, and would like to enquire some question on this topic.
    When I view a IDOC via WE02, each of the IDOC record will consist of Control Record/Data Record/Status Record).
    Questions:
    I notice that the data records consists of many segment (i.e. E1EDK01, etc) which are use to store application data.
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Thanks.
    Tuff

    Hi Tuff,
    As everything in SAP, with IDOCs too there are
    1) Standard IDOCs
    2) Standard IDOCs(Extending - Enhancement to an IDOC, to accomodate for custom values)
    3) Custom IDOCs
    And every IDOC has,
    Control record - EDIDC Structure - This mostly reflects the partner profile information, along with few more details which are used for IDOC extension, Sequencing etc
    Data Records - EDID4 Structure - These records contain the actual business data of the document in concern. So for ORDERS05 it would contain order details, INVOIC02 - Invoice details so on...
    Status Records - These records capture the status of an IDOC from the time it is received/sent from your system and a corresponding business document is created/changed. So this will have messages like "IDOC sent to the port OK" etc which are status from the communication layer(ALE) to application specific messages like "Sales Order XXX created" or "Invalid Material" etc.
    You would have noticed something called as Process code in the partner profile, this is associated with a FM(or work flow task etc) which has the business logic coded in.
    So in case of an Inbound IDOC, the sending system updates the IDOC - Control and Data records, and sends it to the receiving system. On the receiving system the IDOC's control record is validated against the partner profiles set, if an entry is found then using the process code it finds the associated FM which will decode the data from the IDOC data records as per the IDOC type and then use it to post data into SAP (VIA BDC, Batch Input, BAPI etc).
    And all this while the Status records are being updated accordingly.
    So with the above context will try to answer your questions,
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    In case of a custom IDOC, yes you will have  to.
    In case of a standard IDOC, you wouldn't have you just have set up the necessary configuration (Partner Profile, Process code etc)
    In case of a standard IDOC extended to accommodate for some custom values(for which there are no fields in standard IDOC - Let us say you have added some new fields on VA01) - In this case you can still use the standard Process code and Standard FM associated with it, SAP provides several Function exits in these FM's which you can leverage to add your custom logic.
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    There are several documents available on the net and on SDN detailing step by step approach for all the above three cases,
    just search for step by step guide for IDOCS - sap.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Again it depends, in case of using a standard IDOC you wouldn't have to. But in case you have some customizations/enhancements then you might have to.
    For Ex: updating the control record accordingly for indicating that you have extended the standard IDOC. Or append custom messages to the status record as per the business logic.
    Try out the examples you find on the net and post any specific questions you might have.
    Regards,
    Chen

  • Some questions on Zen Visio

    Hi
    I'm considering to buy Creative's Zen Vision:M. Before that however, I've some questions.
    Power Adapter
    . Does it come bundled with the power adapter? If not, how much does it cost. The website doesn't seem to state this.
    Battery Life
    2. It's rated to have a battery life of up to 4 hrs playtime (MP3, 28kbps, 4mins/ song)and up to 8 hrs playtime (WMA, 64kbps, 4mins/ song). Does it mean then that converting all my music to MP3 will be best? Since it allows me to play better quality music at a high bit rate and consumes less battery.
    FM Recording
    3. How can I use this player to record FM? Do I need an additional devices. Or can I use this player to record directly from the FM?
    4. Also, can I pause the FM recording and voice recording and restart it again after a while?
    5. Can I schedule the FM recorder to start recording at a scheduled time?
    Video Watching
    6. Can I fast forward or rewind my videos to a specific scene?
    7. Lastly, is watching videos on the zen vision: m straining on the eyes? let's say if you watch it for or 2 hours.
    Thanks.

    Hi
    My zen vision:m didnt come with a power adaptor but just look at the website when buying-they should say if it comes with one or not, also generally i found when buying mine that without it costs around ?60 and with ?90 that should give you an indication.
    Cant help you with the battery life though except that i've never had a problem with mine (lasts a good few days anyway)
    Fm recording (although i've only used it once) is great, you dont need any additional devices and i think it lasts a maximum of 0hours. I havent tried pausing recording but i think you can. I dont think you can schedule it (i may be wrong though)
    Videos can be fast frwarded, you can set a playback speed and change the size to fit the screen which means you can watch a video comfortably on it. Although i havent tried watching a full length film on it i dont think it would hurt your eyes but like i say i havent tried!
    hope that helped (at least a bit)

  • Some questions on JFormattedTextField

    I more or less manage to work with JFormattedTextField, but have not mastered this control fully. I hope that someone can help me with some questions I still have.
    JFormattedTextField field = new JFormattedTextField(); // no-args constructor
    double d = 1.23456; // primitive type will be autoboxed to Double
    field.setValue(d); // AbstractFormatterFactory based on DoubleNow, when the field has the focus, a text value of +1.2+ is displayed. As soon as it looses focus, the text value is changed into +1.235+. I find that weird behaviour and would rather see it the other way around or see the same text in both situations. Can anybody explain me what's happening here? I do not observe this behavior when using one of the other constructors.
    Another problem has to do with internationalization. The Dutch locale, for example, uses a comma as a decimal separator. Users having a scientific background, however, often override the default settings and use a period as a decimal separator (on Windows by changing the regional options). Is there a way of using whatever separator a user has chosen for his system when formatting numbers in Java? I know you can use the DecimalFormatSymbols class to change symbols for a specific locale, but that does not take into account user-specific settings.

    Hi.
    Try this:
    DecimalFormatSymbols fs = new DecimalFormatSymbols();
        fs.setDecimalSeparator('.');
        fs.setGroupingSeparator(',');
    DecimalFormat format = new DecimalFormat("##.#", fs);
    AbstractFormatter formatter    = new NumberFormatter( format );
    AbstractFormatterFactory ff = new DefaultFormatterFactory( formatter, formatter, formatter);
    JFormattedTextField field = new JFormattedTextField();
    field.setFormatterFactory(ff);

  • Some questions on EJBs

    hi, i am an intermediate javaee developer but i have some questions on EJBs. sometimes i wonder why do i want to use EJBs in an application. if possible please use some illustrations.
    1) What problems do EJBs both session bean and message driven bean solve respectively. like what was the motivation behind creating ejbs.
    for ex, someone complained to me once that an app his company wrote took time to load large sets of data, and he asked if he should use EJBs, and i am like, does an EJB load data faster? though i think i said it could help, not because i was sure, but because u know the "Biig EJB", it has to solve it.
    2) why do people compare spring and ejbs, and sometimes prefer spring over ejbs.
    3) in what situations could an EJB be neccessary/advantageous, and what are the disadvantages if any.
    thanks.

    java_everywhere wrote:
    1) What problems do EJBs both session bean and message driven bean solve respectively. like what was the motivation behind creating ejbs.
    for ex, someone complained to me once that an app his company wrote took time to load large sets of data, and he asked if he should use EJBs, and i am like, does an EJB load data faster? though i think i said it could help, not because i was sure, but because u know the "Biig EJB", it has to solve it.It doesn't solve any problems, it is a framework that you can use to make your development (and maintenance) cycle easier IF you use it properly. For example, you get integrated JMS support through message driven beans, no extra work needed there. You get container managed transactions, which made my life a whole lot easier once I got over that phase of thinking the server is responsible for everything (it is not, you are still in the driver seat when it comes to transaction management). As part of that transaction management you get out of the box ORM support through the JPA specification. You can take advantage of the load balancing features of the server for heavy weight applications. etc. etc.
    In essence you shouldn't think in terms of what EJB technology gives you; what does the entire JEE platform give you, of which EJB technology is only a component?
    >
    2) why do people compare spring and ejbs, and sometimes prefer spring over ejbs.A real world example: when putting together Ikea furniture you can usually get very far with only using those little tools they give you in the package. However, sometimes you are forced to use a screwdriver, a hammer or a drill. And sometimes you use a screwdriver to keep something in place while using the little Ikea tool to put in a screw. Combining the screwdriver and the Ikea tool usually stems from experience where using only one of them took so much longer and was so much more frustrating to get the things done.
    Interesting how real world examples usually translate to software development as well. Why would you limit yourself to using only one tool when combining tools could give you more flexibility and could solve a problem easier because you use the strengths of both to compliment each other?
    3) in what situations could an EJB be neccessary/advantageous, and what are the disadvantages if any.All technology exists because there was some need for it. Need rises from requirements, so this question is not answered right here and now - it should be asked on a per project basis. I have this project with these requirements, how could EJB technology help here? How could Spring help? How could Struts 2.0 help? etc. etc.

  • Some questions about building  a plug in

    Hello,
    1.I'm trying to build a plug in ( for EM12c release 2 ) for my standalone java application - which exposes mbeans whom i want to collect some metrics with.
    It's been a while since i started to build it - and I asked quite a lot of quesions about it - because the documnets supplied with the EDK and
    the books ( ProgrammersGuide, ProgrammersReferece and the README file ) are not very clear to me ( I'm a newbie with EM in general .. )
    So far some of the questions got answered and were very halpfull with this long process. BUT, there are some questions that nobody answered yet.
    I'm quite "stuck" with it. I'm talking about the questions in : Re: A question about updating metadata files in plug in
    I have a deadline for this plug in ( which is very close ..) so this the reason I post this new message.
    I will appriciate any help about those questions .
    2. Regarding the above, ( hoping to have an answered soon ..) I'm trying another way to buils this plug in:
    In the README file there is this section( 3.6 : using MPCUI ) . I read the programmersReference ( chapter 8 ) and followed the instructions both in the README file and the ProgrammersReference .
    For a begining, I just wanted to modify a small thing in the example supplied ( Demo Host System ) just to get started with something .
    So i modify the file which contains the label ' Select member ... ' ( i don't remember the name of the file since the project is in my office , and I can't copy/paste ..- I think the the file icontians the name ' ConfirmationTarget .xml - it's one of the pages seen while adding a target ) .
    I i changed it , i build the project ( using FlexBuilder) but did not use ANT as it's says in the README - the eclipse IDE build this file automatically
    ( HostSystem.swf  in bin-debug dir as it says in the README ) . I copied this file to stage_dir/oms/metadata/mpcui .
    i build a new plug in ( i incremented the version of it ) - no errors, everty thing was fine .I also copied this file to the oms server ( it wasn't there before )
    and than run the commad ' emctl register oms ...' as it says in section 3.6 - and o got 'Success' eventually .
    Now, when i opened the EM console , hoping to see tge change i made ( again , it's just a change of the title of the step while adding the target , and adding another menuitem to the 3 item that were alreay there ( CPU, FS, etc ) .
    I believe wad i did is right- i mean changing in the right file and place ( there is no title like like this in any oter source file in the whole project )
    but still, I didn't see any change! it seems execatly as it was befoer the change ..
    Any idea?
    Thanks.

    Regarding your question #2. Please read my response here carefully as it covers a number of different issues.
    1. Ant is not required to build the SWF file in your plug-in. It is an OPTION. Section 8.27 describes the different development options using either Ant or FlexBuilder.
    2. You do NOT need to ever copy a SWF file to any location under the OMS runtime. You need to include it in the stage area and then either build an OPAR or use emctl to incrementally update the deployed plug-in. It has to either be deployed as part of the plug-in deployment or updated incrementally using emctl register oms metadata. Section 8.27.2.6 describes the specific steps to do this incremental update.
    Steps to update the SWF associated with demo_hostsample. These are covered in the README and in chapter 8.
    1. deploy the demo_hostsample plug-in as described in the README
    2. create an instance of the Host Sample target type through manually discovery (Add Targets->Add Non-Host Target Specifying Properties)
    3. using the demo_hostsample.zip project in Flex Builder, modify some part of the code, for example, modify the line containing label="Current Status" to label="My New Label"
    4. rebuild the SWF, to be sure you can to a Clean build of the demo_hostsample project
    5. ensure there is an updated copy of the HostSample.swf under demo_hostsample\mpcui\bin-debug (NOT bin-release, unless you Exported A Release Build)
    6. copy that updated HostSample.swf file to the location on the OMS machine where you unzipped and built the OPAR for the demo_hostsample plug-in
    7. cd to the stage/oms/metadata/mpcui directory and replace the current HostSample.swf with the one you just built (BE SURE ITS THE UPDATED FILE)
    8. execute the command "emctl register oms metadata -sysman_pwd sysman -pluginId oracle.sysman.ohs -service mpcui -file demo_hostsample_uimd_swf.xml (BE SURE TO USE THE CORRECT sysman_pwd)
    At this point you should be able to go to the homepage for the Host Sample target you created and see the changes.

  • Some questions concerning BPC v10

    Hi averybody,
    I am working in a project of BPC v10 and there are some questions i would like to solve. Specifically i want to know if the new version of SAP BPC allow you to insert new records in a hierarchy level. I heard somewhere it was possible by defining percentages to split the record on base members.
    On the other hand, in bpc v7.5 whenever you look for a dimension member using a filter in a evcvw , the dimension presented in order to select a member has no hierarchy. Do you know if it has changed inn bpc v10 or it remains equal?
    Does anybody know something concerning this items? Any help will be much appreciated,
    Thanks in advance,

    Hi,
    -->On the other hand, in bpc v7.5 whenever you look for a dimension member using a filter in a evcvw , the dimension presented in order to select a member has no hierarchy. Do you know if it has changed inn bpc v10 or it remains equal?
    No change in BCP 10. Once you fileter based on property view automatically changed to "List View"
    Regards,
    Raju
    Edited by: VaraPrasadraju Potturi on Feb 24, 2012 1:47 AM

  • Some questions about 1616, 100 and 101

    Hello, I am looking for a phone, and I've reduced to these 3 models, since I want a phone that principally:
    *The battery last much (1 week would be ok)
    *Don't have Internet access
    Ok, but there are some questions, very specific questions in fact, that I haven't resolved, and I was asking me if you coudl help me!
    *I've read that Nokia 1616 has a "memo voice recorder" so you could set a record for the ringtone.
    Although some people says thats not possible....its sure is possible?
    * Can the Nokia 101 record a call? I guess the others can't because no microSD.
    *And last, if its possible in any of these set up automatic change of profiles, based on time.
    I mean just, for example: default tone -> General ---- But when is between 11 AM to 16 PM, switch to Silence.
    I think those are 3 really useful "basic" features, but ironically any or very few "basic phones" incorporate them....
    Also, if you think other model of phone that could do better for my expectatives (at the same range of price) is ok.
    Thank you very much, and great forum!

    Some info? XD

  • Some question about BPS

    Hi Experts,
    I'm a freshman here, konw little about BPS, and want to get some help with some one.
    here's some question:
    1. it seems that we could not use excel view in the planning folders? how can we input some huge row data into table without the "create" buttom but in GUI?
    2.how can i lock data with out the data slices in the planning area? or can we use data slices in some other place?
    3.how to do the fuction 'foreach' in the FOX formula well, i found it would make bad to the system performance.
    thx a lot.
    HERO

    Hi,
    1) Question is not clear
    2) Data slices are created in planning area - these are the standard way of protecting data in BPS cube against changes. For layouts, you can also mark specific columns as comparison columns.
    3) FOREACH is not good performance wise - true. To improve on the performance, try to avoid it - if possible, use a DO loop. If using it, try to have as less characteristics in the loop as possible.
    Also, before posting new threads, please try to search the forums. You will get lot of useful threads for these basic doubts.
    Edited by: Mayank Gupta on Jul 9, 2008

  • Some question about Cisco Prime Infrastructure

    Dear all
    I have some question about using Cisco prime Infrastructure:
    - Can I show how many user access to one Access Point (AP) ?
    - If I can. What is display information of user ? etc Ip address, MAC, username access, name of device (notebook, tablet, phone ..)
    - How many time do Cisco Prime Infrastructure refesh user  informantion .?
    Please help me and send picture about it if you can.
    Thank you so much.

    Hi,
    I don't have the Prime Infrastructure to post you image, but you can simply find all the answers you want on the config guide:
    http://www.cisco.com/en/US/docs/wireless/prime_infrastructure/1.2/configuration/guide/clientmgmt.html#wp1232242
    1- You can surely find how many clients associated to a specific AP.
    - Informaiton of the client usually includes username, SSID, ip address, mac address, RSSI, device vendor...etc. I don't think it contains the device type (ipad or iphone both appear as apple vendor. it does not destinguish between this and that.
    3- The time of the refreshment is configurable. You need to configure the corresponding background task for the poll period. (this is also metnioned in the link above).
    HTH
    Amjad
    Rating useful replies is more useful than saying "Thank you"

  • Some question about georaster?

    Hello,
    I have some question about how to create high efficiency georaster model. I have 3T capacity raster data. It's bands is from 8 bands to 12 bands and the resolution is 0.5 meter. In order to ensure the original information of raster data, I consider not use the SDO_GEOR.mosaic, this means that a import file is a georaster object. I keep the original data capacity, not compression. I use JPEG-B to compress pyramid data.
    Does anyone can tell me my georaster model is OK? or tell me some areas for improvement.
    Thanks who have lool my page.

    i don't have specific performance number on georaster using bigfile tablespaces. "A bigfile tablespace with 32K blocks can contain a 128 terabyte datafile" and should be doable with georaster in considering your data size is just 8 TB. It should have some advantages over small file tablespaces, for example, it would be easiler to manage because it has only one datafile. but note, "Bigfile tablespaces are intended to be used with Automatic Storage Management (ASM) or other logical volume managers that supports striping or RAID, and dynamically extensible logical volumes". "Using bigfile tablespaces on platforms that do not support large file sizes is not recommended and can limit tablespace capacity." please refer to the Oracle Database Administrator's Guide.
    thanks

  • Some questions from a newbie...

    Hello,
    I just switch to the Adobe Design Suite and bought LightRoom too. Since I worked more than 25 years with Corel I have some questions:
    01. Is or will there be facial recognition? (like in "Elements")
    02. When adding photos from a card is there a way to add the coordinates from a GPS log to the photos?
    03. Does noise reduction work with exif values (iso, camera model etc) from the specific photo or is it a "general" reduction?
    04. Is there a place I can download more web/HTML templates?
    05. When adding keywords and other meta data, can they be used in other programs too? (Will they show up in other graphic programs?) Or is it a specific "LightRoom" thing?
    Thanks for any help,
    Theo

    Hello Pete,
    Yes, I do understand that it will take time. But I must focus on Photoshop and Dreamweaver first since these are the programs that I use most of the time on a daily basis. I worked with the demo versions too to get an impression of what I was about to buy.
    I worked with a DW version from Macromedia and used Corel for more than 25 years. Since CorelPaint was crashing all the time and more and more people were complaining, I switched radically to Adobe. The reasons I had, besides the crashing, is that I could start fresh and use it with my children now. They have to use it for school purposes etc. Also I believe that Adobe is leading in the world and makes it more universal for us to work with. I found a lot of stuff on the internet like manuals etc. and will go into that soon. I'm aware of the fact that posting here is best done with problems not covered in help, but of course I tried the find it first myself. I must add that although we speak and read English fairly well, the technical aspect is sometimes harder for us to understand and find in English. But again, since it's used so much over the world we choose the English versions.
    Seeing the helpful answers I got, I'm glad I posted it.
    All the best,
    Theo

  • Beginner: some questions

    Hello all,
    I am just a beginner for EJB, and writing a simple example of EJB. Some questions confuse me.
    1.     about server
    I just use JDK1.3.1 and JSDKEE1.3, is it all right? Do I need another things, for instance, weblogic ( what is this?)?
    2.     about deployment
    I wrote some code( CMP) include: home interface, remote interface, implement class, and primary key. Now , deploy it? Use ��C:\j2sdkee1.3\bin\deploytool�� command, is it?
    I thought every EJB need a XML deployment descriptor, my question is: I write this by myself or use deploytool?
    3.     about datebase
    I notice some example use Cloudscape, is this database? Whether can I use another database, for instance, MS Access? If I can, how to access it in CMP, and what is the ��Database JNDI Name��( if I use MS Access) when I deploy using deploytool?
    4.     about direction
    if I finish coding, then compile, and deploy, now, is it OK? I mean, I should move some file to special direction? (I remember the .class file is placed in special direction when I use servlets. )(suppose: I work in C:\mybean. Every file in it)
    5.     I use JDK1.3.1 and JSDKEE1.3 to write a simple example, do I need anything else in order to achieve EJB?
    Thanks

    1. No you do not need anything other than J2SE 1.3.1 and J2EE SDK 1.3 J2EE SDK 1.3 includes a reference implementation that you can use to do pretty much everything that is J2EE platform standard.
    Products such as WebLogic, WebSphere are comercial implementations of J2EE platform specifications. And you would use them for commercial/production quality applications.
    See http://java.sun.com/j2ee/faq.html Especially the questions about using reference implementation.
    2. You as a developer write the deployment descriptor and the deployment engineer customizes it if required at deployment time.
    3. You can use JDBC-ODB driver to work with Microsoft Access databse.
    See http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html#996747
    4. No. The files go to the right place at deploy time.
    5. No. If you have J2SE 1.3.1 and J2EE SDK 1.3, you arealready on your way to achieving EJBs.

Maybe you are looking for