About using OSB JMX Monitoring API

hi Experts,
My customer is using OSB11.1.1.7, they are trying to use JMX Monitoring API to get the statistic info, but have the following issues:
1. For the non-soap service, the serviceDomainMbean.getBusinessServiceStatistics method always return error when typeFlag was set with ResourceType.WEBSERVICE_OPERATION.value(), reason is there is no ws operation for this service, customer wants to know how to know if a service has no ws operation ,therefore they can avoid to get ws-operation statistic info for those kind of services.
2. Is there a way to get statistic info for the current aggregation interval? the api seems works with period from last reset.
3. Further more, How to get statistic info for special period, for example, customer want to query statistic info from 05/01 to 05/03, or from 05/03 12:00 to 05/03 13:00
Thanks for the help.
Best regards

Davinder Singh wrote:
Hi ,
I have an application deployed on weblogic server 8.1 . This has some MBeans exposed
for management purposes. This needs to be accessed from another web application
running on another weblogic instance on different machine. For this the managed
application has a Connector server and the management application is trying to
connect it through Connector client.
At the managed application side , i am getting NoSuchMethodError: javax.management.MBeanServer.getClassLoaderRepository()
I am not using weblogic implementation of JMX (MBean Server).
My guess about the error :the weblogic implements JMX version 1.0 and i am using
JMX remoting API (RI from Sun) which requires JMX 1.2
Is there a way i can make weblogic use JMX 1.2 ?I dont think there is a way to do this. But I might be wrong.
>
Thanx,
Davinder

