Several mappings class for the AIP

Hello people,

A similar question was asked on the forum here, but I wanted to just make sure that there is no exception or this specific configuration. Basically, we have the AIP modules in our ASAs and we want to move traffic to their investigation. We already have class-control charts (the ASA standard control not IPS). And if I understand that traffic will be matched only by a single class-map and handled accordingly.

Here is the config for a better understanding

Current config

class-map inspection_default

match default-inspection-traffic

!

!

Policy-map global_policy

class inspection_default

inspect the ftp

inspect h323 h225

inspect the h323 ras

Additional configuration

USERS-IPS-ACL scopes allowed host x.x.x.x ip access list all

USERS-IPS-ACL scope permitted ip access list any host x.x.x.x

!

!

USERS-IPS-CLASS of the class-map

corresponds to the access USERS-IPS-ACL list

!

!

IPS-POLICY policy-map

USERS-IPS-class

fail-closed inline SENSOR USERS IPS sensor

Thus, for example, say that a user sets the FTP connection to a server. Based on control policy overall (nothing to do with IPS), traffic will be inspected and not forwarded to the AIP module. Can we confirm this or shed some light on this topic please?

Thank you very much

Martin

Hi Martin,

As actions are different on the cards of two classes, it will be sent to IPS.

If action on the map of second class had been the "inspect ftp", then only the first "ftp inspect" would have no effect. But here, the actions are different. We inspect and other is sending traffic to the AIP module.

HTH

SPSP

Tags: Cisco Security