Similar Messages

  • The JMX Monitoring APIs for OSB

    hi
    I know Using the JMX Monitoring APIs can monitor Oracle Service Bus at run time to know how many messages in a particular service have processed successfully and how many have failed. but those are Statistical Information . i want to monitor the details when a particular service is invoked,such as the caller's IP address, the call is successful or not, the error message and error code.
    帖子经 David编辑过

    There are no public API that are present except for monitoring and Deployment.
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15867/app_apis.htm#CHDHAJGD
    The runtime information for OSB artifacts and their instances are not exposed though API.This use-case can be accomplished by using reporting action. http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15867/reporting_console.htm#CACJFDGF
    Getting IP address of cleints invoking proxy on OSB is little tricky, but some transports do support. eg HTTP. Can you describe in brief actual business case so that we can come-up with some solution. Is this monitoring, part of Business logic or Administrator requirement (Technical) etc.
    Thanks
    Manoj

  • Using OSB for Public API (REST)

    Hi there,
    Is it a good practice to use Oracle Service Bus to expose a PUBLIC REST API?
    The idea is to have a separeted OSB instance which will be in the WEB so that other partners and applications (Native Mobile, for instance) can access some of our services. The application layer will have many different applications, like SAP, JEE systems, Cobol and others. But the public API will be design in a more RESTful fashion.
    What about security?
    What about performance? (Parsing JMS, XML and others into JSON will probably create extra load into the OSB).
    What are be the advantages of using OSB instead of a more traditional Service Layer?
    P.S.: We are being careful with the design of our API, sometimes the underlying system doesn't help, so some transformation has to happen (more load!) in order to make the API elegant and meaningful.
    Cheers

    Personally, I'd prefer Collections as they are nice to work with. Their only annoying issue is certainly the constant casting as soon as you retrieve Objects from them.
    I do not consider the documentation of what those Collection include too big a problem. Just include a line for each Collection parameter stating "Set of Strings" or the like. I wouldn't even check the type through instanceof, I'd just cast. If a ClassCastException is thrown, I think that's the proper thing to do.
    As you might have noticed, there is a proposal of "Generics" for Java, which would adopt something like those template classes known in C++. There is even a beta implementation available, so you can go ahead and code your Set<String>. Time will tell if this proposal finds its way into the official Java standard, the drawback being a more complex syntax. If you want to know more about it, check out those links:
    http://forum.java.sun.com/forum.jsp?forum=316
    http://www.jcp.org/jsr/detail/14.jsp
    http://developer.java.sun.com/developer/earlyAccess/adding_generics

  • Questions about Using APIs to import Bills and Routings - AND COSTS

    Hi Forum - the following is a back-and-forth with a customer about use of APIs - Inventory developer suggested I post the question here. Note the 2nd question - and thanks for any assistance.
    SR# 7332152.994 ALCOA
    Instructions given to ct:
    Q1 - Can I load the bill header and components at the same time?
    You should be able to load the bill header and components at the same time. Customer loads bill and component data inserting enough "other" data for each so that the bill sequence id will be derived. For the component record, the assembly item, org and alternate_bom_designator values will be used by BMCOIN to derive the bill_sequence_id.
    Example:
    INSERT INTO BOM_BILL_OF_MTLS_INTERFACE
    ORGANIZATION_CODE,
    ITEM_NUMBER,
    ALTERNATE_BOM_DESIGNATOR,
    PROCESS_FLAG,
    TRANSACTION_TYPE
    VALUES
    'M1',
    '&PARENT_ITEM',
    NULL,
    '1',
    'CREATE'
    INSERT INTO BOM_INVENTORY_COMPS_INTERFACE b
    ORGANIZATION_CODE,
    ASSEMBLY_ITEM_NUMBER,
    ALTERNATE_BOM_DESIGNATOR,
    COMPONENT_ITEM_NUMBER,
    OPERATION_SEQ_NUM,
    COMPONENT_QUANTITY,
    EFFECTIVITY_DATE,
    PROCESS_FLAG,
    TRANSACTION_TYPE
    VALUES
    'M1',
    '&PARENT_ITEM',
    NULL,
    '&COMPONENT_ITEM',
    1,
    1,
    trunc(SYSDATE),
    1,
    'CREATE'
    Hi Aruna, some additional information that may be useful:
    We can load/create the bill header and components at the same time using the scripts given (as above)
    Required Data for Creating a Routing : assembly_item_id,
    organization_id, routing_type, transaction_type, process_flag
    And following scripts can be used to load routing header and operations equences.
    INSERT INTO BOM_OP_ROUTINGS_INTERFACE
    (assembly_item_id,
    organization_id,
    routing_type,
    transaction_type,
    process_flag)
    VALUES (2255800,207,1,'Create',1);
    INSERT INTO BOM_OP_SEQUENCES_INTERFACE
    (assembly_item_id,
    organization_id,
    operation_seq_num,
    Department_code,
    effectivity_date,
    transaction_type,
    process_flag,
    operation_description)
    VALUES
    (2255800,207,100,'ASSEMBLY',
    to_date('24-FEB-2009'),'Create',1,
    'Paint Wagon');
    Q2: One more question, can an expense item can be added to the bill and can contribute the cost.
    As there is a confusion of what I asked, below I am rephrasing my question
    By an Expense Inventory Item, I mean an item that is just tracked for quantity only i.e.,Checking the attributes - Inventory Item, Stockable, Transactable under Inventory Tab and not checking the attribute - 'Inventory Asset Value'.
    My question here is, For these Expense Inventory Items, What is the difference between having the 'Costing enabled' attribute turned ON as opposed to having it UNCHECKED
    *Q3 I have tried to load the items and I could only load 1st level of components but could not load second level of bom at the same time.
    While inserting I have inserted plan level too.
    Please let me know if I have to do anything different to load second level.*
    Thanks
    James

    You may want to look at using the more4apps bill of materials wizard, an excel based solution for uploading assemblies and their components.

  • After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please?

    After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please? I am currently using iOs 7.0 on this iPad and I never had a lick of trouble until aetr this update. Anything would help. Thanks.

    I'm adding screen shots taken from this afternoon showing connection that varied from non-existent to 1X.

  • Question about using iMac 2011 as a monitor

    hi ,, i have imac 2011 21'5
    can i use as a monitor to play xbox 360 on it using mini displayport to hdmi cable ??
    if no then is there way else i can play xbox on my imac screen

    Frank:
    Thanks so much for responding! One question about your post. When you say that the Mac Mini cannot boot in OS 9, does that mean that if I wanted it to hold Filemaker Pro 4 files (which runs on OS 9), that it cannot do this? We would not be running Filemaker on the Mini, just storing the files. We would run Filemaker off of our desktop computers. Sorry, I don't know a ton about computers, so sometimes I need clarification about the terms that people use.-Rob

  • Siebel JMX monitoring using JRuby

    Hi,
    I am trying to use JRuby to monitor the performance of a Siebel adapter using JRuby. Whist I am able to read the mbean data from the server I am unable to successfully submit the command "reset = conn.invoke(name, 'Reset', '', '' )" The error message I receive is
    D:\Scripts\JRuby\jmx.rb:17: for method RemoteMBeanServerConnection.invoke expected [class javax.management.ObjectName, class java.lang.String, class [Ljava.lang.Object;, class [Ljava.lang.String;]; got: [javax.management.ObjectName,java.lang.String,java.lang.String,java.lang.String]; error: argument type mismatch (TypeError)
         from C:/Program Files/jruby-1.4.0/lib/ruby/site_ruby/shared/builtin/java/java.util.rb:21:in `call'
         from C:/Program Files/jruby-1.4.0/lib/ruby/site_ruby/shared/builtin/java/java.util.rb:21:in `each'
         from D:\Scripts\JRuby\jmx.rb:15
    The complete code is listed below.
    #!/usr/bin/env jruby
    include Java
    include_class 'javax.management.ObjectName'
    include_class 'javax.management.remote.JMXConnectorFactory'
    include_class 'javax.management.remote.JMXServiceURL'
    jmxurl = 'service:jmx:rmi:///jndi/rmi://localhost.au:8687/jmxrmi'
    username, password = 'admin', 'sun12345'
    svcurl = JMXServiceURL.new(jmxurl)
    cred = java.lang.String[2].new
    cred[0], cred[1] = username, password
    env = {'jmx.remote.credentials' => cred}
    conn = JMXConnectorFactory.connect(svcurl, env).getMBeanServerConnection
    names = conn.query_names(ObjectName.new( 'IDM:serverName=localhost,resourceAdapterType=CCB Siebel CRM Position,resourceAdapterName=CCB Siebel CRM Position'), nil)
    names.each do |name|
        puts "OperationCount: #{conn.get_attribute(name, 'Account_Get_OperationCount')} " + "OperationMaxTime: #{conn.get_attribute(name, 'Account_Get_OperationMaxTime')}"
        reset = conn.invoke(name, 'Reset', '', '' )
    end

    Hi,
    Does anyone have any clues.
    Thanks

  • License for using JMX Remote API  Reference Implementation

    Is JMX Remote API Reference Implementation open source one?
    Can we use JMX Remote API Reference Implementation with commercial products?

    Hi,
    I am not a lawyer.
    If you're referring to the JMX RI binary downloads available from here:
    http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp
    then please click on the download button and then review the license agreement.
    You will see that this is not the GPL license.
    As such these downloads are not "open source".
    However the JMX API is also part of the OpenJDK project - and the OpenJDK project
    itself is open source. The OpenJDK project has a NetBeans IDE JMX project that will
    let you easily work with the JMX sources.
    See http://openjdk.java.net/groups/jmx/ for more details.
    You can review the OpenJDK license agreement and download the OpenJDK sources
    from http://openjdk.java.net/
    The OpenDMK Project contains an open source implementation of the JMXMP
    connector for the JMX API - which is the optional JMX connector defined in the
    JMX Remote API 1.0 specification. The JMXMP connector is not part of the OpenJDK
    project, but is open sourced by the OpenDMK project.
    You can review the OpenDMK license agreement and download the sources and
    binaries of the OpenDMK project from here:
    http://opendmk.dev.java.net/
    For an exact description of what you can or can't do with any of these various sources
    and binaries, please read the license agreements that come with each of them.
    I hope this helps,
    -- daniel
    http://blogs.sun.com/jmxetc

  • Limiting JMX Monitor Executor Pool size

    Hi all,
    does anybody know how to limit (or in general, set) the size of the Scheduler/Executor Pool in JMX for Monitors?
    By default it seems that 10 threads are created, named [JMX Monitor Executor Pool [Thread-n]]. They get created when I create the first Monitoring MBean, in my case this was a simple GaugeMonitor.
    I don't have a problem with the 10 threads, but its just that our app already has enough threads as it is, plus the granularity period we will use is fairly big (minutes) and we only have a few Monitor beans, so we won't have high load on them.
    Any help appreciated.
    Cheers, Mark

    Mark,
    You can set the system property jmx.x.monitor.maximum.pool.size to control this, either on the command line with e.g. -Djmx.x.monitor.maximum.pool.size=3 or by calling System.setProperty("jmx.x.monitor.maximum.pool.size", "3"). The value of this property is consulted the first time the class javax.management.monitor.Monitor is loaded (typically when you create your first monitor), and not thereafter, so you must be sure to set it beforehand.
    This property is non-standard and will not necessarily work with other implementations of the JMX API, but it does work with the implementation that is in the JDK platform, starting with JDK 6. (Before JDK 6, every monitor had its own thread, so if you are seeing a limit of 10 threads then you are using JDK 6.)
    From my reading of the code, it does look as if more threads will be created than strictly necessary. For example, if you only have one monitor then you don't need more than one thread, but if the monitor's granularity period is less than 60 seconds you will end up with 60/period threads, up to the maximum (default 10). For example 4 threads if the period is 15 seconds. I think we should probably fix that. (The core pool size should probably be 1 rather than the same as the max pool size.)
    Regards,
    �amonn McManus -- JMX Spec Lead -- [http://weblogs.java.net/blog/emcmanus]

  • Writing a jmx monitor for a message driven bean

    I've been reading about using jmx to monitor some jms resources I have deployed to my
    WL server. This monitor would monitor "some" MBean to watch for some Stuck Threads which
    cause a disconnect to the jms queue to which I listen.
    The problem is I'm not sure which, I'm not exactly sure which MBean I need to monitor. My
    JMS Listener is an MDB which listens to a queue on a remote weblogic server. What happens is
    something on the remote end causes a connection reset. About 10 mins later, I get a stack trace
    dump and after that happens I'm no longer able to pull messages off my jms queue. I see logged
    events where it says I'm successfully reconnected to my queue, but no amount of wishing will
    let the MDB pull a message off the queue.
    When the monitor detects a Stuck Thread, I'd like to force an application restart/redeployment, whichever
    will accomplish a reconnection to the queue to which I'm listening. The other day, I went in through
    the console, did a Lock/Edit and simply updated the already deployed application. Monitoring the log
    file, I saw the mdb successfully reastablish connection to my remote end.
    However, with 600+ MBeans, I'm kinda stuck on where I should start! Since I see the
    stack trace in the AdminServer.log file, I'm thinking I should monitor some LoggingMBean.
    But, it is JMS related, so there exists some confusion on my part.
    If anyone with JMX experience could point me in the right direction, I'd appreciate
    it. I'm just learning jmx, so pls be patient.
    Thanks,
    John

    You have a couple of options here. You could monitor the WorkManagerRuntimeMBean's StuckThreadCount using a JMX Counter monitor, and trigger the action when that goes above 0.
    You could also use WLDF to configure a Log watch to look for the Stuck thread log message, or use a Collected Metrics watch on the WM attribute, and assign it a JMX Notification. You could then write a JMX Notification listener to capture this event and perform the necessary corrective actions.

  • Using iMac as Monitor

    How do I use the 2011 iMac as a monitor for a MBP? The 2011 iMac does not have a mini display port. Alternatively, how would I connect my LED Cinema Display to the iMac as a second monitor? The monitor has the mini DVI cable built right into the monitor (along with the power and USB cables).

    A brand new customized 27". It can be used as a monitor, but only with a product that also has a Thunderbolt port. It no longer has the MiniDisplay port and although the MiniDisplay cable fits it is not completely compatible (that I expected—I was actually surprised that it was compatible in any way). They didn't have MiniDisplay to MiniDisplay cables (that is when the sales person went and asked for help and the Apple Genius stepped in). I was so tired with it at that point that I did not ask how they do it at the store—actually, I have not seen an iMac hooked up to anything else through Thunderbolt. The sales person mentioned that there is only the one cable available (Thunderbolt to Thunderbolt) and a new hard drive.
    I'm hoping I'm not stuck with some cutting edge technology that won' take off, and
    I'm a bit mystified that three people (the business account representative, today's sales person and manager) were not trained/up-to-date about this.

  • Don't setup an XServe with a DVI monitor if you intend to use a VGA monitor

    Hi Forum Folks.
    A bit of a "gotcha" to warn others about, with XServes, and VGA vs DVI monitors.
    We Recently re-setup (erase + install a fresh OS) on a 2008 XServe Xeon, with a DVI (Digital) monitor connected. All worked fine, and we went to move the server into the production environment.
    However, when we moved + plugged the XServe into it's new home (a rack), it would not boot (flashing question mark).
    Moving the Xserve out of the rack, and back to it's work-bench setup, made it work again.
    We traced the problem to the monitor we used... If we hooked up a digital (DVI) monitor, the XServe worked fine (with the mini DVI to DVI connector). If we hooked up a VGA monitor (with a mini DVI to VGA connector) that's when the XServe wouldn't boot. We tried a variety of common techniques to solve the problem, including resetting various settings, re-installing Mac OS X 10.5.6 Server over the top etc.
    The solution:
    (Although I'm sure there are simpler solutions):
    We setup the server again (from scratch) using the VGA monitor combination from the very start of the setup, and all worked fine (on VGA or DVI monitors). The server is happily in production now, with it's VGA output.
    So the lesson here: Always set up your XServe using a VGA-based monitor in the first instance.
    Hope this helps someone else.
    Cheers,
    Derek

    So the lesson here: Always set up your XServe using a VGA-based monitor in the first instance.
    ... or don't use a monitor at all
    I don't think I've ever used a monitor when setting up a server - maybe used a KVM if I've re-installed or upgraded the OS, but for the main part every install I do is run remotely.
    Still it's good to know, especially since it defies logic.

  • Needs help.....Please about using different classes

    I don't know how to use differenet classes.
    Please tell me how to write class to suit Start. This stuff me up. Please .... help me
    <<My program>>
    //Start
    public class Start
    {  private Artist[] Artists;
    private Record[] records;
    private Person[] Manager;
    private TextMenu makeMenu = new TextMenu();
    public static void main(String[] args)
         Start studio = new Start();
    studio.menu();
    public Start()
    {  //Person.Manager(ManagerName,HouseNumber,StreetNumber,PhoneNumber)
         Manager = new Person[1];
         Manager[0] = new Person("Yangfan",88,"Young ST",11118888);
         //Artist(GroupID,ArtistName,HouseNumber,StreetNumber,PhoneNumber)
         Artists = new Artist[5];
    Artists[0] = new Artist(1,"Backstreet Boys",58,"Music ST",99998888);
    Artists[1] = new Artist(2,"Santana",68,"Music ST",99998899);
    Artists[2] = new Artist(3,"Macy Gray",78,"Music ST",55558888);
    Artists[3] = new Artist(4,"Ricky Martin",88,"Music AVE",77778888);
    Artists[4] = new Artist(5,"Did Rock",55,"Music Road",66667777);
    //Record(RecordingID,RecordName,Artist,StartTime,FinishTime,RecordingDate,GuestArtist1,GuestArtist2)
    records = new Record[6];
    records[0] = new Record(1,"I want it that way",Artists[0],11,12,"05/08/2001",Artists[1],Artists[3]);
    records[1] = new Record(2,"Smooth",Artists[1],11,12,"05/08/2001",Artists[1],"");
    records[2] = new Record(3,"Do something",Artists[2],11,"05/08/2001",Artists[3],"");
    records[3] = new Record(4,"Livin La Vida Loca",Artists[3],11,12,"05/08/2001",Artists[1],Artists[3]);
    records[4] = new Record(5,"Bawitdaba",Artists[4],11,13,"05/08/2001",Artists[1],"");
    records[5] = new Record(6,"The one",Artists[0],11,14,"05/08/2001",Artists[1],"");
    public void menu()
    {  String[] choices = {">>>List Manager Details",">>>List All Artist Names",">>>List An Artist Telephone-Number",">>>Show Details For One Recording",">>>Add A New Recording",">>>List The Recording Costs For All Artists",">>>List Artist's Reocording",">>>Exit Program"};
    while (true)
    {  switch (makeMenu.getChoice(choices))
    {  case 1: showAllArtists();
    break;
    case 2: showAllRecords();
    break;
    case 3: System.exit(0);
    break;
    case 4: System.exit(0);
    break;
    case 5: System.exit(0);
    break;
    case 6: System.exit(0);
    break;
    case 7: System.exit(0);
    break;
    case 8: System.exit(0);
    break;
    default:
    public void showAllArtists()
    {  int numArtists = Artists.length;
    for(int i = 0; i < numArtists; i++)
    {  Artists[i].displayArtistDetails();
    public void showAllRecords()
    {  for (int i = 0; i < records.length; i++)
    {  System.out.println();
    records.printRecordDetails();
    <<Assignment>>
    Due - midnight, Wednesday August 22nd
    This assignment will test your knowledge of Java programming using classes, encapsulation and javadoc.
    The base requirements
    Write a complete Java class to manage a Digital Recording Studio. The studio wants to keep a list of all Artists that use the studio and also wishes to keep track of all Recordings that have been made. An important function of the program is to calculate the time spent making a recording and charge the Artist for the time used.
    You must create at least the following classes, Start, Studio, Person, Artist, Recording, Address. You may create other classes if needed as well
    Start will contain main(), create one instance of a Studio and execute a Menu of commands to test your code. Studio should contain a studio name, an array of Artist and an array of Recording plus the studio manager (a Person). Each Artist should contain the name of the group and an Address. Each Person will have a name and a home address. Each recording will have a Title (usually song title), an Artist (only one), and a list of guestArtist (they are Artist�s but will not receive royalties) the number of the CD the recording is stored on (numbers are numerical and recordings are saved on CD-R), plus the recording start and finish times for the recording session (suggest you use Java Date class � refer to the API). An Address will contain, house number (integers only), a street name and a telephone number. There is no need to store city and country.
    To enter a set of data for testing your program � main() should call a method in the Start class that will fill in a set of values by creating objects and filling in values by calling methods in each class. This is the ONLY method allowed to be longer than 1 page long � normally we would read the data from a file but there are no O-O principles that can be learnt with simply filling in data values. It is suggested to create say at least 4 Artist�s and 6 Recordings (at least one with 1 guest Artist and one with 2 guestArtist�s)
    A menu for testing your program should be provided (it is suggested to put the Menu into a separate class as you need at least 3 menus). While other commands are possible, only the following ones will receive marks.
    Menu commands needed are
    List the Managers name, address and telephone number
    List all Artist Names
    List an Artist telephone number (a sub menu showing valid Artist�s is required)
    Show all details for one Recording ( sub menu of valid Recordings will be needed and remember there can be more than one guestArtist)
    Add a new Recording, user will need to be prompted for all details.
    List the recording costs for all Artists � show each Artist on a separate line with their name and total amount, charge for using the studio is $1000 per hour or part thereof, example for a 1 hour and 10 minute recording the Artist will be billed for 2 hours.
    List all the Recording�s one Artist has worked on (sub menu of Artists needed), the list should show whether they were the Artist or a guestArtist
    Exit program
    Use fixed sizes for arrays, suggest 20 is suitable for all arrays. Java can handle dynamic data structures (where the number of elements can grow or shrink), but that is beyond a first assignment.
    Do NOT make ANY methods static - this defeats the Object Oriented approach and will result in ZERO marks for the entire assignment.
    Data MUST be encapsulated, this means that all the data relating to an object are to be stored INSIDE an object. None of the data detail is to be globally available within your program - hence do not store Artist names in either Studio or Recordings � just store a reference instead. Do NOT create ID numbers for Artists, you should use References instead � for many students this will be the hardest part as you have to use Objects, not program in a C style to solve the problem. Note that if there are any non-private data in classes then zero will given for marks for encapsulation.
    Good programming style is expected (see web page or lecture notes). In particular, you must use javadoc to generate a set of html pages for your classes. Make sure you use the special javadoc style comments in your source code. Marks will be granted for both using javadoc and also for including sensible javadoc comments on each class and each public method.
    What to Hand In
    Read the turnin page, basically the .java files, a readme.txt to tell the marker which file the program starts from plus the javadoc (html) files. Do NOT send .class files (if you do send these we will delete them and recompile your program), do NOT compress with gtar, tar, zip or use any other tool on your files. Turnin automatically compresses all your files into a single archive for us to mark.
    The simplest way to turnin all your files is to place all files in one directory then just use the *.* wildcard to turn in all files within that one directory.
    You must turnin all files that are not part of Java 1.3. In particular, you are allowed (actually encouraged) to use EasyIn or SavitchIn but should include the one you use in the files you submit. It is STRONGLY suggested that you copy all the files into another directory, test it works there by compiling and executing then turnin files from that directory. A common problem is students adding comments at the last minute then not testing if it still compiles. The assignment will be marked as submitted � no asking later for leniency because you added comments at the last minute and failed to check if it still worked.
    If the tutors are unable to compile your submission, they will mark the source code but you will lose all the execution marks. Sorry, but it is your responsibility to test then hand in all files.
    Comments
    For CS807 students, this program should be fairly easy if it was to be programmed in C (you would use several struct). The real art here is to change over to programming objects. Data is contained in an object and is not global. This idea is essential to using Java effectively and is termed encapsulation. Instead of using function(data), you use objectName.method( ). Effectively you switch the data and functions around, the data has a method (function) attached to it, not the other way around as in C (where you have a function and send data to it).
    While there will be some marks for execution, the majority of the marks will be given for how well you write your code (including comments and documentation) and for how well you used O-O principles. Programs written in a C style with most of the code in one class or using static will receive ZERO marks regardless of how well they work.
    You are responsible for checking your turnin by reading the messages turnin responds with. Failure to read these messages will not be an acceptable excuse for submitting an incorrect assignment. About 2% of assignments sent to turnin are unreadable (usually empty) and obtain 0.
    Late submissions
    Late submissions will only be accepted with valid reasons for being late. All requests for assignment extensions must be made via email to the lecturer. Replies for acceptance or refusal will made by email. Instant replies are unrealistic (there is usually a flood of queries into my mail box around assignment due dates) and the best advice is to ask at least 4 days in advance so that you will have a reasonable chance of getting a timely reply and allow yourself enough time to submit something on time if the extension is not granted.
    ALL late submissions will be marked LAST and will NOT be sent to tutors for marking until all other assignments have been marked. As an example, if you submit late and your assignment is not yet marked by the time assignment 2 is due then it will be pushed to the end of the marking pile as the assignments that were submitted on time for assignment 2 will take priority.
    If you make a second submission after the submission date, only the first submission will be marked. We will not mark assignments twice! You can update your submission BEFORE the submission date if you need to - this will just overwrite the first submission. The latest time for a late submission is 5pm on the Wednesday after the due date. This is because, either a solution will be handed out at that lecture or details of the assignment will be discussed at the lecture. I cannot accept any assignment submissions after that time for any reason at all including medical or other valid reasons. For those who are given permission to be later than the maximum submission time � a different assignment will be handed out. Remember, if you decide to submit late you are VERY UNLIKELY to receive feedback on your assignments during semester.
    Assignments will be removed from turnin and archived elsewhere then forwarded to tutors for marking on the morning after the assignment is due. A different tutor will mark each of your assignments � do not expect the tutor you see at the tutorials to be your marker.
    Marks will be returned via email to your computer science yallara account � ideally within 2 weeks. I will send marks out when I receive them so do not send email asking where your marks are just because a friend has theirs. If you want your email forwarded to an external account, then place a valid .forward file into your yallara account. The Help Desk on level 10 can assist you in setting this up if you do not know how to do it.

    I have seen other people who have blatantly asked for
    other people to do their homework for them, but you
    are the first person I've seen to actually cut and
    paste the entire assignment as it was handed to you.
    Amazing.
    Well, unlike some of the people you're talking about, it seems like zyangfan did at least take a stab at it himself, and does have a question that is somewhat more sepcific that "please do this homework for me."
    Zyangfan,
    marendoj is right, though. Posting the entire assignment is kind of tacky. If you want to post some of it to show us what you're trying to do, please trim it down to the essential points. We don't need to see all the instructor's policies and such.
    Anyway, let me see if I understand what you're asking. You said that you know how to write the code, but only by putting it all in one class, is that right? What part about using separate classes do you not understand? Do you not know how to make code in one class aware that the other class exists? Do you not know how code in class A can call a method in class B?
    Please be a bit more specifice about what you don't understand. And at least try using multiple classes, then when you can't figure out why something doesn't work, explain what you did, and what you think should have happened, and what did happen instead.
    To get you started on the basics (and this should have been covered in your course), you write the code for two classes just like for one class. That is, for class A, you create a file A.java and compile it to A.class. For class B, you create a file B.java and compile it to B.class. Given how rudimentary you question is, we'll skip packages for now. Just put all your class files in the same directory, and don't declare packages in the .java files.
    To call a method in class B from code that's in class A, you'll need an object of class B. You instantiate a B, and then call its methods.
    public class B {
      int count;
      public B() { // constructor
      public void increment() {
        count++;
    public class A {
      public static void main(String args[]) {
        B b = new B();
        b.increment();
    }Is this what you were asking?

  • How to use a secondary monitor in Portrait mode

    Finally discovered how to do this.  Here is how to use a second monitor in portrait mode:
    Open System Preferences from your iMac dock.
    Click Displays - Click Arrangement - Click Gather Windows - the secondary monitor dialog box opens.
    Click Rotation - Click 90 degrees rotation for PORTRAIT MODE.
    Click CONFIRM on the secondary monitor to keep Portrait mode.
    Select the desired resolution. I chose 1200 x 1920.
    You'll see a dialog box that says, "About to change the display mode."
    Click OKAY.
    Click Confirm. (If it appears. For some resolutions, I did not have to click confirm, most likely because the monitor supports those resolutions.) 
    Then resize the windows of the software you're using.
    Done!

    I too got the same. Both monitors went portrait. Then I unchecked the 'Mirror Display' option in the Arrangment tab of iMac display and voila. Got what I wanted.

  • HP Laptop+Dock - Need to use 2 external Monitors

    Setup:  HP HDX 18t with HP xb4 docking station.
    Issue:  with the computer docked and the lid closed, how can I get dual external monitors to function in extended mode?  The problem lies in the cable that attaches the dock is too close to the laptop's vga port so I cant use both, the vga port on the laptop + the one on the dock.  I tried a StarTech USB2DVI but it wasnt stable, and died after only 2 days.  I am willing to replace the docking stations if need be for one that supports dual monitors directly, but hp consumer products doesnt have one.  How about using HDMI to DVI cable/adapter plus the video out on the dock?  What would happen to the external speaker jacks if I did this?  Anyone have a solution that has been verified?  HELP!

    I think you might need a VGA  adapter that splits the connections into two. Not sure where they can be bought, however.
    *******DISCLAIMER********
    I am not an employee of BBY in any shape or form. All information presented in my replies or postings is my own opinion. It is up to you , the end user to determine the ultimate validity of any information presented on these forums.

Maybe you are looking for