Similar Questions

  • VPN access query remote ASA - several group policies for the unique connection profile

    Hi all

    Two quick questions here that I need to help.

    1. in an ASA 5525, is it possible to have several group policies for a single connection profile?

    Scenario: A customer is running F5 Firepass to their VPN solution and this device is used by them to have multiple strategies group by the connection profile. We plan to migrate them to ASA (5525) and I don't know if the ASA can support that.

    2. in an ASA-5525 for Clientless Remote access VPN, can pass us the page to connect to an external server? For example, if I have a connection with a URL profile setup: "'https://wyz.vpn.com/ ';" for the LDAP/Radius Authentication, but for https://wyz.vpn.com/data and https://wyz.vpn.com/test I want to HTTP based authentication form and this page needs to be sent to an external server that is to say ASA step will manage this page, but rather the first page for this is served by the external server.

    Scenario: One of our clients is running F5 Firepass to their VPN solution. On the F5 they have pages of configuration such as the https://wyz.vpn.com/ that the F5 shows to the user when they connect via VPN without client; However if the user types https://wyz.vpn.com/data in the browser, the traffic comes to the F5, but F5 redirects this traffic to an external server (with an external url as well). Then it's this external server that transfers the first page of the user requesting authentication for HTTP form based authentication information.

    Thanks in advance to all!

    Hello

    You can have fallback to LOCAL only primary method.

    http://www.Cisco.com/c/en/us/TD/docs/security/ASA/asa90/configuration/gu...

    HTH

    Averroès.

  • JAVAH error: class for the "com.ntv.ndkjni" file is not found

    Hello

    My project directory: C:\ndkJNI

    My java file directory: C:\ndkJNI\src\com\ntv\ndkjni

    My package name: com.ntv.ndkjni


    (1) I entered guest at C:\ndkJNI\src\com\ntv\ndkjni

    2) Javac test.java and create test.class successfully. test. Class is located in the C:\ndkJNI\src\com\ntv\ndkjni folder.

    (3) later, I used Javah, try below javah variously

    (a) test javah - classpath C:\ndkJNI\src\com\ntv\ndkjni

    (b) javah - classpath C:\ndkJNI\src\com\ntv\ndkjni.test

    (x) javah - classpath C:\ndkJNI\src\com\ntv\ndkjni com.ntv.ndkjni. test

    (y) javah -classpath C:\ndkJNI\src\com\ntv\ndkjni com.ntv.ndkjni test

    (c) javah - classpath C:\ndkJNI\src\com\ntv\ndkjni com.ntv.ndkjni. test

    (d) javah com.ntv.ndkjni. test

    (e) javah com.ntv.ndkjni to test

    -> f) test javah com.ntv.ndkjni .class (error: exception thrown from an improper argument of thread exception)


    I'm looking for 5 days. I couldn't find a solution. I try another computer. I tried ubuntu and win8, the error always with me.

    It's interesting when I Remove the package com.ntv.ndkjni; of java file, then recreate the class with javac file then javah can create the header file successfully.


    Please help me.


    *****************************test.java**************************

    package com.ntv.ndkjni;

    public class test {}

    public static

    {

    System.loadLibrary ('hello');

    }

    public static native int toplama (int sayi1, int sayi2);

    }

    ******************************************************************

    aaa.PNG

    JAVAH then takes a full qualified class name in your case, it would be

    com NTV.ndkjni.test

    As with all things related to java, the class path is used to resolve the class based on the fully qualified name.  The name solves the DEPARTURE on the path, and then try to find the class below the classpath to resolve the name.

    Because of this, your class path should be

    C:\ndkJNI\src



  • Help the passage of the document class for the class of database!

    Hello comrades!

    I thought that I ve solved that problem, but I was wrong

    I created a movieclip with a star. Then I create a document class and I named it like Main.as.

    In this document class that I wrote:

    package 
    {
         import flash.display.*;
    
         public class Main extends MovieClip
         {
              var st:star=new star();
    
              public function Main()
              {
                   stage.addChild(st);
                   st.x=20;
                   st.y=30;
              }
         }
    }
    

    If I run this code, I will get a star on the stage in the x direction and y positions.

    Now, I want to drag the star with the mouse and drop it anywhere on the stage. After the fall, the star must return to its original position.

    To achieve this, I create a new AS3.0 class. I named it DragDrop.as, and I linked to the movieclip as the baseclass.

    Inside this category I wrote:

    package 
    {
         import flash.display.*;
         import flash.events.MouseEvent;
    
         public class DragDrop extends MovieClip
         {
              var x_origin:Number;
                    var y_origin:Number;
                    public function DragDrop()
              {
                            x_origin=this.x;
                            y_origin=this.y;
                            trace(x_origin);
                            trace(y_origin);
                   this.addEventListener(MouseEvent.MOUSE_DOWN,drag);
              }
              function drag(evt:MouseEvent):void
                    {
                   this.startDrag();
              }
         }
    }
    

    I m not posting the code here, but you can easily see that the use of variable I m x_origin and y_origin to keep the original position of the clip.

    I'll use them to bring star back in its original position.

    The problem is that instead of being respectively 20 and 30, retracing their I see that they are both ZERO.

    So, when I drop the star, instead of going to x = 20, y = 30 back to x = 0 and y = 0.

    I ve for the position of Star compared to the scene, but I can´t find anyway!

    Could you help me?

    Thanks in advance!

    Best rgds

    Eduardo

    I think I see... you have:

     stage.addChild(st);               st.x=20;               st.y=30;
    

    for the init works in the star before set the position... so still 0,0. You can set the x, y front sets addChild... or you can change your star class to accept the position in the constructor. And then you'd like: var st:star = new star (20,30);

  • Creation of several DAQmx scales for the axes of accelerometer

    I'm having a problem programmatically create customized for analog input with DAQmx scales.  Here's the background.  We are trying to develop a small Triaxial sensor for monitoring the twitching (it's a student project, I'm an "Advisor").  We have a Triaxial accelerometer that puts off voltage proportional to the components X, Y and Z of acceleration.  The accelerometer works a 5v power supply, each channel being a 1.5 v (offset) bias and a gain of 0.3 v / g, with a 10% of variability of these parameters (e.g. gain varies between 0.27 and 0.33 v/g).

    One can easily read the three channels of acceleration with an NI USB-6009.  "Proof of Concept" originally, we were easily able to measure muscle tremors, but noted that the channels were certainly not calibrated.

    I designed a calibration procedure which was fast, reliable and reproducible, requiring that the X, Y, Z tension measurement when the accelerometer was held at six direction without moving - the whole process takes 15 seconds.  But then, I decided to 'smart' (always a bad sign).

    I have never used custom DAQmx scales, but thought "why not use the values of calibration for the axes X, Y and Z to programmatically set custom for the three areas so all scales is in units of"g"and centered around 0 g".  I've defined a "Triax" task in my project - if I manually entered the scaling factors deduced my calibration, axes read all between + 1 and -1 g (depending on orientation) then the sensor was motionless.

    But I can't figure out how to take the calibration data and assign programmatically to each channel its own custom scale.

    Here's some code.  This first Routine detects the Triax task stored in the project and ensures that the correct USB-6009 case is connected.  In its project work, I appointed the three channels physical ai0 ai1 and ai2 to X, Y, and Z, and together the voltage between 0 and 5 v - this code basically resets the scale for these three channels.  It seems to work correctly.

    The reason I do it is that I want to record these three channels using the standard Volt scale, I will use these tensions to run the Calibration procedure I developed to get through three and get the necessary parameters to the custom scale.

    Here's what I tried to create a customized channel X, Y and Z (the scales are named X_Scale, Y_Scale and Z_Scale).  I tried a number of things, it's just one of them, but I did have a success to get anything to work (to talk to avoid the errors of DAQmx).  Either way, if I get the scale factors 'manually', my accelerometer readings are, indeed, optimized between-1 and + 1 g.

    Some of this code may seem too complicated - do - me confidence, I tried to make it more simple, but there are all kinds of 'hidden hunting for witches' in some of these functions that "made me do it" this way.  But, of course, this does not work.

    Ideas and suggestions are welcome!  I will continue to work on it, of course (but, thankfully, I did not the device at home with me, if I get a little break...).

    "Puzzled" Bob Schor


  • Several activations phone for the upgrade (reinstall) Win7 32 bit to Win7 64-bit, then run the patch to get Win10 64-bit? Adviser says no need!

    [Subject title changed to take account of the answers and expert advice, the original title was 1 or 2 time phone activation? Failure of the mobo, replace & reinstall Win 7 32 bit (1st time), reinstall as Win 7 64 bit (2nd time?)]

    My mother Office card failed recently, it is installed with retail 32 bit Windows 7 Home Premium and family (3 users) Office 2010 package. Two Microsoft products have product keys.

    My understanding is change of motherboard: computer transfer. While the retail Windows 7 allow to reactivate by phone, but to reactivate Office 2010 will depends on a license agreement (which I haven't checked: 2 installations on computers, died 1 single installation still work left.) Will need to contact the family member to read).

    My 2nd understanding is I can try to connect my hard drive to a new motherboard and let it go through for direct start startup repair. Is better because I don't have data because of the sudden failure of the motherboard (for example bookmarks for the browser explore, can only log into the existing facility backup).

    But being upgraded to the new motherboard (and the new quad core processors), certainly I wouldn't keep running 32-bit system in the future.

    I would reinstall under Windows 7 64-bit later, then a free update to Windows 10 64-bit. (Windows 7 Upgrade Advisor reported that I can not direct implementation installation upgrade from 32 bit to 64 bit Windows 7. Must pass through the new Setup again.)

    Whereas for the 32-bit Office 2010... I could continue to use it as it is if it is allowed to reactivate on new motherboard.

    Now, my question: to reactivate Windows 7 32-bit (and 32-bit Office 2010) with phone, later when I finished the backup of the data and do clean install Windows 7 64 bit (and 32-bit Office 2010), do I need to do to activate by phone, again? Or simply key in the original product key from the license of Windows 7 and Office 2010 already recognized the new motherboard?

    If I need do activate phone 2 times, I might as well direct own to install 64 bit Windows 7 now (despite the loss of some data).

    There is nothing worse you could install on your system than McAfee.  If you have it installed I would like to reinstall Windows it's a Goner.  The uninstall tool likely will not solve everything.

    I'm not "understand why, you need to install Windows 7 64-bit just to make a less than 10 Windows upgrade when you have a much better install directly Clean install Windows 10 Upgrade , then activate directly with the product key Windows 7."

    As to reactivate Office, wait until you get 10 windows up and then make the activation of the phone to help build just to install an Office (or 3 If you have a 3-pack of office, also).   Otherwise, you will have to redo the reinstallation of upgrade.

  • Several style sheets for the background and the adjustable content 1 and 1 for the layout

    The H guys, I have 1 css which is attacthed to everypage of the site, it's the basic layout of the site, what I want and try to do, is a different css for "each" page that has a background of different bodies and the unique divs for the page in question!

    I have attached two css page only shows the css layout, so there is no bg or unique divs showing, what should I do to get both to display on the page?... I tried to connect the togther 2 css, but only this provision, so I'm pretty stuck.  Many thanks in advance if you can help

    It is better to post the link to your page (s) online.

    I remove the background page of your remote main stylesheet rules and use

    a block of style incorporated into the head section of each page for specific page styles.

  • Several installation issues for the first time the user of 10gRelease2

    Despite the doc who said certification 10g Release 2 Windows XP Professional (> 1 MS), clusterware install fails with YES-1-8001 (error - must XP ver 5.0 or 5.2). My XP Prof Ver 5.1.2600 apparently is not compatible. Error Msg suggests the Service Pack upgrade.

    Tried to install Personal Edition, but has never seen the oppty to selection after downloading (clinet, gateways, clusterware) individual zip files into separate and then folders by running setup.exe from each folder. Don't know if I am running Personal Edition.

    It is my first time attempt to install Oracle dB. Seems that my client and gateway installation went well, but I do not have something straight to start SQLPLUS or my question clusterware is causing a problem.

    When you start SQLPLUS, entered by user name (e-mail), passwd, don't know what to enter for the chain. Leaving blank, a timeout exceeded. Do I need a login? SQLPLUS crashes if I try, and then click file.

    You have installed the companion stuff. Get rid of it.

    Install only the CD database.

  • Several VCS - C for the deployment of Jabber

    Hello

    I found no documentation if the following scenario is possible:

    -MSD 1 with TMSPE

    -1 VCS Expressway

    -Control of multiple VCS (different places connected by VPN)

    Right away:

    -Video jabber is configured on TMS with different areas

    -Jabber client credentials come from AD (all areas)

    -Jabber clients are on VCS Control 1

    Scenario:

    -Several VCS control servers

    -Jaber clients will register to the VCS control of their zone / area (based on the rules related to the domain.) Ex: [email protected] / * / will record on VCS - C1,[email protected] / * / will record on VCS - C2, etc.)

    -1 easy to use TMS

    Thank you!

    Hi Valentin,.

    Yes, it is possible. Configure the various commissioning (SIP server address different VCS - C you want to register to the value), templates for different groups that you want to register on different VCS and affect the good model for groups.

    Also, be sure to activate the commissioning (from MSDS) on all VCS which should be able to sign up customers in service.

    Let me know if you have any questions,

    Arne

  • Question about classes for the workshop held for OCP

    Im working on my OCP to complete in a few months. Quick question on the workshop class. Is there a test at the end of the week?
    Also how most people pay for these classes? They are quite steep and my company does not pay for this kind of thing for me. IM paying totally of my own pocket. Also why is the class in line of the same amount as the lead instructor class? His im not like in a room at some construction that Oracle has rent to use or something.

    If you ask if the certification test is offered at the end of the course, the answer is no. The certification test is on demand separately. Actually, in the past, some groups have asked for reviews delivered the last day of the formation of a class given internal by Oracle to their installation and the results have been disastrous. Candidates need time to assimilate the information, to work with the tools and continue their studies. You will schedule your exam at www.pearsonvue.com/oracle. Good luck with that!

    Kind regards
    Brandye Barrington
    Certification Forum Moderator

  • Reset password for the AIP - SSM-10

    Hello

    I have an ASA5520 with 7.2 v 2 running.

    but the IPS module spftware is 5.1

    When I tried to connect to the > session 1

    He asked me a login and a password.

    I tried the cisco and a few other combinations... but no luck.

    How to reset it? also the procedure to reset on the docs said its password resets or the cisco of the user...

    How can I be sure that the cisco of the user still exists about it or not?

    any help please?

    The only way to get the software for your module is to download via the software centre of Cisco.com. You will need a Smartnet contract or account of the BCC to access downloads.

    You'll be able to reimage the module with the 6.0 software, but it is advisable to reimage it with the most basic image. You can always switch from there!

    Information on the site is in the following document:

    http://www.Cisco.com/en/us/products/HW/vpndevc/PS4077/products_configuration_guide_book09186a008055dbb1.html

    Hope this information helps, if it does; Please note!

    Kind regards

    Michael

  • Audio tour on first visit to several slides except for the first of the slides advanced action does not

    I have 3 different slides in a project who have advanced actions to stream audio on first visit only. When I saw the project, the tip action works only once. Who ever these 3 slides I play first audio aura on the first visit, but the other 2 do not play audio at all. Is it possible that they do not interfere with each other?

    A tip action that I use is less and the others are the same but with different audio files

    Audio on First Slide only Advanced Action.png

    You need a variable to different entry for each slide.

    v_entry1, v_entry2 and so on.

  • Conversion error in CFML arguments to the Java classes for the web service call.

    Hi all.

    I'm working on writing a small application that uses a web service that is provided by our IVR (Angel.com). I am able to connect, however, when I try to do something with complex objects, I get the error indicated in the title.

    He seems to have a problem with the table because when I remove it, or it becomes a simple string, I get errors on the function could not be found. I'm relatively new to web services, and especially dealing with complex data types, so any help would be appreciated.

    You can see my test page to

    http://webservices.fpitesters.com/AngelCalls.cfm

    I use the language WSDL can be found at

    http://www.Angel.com/outbound/WSDL/OutboundCallService.WSDL

    Some examples of code that does what I want to do in Java / Apache Axis

    http://www.Socialtext.NET/ivrwiki/index.cgi?java_sample_code

    Here is a description of the function that I have problems with

    http://www.Socialtext.NET/ivrwiki/index.cgi?placecall

    And my code is attached.

         <cfset email = "xxxxxxxxxxxxxxxxxx">
         <cfset pin = "xxxxxxxxxxxx">
    
    
         
         <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="login" returnvariable="login">
              <cfinvokeargument name="email" value="#email#"/>
              <cfinvokeargument name="pin" value="#pin#"/>
         </cfinvoke>
    
         <cfdump var="#login#">
         
         <cfset Token = login.getToken()>
         
         <cfdump var="#token#">
         
         <cfset CallItem.maxWaitTime = 100>
         <cfset CallItem.phoneNumbers[1] = "7632344306">
         <cfset CallItem.siteNumber = 100041>
         
         <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="placeCall" returnvariable="call">
              <cfinvokeargument name="Token" value="#Token#"/>
              <cfinvokeargument name="CallItem" value="#CallItem#"/>
         </cfinvoke>
         
         <cfdump var="#call#">
    

    If you are not initializing phoneNumbers tabular before adjustment

    
    

    It will be passed as a structure with a key of 1.  This could cause your conversion of argument error.

    So:

    
    

    Will result in

    struct
    MAXWAITTIME 100
    PHONENUMBERS
    struct
    1 7632344306
    SITENUMBER 100041
      
    

    Will result in

    struct
    MAXWAITTIME 100
    PHONENUMBERS
    Table
    1 7632344306
    SITENUMBER 100041

    -Jason Morgan

  • Exception [TOPLINK-48] several writable mappings exist for field

    Hi all
    I am quite new to JPA and Toplink and I try to write simple using toplink essentials JPA application as the persistence however, provider when I comppile the code, get the errors below saying that several writable mappings exist for a field that is [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. The thing is, I have not tried map this field i.e. J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE to multiple cards, so I'm a little confused as to why I get this error. I have attached all the code and error messages associated with. I was hoping that someone will be able to help


    The error is
    Runtime Exceptions:
    ---------------------------------------------------------
    ; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-0] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.IntegrityException
    Exceptions of descriptor:
    ---------------------------------------------------------

    Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: several writable mappings exist for the field [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. Only one can be defined as writable, all others must be specified read-only.
    Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping [branch_Addr_Road_Name-> J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]
    Descriptor: RelationalDescriptor (com.gworx.Bank-> [DatabaseTable (J2EEUSER. BANKS)])

    Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: several writable mappings exist for the field [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. Only one can be defined as writable, all others must be specified read-only.
    Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping [bankName-> J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]
    Descriptor: RelationalDescriptor (com.gworx.Bank-> [DatabaseTable (J2EEUSER. BANKS)])

    Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: several writable mappings exist for the field [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. Only one can be defined as writable, all others must be specified read-only.
    Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping [branch_Addr_Locality-> J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]
    Descriptor: RelationalDescriptor (com.gworx.Bank-> [DatabaseTable (J2EEUSER. BANKS)])

    Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: several writable mappings exist for the field [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. Only one can be defined as writable, all others must be specified read-only.
    Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping [branch_Addr_City-> J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]
    Descriptor: RelationalDescriptor (com.gworx.Bank-> [DatabaseTable (J2EEUSER. BANKS)])

    Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: several writable mappings exist for the field [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. Only one can be defined as writable, all others must be specified read-only.
    Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping [branchName--> J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]
    Descriptor: RelationalDescriptor (com.gworx.Bank-> [DatabaseTable (J2EEUSER. BANKS)])

    Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: several writable mappings exist for the field [J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]. Only one can be defined as writable, all others must be specified read-only.
    Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping [branch_Addr_Postcode-> J2EEUSER. BANKS. BRANCH_ADDR_POSTCODE]
    Descriptor: RelationalDescriptor (com.gworx.Bank-> [DatabaseTable (J2EEUSER. BANKS)])

    Exception [TOPLINK-46] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (06/12/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Description of the exception: there should be a mapping not only reading set for the primary key field [J2EEUSER. ACCOUNTS. SORTCODE].
    Descriptor: RelationalDescriptor (com.gworx.Account-> [DatabaseTable (J2EEUSER. ACCOUNTS)])


    The entity class is
    package com.gworx;
    import java.io.Serializable;
    
    import javax.persistence.*;
    import javax.persistence.CascadeType;
    
    @Entity
    @IdClass(BankPK.class)
    
    
    @Table(name = "BANKS", schema = "J2EEUSER")
    public class Bank implements Serializable {
         
    
         
         /**
          * 
          */
         private static final long serialVersionUID = 1L;
    
         @Id
         @Column(name = "BRANCH_SORTCODE", nullable = false, precision = 6, insertable=false, updatable=false)
         long sortcode;
         
         @Basic()
         @Column(name = "BANK_NAME", nullable = false, insertable=false, updatable=false)
         String  bankName;
         
         @Basic()
         @Column(name = "BRANCH_NAME", nullable = false, insertable=false, updatable=false)
         String branchName;
         
         @Basic()
         @Column(name = "BRANCH_ADDR_HOUSE_NAME", nullable = false, insertable=false, updatable=false)
         String branch_Addr_House_Name;
         
         @Basic()
         @Column(name = "BRANCH_ADDR_ROAD_NAME",nullable = false, insertable=false, updatable=false)
         String branch_Addr_Road_Name;
         @Basic()
         @Column(name = "BRANCH_ADDR_LOCALITY", nullable = false, insertable=false, updatable=false)
         String branch_Addr_Locality;
         @Basic()
         @Column(name = "BRANCH_ADDR_CITY",nullable = false, insertable=false, updatable=false)
         String branch_Addr_City;
         @OneToOne(cascade=CascadeType.ALL)
         @Basic()
         @Column(name = "BRANCH_ADDR_POSTCODE", nullable = false)
         String branch_Addr_Postcode;
         
         public Bank(){}
         
         public Bank(
                        String bankName,
              String branchName,
              long sortcode,
              String  branch_Addr_House_Name,
                  String  branch_Addr_Road_Name,
                  String  branch_Addr_Locality,
                  String  branch_Addr_City,
                  String  branch_Addr_Postcode)
    
                     { 
              this.bankName=bankName;
              this.sortcode=sortcode;
              this.branchName = branchName;
                         this.branch_Addr_House_Name=branch_Addr_House_Name;
              this.branch_Addr_Road_Name=branch_Addr_Road_Name;
              this.branch_Addr_Locality=branch_Addr_Locality;
              this.branch_Addr_City=branch_Addr_City;  
              this.branch_Addr_Postcode=branch_Addr_Postcode;
              
         }
         
         public void setSortcode(long sortcode){
              this.sortcode =sortcode;
         }
         
         public long getSortCode(){
              return this.sortcode;
         }
    The PK class is
    public class BankPK implements Serializable {
         
         public long sortcode;
    
         public BankPK(long sortcode){
              this.sortcode = sortcode;
         }
    
         public boolean equals(Object obj){
              
              if(obj==null || !(obj instanceof BankPK)){
              
                   return false;
              }
              else if (((BankPK)obj).sortcode ==sortcode)
              return true;
              else
                   return false;
              
         }
         
         public int hashCode(){
    
              StringBuffer buff = new StringBuffer();
              buff.append(sortcode);
              int hashCode =buff.hashCode();
              return hashCode;
         }
         
    
    }
    My bean of stateless session that I use to create to create the entity is
    package com.gworx;
    
    import javax.ejb.Local;
    
    import javax.ejb.Stateless;
    import javax.persistence.*;
    import javax.ejb.Remote;
    import com.gworx.BankBeanRemote;
    
    
    
    /**
     * Session Bean implementation class BankBean
     */
    @Stateless
    
    public class BankBean implements BankBeanRemote {
    
        /**
         * Default constructor. 
         */
         
         
         @PersistenceContext
         
         
         EntityManager entMgr;
         //public Bank bank; 
         
         public Account account;
         
         long sortcode, cust_id;
         
         //Bank Details
         String  bankName,branchName,branch_Addr_House_Name,
         branch_Addr_Road_Name,branch_Addr_Locality, 
         branch_Addr_City,  branch_Addr_Postcode;
         
         
         //Customer specific Details
         String cust_Surname,cust_Middlename,cust_Forename,
         cust_Addr_HouseName,cust_Addr_RoadName,
         cust_Addr_Locality,cust_Addr_City,cust_Addr_PostCode;
         
        public BankBean() {
            // TODO Auto-generated constructor stub
        //     entMgr=emf.createEntityManager();
        }
    
       
       public void  make_A_Bank(
                 String bankName,
                  String branchName,
                  long sortcode,
                  String  branch_Addr_House_Name,
                  String  branch_Addr_Road_Name,
                  String  branch_Addr_Locality,
                  String  branch_Addr_City,
                  String  branch_Addr_Postcode
                  )
    
                                   {
                 this.sortcode=sortcode;
                 this.bankName =bankName;
                 this.branchName = branchName;
                         this.branch_Addr_House_Name=branch_Addr_House_Name;
              this.branch_Addr_Road_Name=branch_Addr_Road_Name;
              this.branch_Addr_Locality=branch_Addr_Locality;
              this.branch_Addr_City=branch_Addr_City;  
              this.branch_Addr_Postcode=branch_Addr_Postcode;
              
              Bank bank = new Bank( bankName,branchName,sortcode,branch_Addr_House_Name,
                        branch_Addr_Road_Name,branch_Addr_Locality, 
                        branch_Addr_City,  branch_Addr_Postcode);
              entMgr.persist(bank);
              
              //return bank;
        }
    
    
    public void make_An_Account(Bank bank, Customer customer, long accNum,
              AccountType accType) {
         
         Bank tempbank = entMgr.find(Bank.class, bank.getSortCode());
         Customer  tempcust=entMgr.find(Customer.class, customer.getCustomerPK());
         Account acc = new Account(tempbank, tempcust, accNum, accType );
         entMgr.persist(acc);
         
         //return acc;
    }
    
    
    public void make_A_Customer(String cust_Surname,
              String cust_Middlename, String cust_Forename,
              String cust_Addr_HouseName, String cust_Addr_RoadName,
              String cust_Addr_Locality, String cust_Addr_City,
              String cust_Addr_PostCode) {
         
         
         Customer cust = new Customer(cust_Surname,cust_Middlename,cust_Forename,
                   cust_Addr_HouseName,cust_Addr_RoadName,
                   cust_Addr_Locality,cust_Addr_City,cust_Addr_PostCode);
         
         entMgr.persist(cust);
         
         //return null;
    }
    
    
    public void make_A_Bank() {
         // TODO Auto-generated method stub
         
    }
        
        
    }
    The client application is
    package com.gworx.client;
    import javax.ejb.EJB;
    
    import com.gworx.BankBeanRemote;
    
    public class BankClient {
    
         /**
          * @param args
          */
    @EJB 
    private  static BankBeanRemote testbean;
    
    public BankClient(){
         
    }
         public static void main(String[] args) {
              // TODO Auto-generated method stub
                   
                        testbean.make_A_Bank(
                        "Test_Bank_Name", 
                        "Test_Bank_Branch_Name", 
                        010102,
                        "Test_House",
                        "Test_Road_Name", 
                        "Test_branch_Locality", 
                        "Test_branch_City", 
                        "E2 8DY");
              System.out.println("Bank Created, Check DB tables to verify creation!!");
         }
    
    }
    Thank you

    Published by: Geedo on July 16, 2009 10:06

    It seems that you still have the ear old hang out. Maybe clean your server or build/deploy directory.

  • Generate the Java Classes for WebService provided by DPS. WebServices module...

    Hi all

    I need generate the Java Classes for the loginUser.wsdl file provided by DPS. Modules of WebServices... ? I tried with AXIS2 and Apache CXF2... He lift the security exception... ?

    Exception:

    C:\axis2-1.6.2\bin > wsdl2java.bat - uri C:/loginUser.wsdl
    AXIS2_HOME using: C:\axis2-1.6.2
    With the help of JAVA_HOME: C:\Java\jdk1.6.0_18
    Saving document to "C:/loginUser.wsdl".
    log4j: WARN no appenders could be found for logger (org.apache.axis2.i18n.ProjectResourceBundle).
    log4j: WARN Please initialize log4j correctly system.
    Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: the WSDL parsing error
    to org.apache.axis2.wsdl.codegen.CodeGenerationEngine. < init > (CodeGenerationEngine.java:178)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
    at org.apache.axis2.wsdl.WSDL2Java.main (WSDL2Java.java:24)
    Caused by: javax.wsdl.WSDLException: WSDLException (to/definitions/import [1]): faultCode = OTHER_ERROR: unable to
    solve a document imported into 'atg.security.wsdl' from 'file:/C:/loginUser.wsdl': java.io.FileNotFoundEx
    reception: this file was not found: file:/C:/atg.security.wsdl
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport (unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions (unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL (unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL (unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL (unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL (unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL (unknown Source)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:320)
    to org.apache.axis2.wsdl.codegen.CodeGenerationEngine. < init > (CodeGenerationEngine.java:133)
    ... 2 more
    Caused by: java.io.FileNotFoundException: this file was not found: file:/C:/atg.security.wsdl
    at com.ibm.wsdl.util.StringUtils.getContentAsInputStream (unknown Source)
    ... 11 more

    Do not use Axis2 that is not compatible with the ATG SOAP webservices. You should use Axis 1.4. Please review these documents according to your version of ATG:

    http://docs.Oracle.com/CD/E26180_01/platform.94/ATGIntFrameGuide/HTML/s0603beforeyoubegin01.html

    http://docs.Oracle.com/CD/E24152_01/platform.10-1/ATGWSFrameGuide/HTML/s0703beforeyoubeginusingajavaclient01.html

Maybe you are looking for

  • My Tools-Options menu is empty. That's happened?

    This happened after a few updates for firefox. The Options menu has the button 'OK' and 'Cancel '.

  • If I want to open a new tab, I can't.

    If I'm on a tab and to open another to display something else it doesn't let me open another tab, although it opens another tab automatically when I press some links. I just can't open another tab myself.

  • Tecra M3 - BSOD if I install the graphics driver

    I bought a Tecra M3 about 4 years ago. He has recently started to give the BSOD. I started in safe mode, and it is fine. I uninstalled the graphics driver and rebooted and it works - just without the graphics driver. As soon as I reinstall the graphi

  • Satellite P100-239 - audio driver for Windows 7

    Hello I need support for the installation of driver audio for my Satellite P100-239. I tried different things but no one works. So I'm looking for a friend who give me a solution to fix my sound prob. I'm sure it's a hd audio to conneax. I can't Flas

  • Problems with the Precision M4400 and the graphic card Nvidia quadro 770M

    I have a problem with my Precision M4400 and Nvidia Quadro 770 M. After I installed Windows 7 64 bit, I have problems with the graphics card. I get a blue screen or graphic errors. I tried several versions of the driver. In the Nvidia forum had this