Deploying EJBs with same name in different application jars on JBOSS

Hi,
We are attempting to deploy entity beans with the same name in 2 different EJB application jars on jboss 3.2.5. One bean is an extension of the other, so some of the DB columns they refer to are the same (they access different DB tables in different tablespaces). However, the field names corresponding to these DB columns in the beans themselves are different (i.e. DB column serviceid is associated with the field serviceid in one bean and service_id in the other).
We have altered jboss.xml for one of the EJB applications so that the jndi-name used to access that application's bean is different to the jndi-name used to access the entity bean in the other EJB jar.
However, when we attempt to deploy both jar files on the same jboss server, one of the applications deploys successfully and when we deploy the other, we get EJB spec violation errors, such as the following:
14:18:34,631 WARN [verifier] EJB spec violation:
Bean : CommunityAddress
Section: 10.6.2
Warning: The entity bean class must define a get accessor for each CMP field.
Info : Field: service_id
I'm presuming that this is because the bean which references the serviceid DB column with a field called serviceid is being mixed up with the other bean, which has a service_id field.
Can anyone tell me if there is anything else that is required to get entity beans/EJBs in different applications but with the same names (and some overlapping fields, etc) deployed successfully on the same jboss server apart from editing jboss.xml for one of the applications?
Is this a jbosscmp-jdbc.xml issue?
Any help much appreciated,
Maurice

Hi Srinath
Thanks for your response. Its not cloning, its like check-in file first, then check-out the file and do some editing and then again upload the same file with different revision number using RIDC. I got the solution now.
Regards
Raj

Similar Messages

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • How to create directories with same name in different schemas

    I have two schemas on the same database.
    I am trying to create directories with same name, but different paths in both the schemas.
    When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    Is there any solution to create directories with same name, but different path in two different schemas on the same database.
    Thanks,
    Sridhar.

    Hi,
    >>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
    SYSTEM> connect scott/tiger
    Connected.
    SCOTT> create directory mydir as '/tmp';
    Directory created.
    SCOTT> connect legatti/pwd
    Connected.
    LEGATTI> create directory mydir as '/tmp';
    create directory mydir as '/tmp'
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    LEGATTI> select owner,object_name,object_type,created
      2  from dba_objects where object_name='MYDIR';
    OWNER     OBJECT_NAME    OBJECT_TYPE         CREATED
    SYS       MYDIR          DIRECTORY           19/12/2007Cheers
    Legatti

  • Mounting multiple directories with same name on different severs to a single mount point on another server

    We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
    The files in these directories will be different.
    These same name directories on multiple severs has to be mounted to a single directory on another sever.
    We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
    Is there any way we can achieve this so that all the directories can be mounted to a single mount point?

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Importing files with same name but different extensions

    Hope I will be clear enough.
    Lets say that instead of sending a file from Lightroom to an external editor, I open it directly in Photoshop.
    When I'm done, I save the edited photo using the same name but in a different file format : IMG_1333.cr2 > IMG_1333.psd or IMG_1333.tif, and selecting the same folder location.
    Then, I come back into Lightroom and synchronise the folder.
    Why is the knew version of the picture not showing up beside the original file, despite the different extension ?
    I notice that the different extensions ( .psd or .tif ) are recorded in the sidecar files field in the Metadata panel.
    Of course, everything works fine if the file name is modified ( or just by selecting the "copy" option in Photoshop's "save as" dialog box ). Lightroom synchronise dialog shows the new photo to import.
    So, why is Lightroom not making a difference between files with the same name but different format extensions ?
    Thanks for any hint :-)
    Gilles.

    Gilles-
    I think your problem is likely that you have the option to stack the copy with the original turned on. First, right-click on one of these photos and go to the stacking menu. If Unstack is not grayed out then you have a stack -- select Unstack to reveal all copies.
    To change the automatic stacking of edited copies from Photoshop, when you next choose to edit a file, in the bottom left corner of the dialog is the check box for unstacking. Clear it, and that choice should "stick" until you change it again.
    Hope this helps!
    Tony

  • Concatenate tables with same name from different servers - CR2013

    Hello,
    I need some help.  I need data from 2 tables with the same name on different SQL servers thru an ODBC connection. When I try to get the data by adding both to my datasource I get data from one or the other.  I have considered creating a view, but not sure how to handle this.  Thanks.

    Hi,
    Linked Servers are pretty simple and straightforward, just do a search for the procedure.
    I do have an additional comment, though.  Depending on what tables you're gathering, I've found noticeable differences in performance when I use a connector to a DB on Server Instance "A" linked to "B" versus Server Instance B linked to A.  I haven't determined the circumstances affecting one over the other.
    If I'm not happy with speed using a connector A, I try switching to B.  I like to use as much SQL code as possible, but you can't get around the connector still being a factor.
    Matt

  • Unable to protect 2 computers with same name, but different Domains

    DPM 2012 R2 and UR2
    All DC:s and servers are 2012 R2 + Latest patches.
    ad.A.com has full  2 Way trust with ad.B.com. (Different forrest)
    DPM Server is DPM.ad.A.com
    Computer EXCH.ad.A.com is protected without problem 
    Computer SQL.ad.B.com  is protected without problem
    When I try to attach agent from EXCH.ad.B.com I'll get problems.
    Error 346: DPM is unable to retrieve the configuration information from EXCH.ad.B.com
    I'll guess this has to do with same name of computer, although in different domains.  Is this as Designed, or is it a defect? 
    /Peter

    please try a different User to attach/install the DPM Agent.
    if this is not the solution, you maybe have a Problem with wmi, try and test with wbemtest
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

  • Change selected file to a file with same name but different extension.

    So I'm getting better at using Automator to create useful Services but still a bit of a newbie with doing powerful things with AppleScript... and I think this task requires some applescripting. Here's what I want to do:
    1. Based on a selected text file I want to run a pre-existing script that converts this file into an HTML file. This new file has the same name as the text file but has the .html extension rather than the .txt extension. (This step is easy enough and it works just fine already.)
    2. BUT NOW, I want to take that resulting HTML file and run another pre-existing script that converts the HTML file into an RTF file. The problem is that I basically want to change the selection from selectedfile.TXT to selectedfile.HTML so that I can proceed to this next step...
    3. AND THEN, I want to launch an app with this resulting RTF file. Again, I need to change the selection to selectedfile.RTF.
    Right now this requires me to run three different services, and changing the selected file between each step... But I'm sure there's an easy applescript way (or other way) to do this using just one service -- probably involves some filename parsing and some magic to change the selection??? -- or something like that...
    Could anyone point me in the right direction???
    Thank you thank you thank you!
    ~zyyyy

    You can chain your scripts together - depending on the complexity of your pre-existing scripts, you could do this with either AppleScript or Automator. The workflow would just take the selected text file (from step 1), convert to both HTML (2) and RTF (3), then launch your application with the resulting RTF - no need to change any selection.
    By the way, this is the Tiger Automator forum - Snow Leopard's Automator is quite a bit different, so you will probably have better luck posting in the Snow Leopard forum.

  • How to check-in multiple files with same name having different revision num

    Hi
    Can anyone please tell me, how to check-in multiple files with the same name with different revision number using RIDC API.
    For eg:
    First I will check-in a file(TestFile.txt) into a content server with revision number 1 using RIDC API in ADF application. Then after some time, will modify the same file(TestFile.txt) and check-in again. I tried to check-in same file multiple times, however first time its checking-in correctly into server showing revision as 1, while checking-in same file again, its not giving any errror message, and also its not reflecting in server. Only one file(TestFile.txt) is reflecting in server.
    How to implement this functinality using RIDC API? Any suggestions would be helpful.
    Regards
    Raj
    Edited by: 887680 on Mar 6, 2013 10:48 AM

    Hi Srinath
    Thanks for your response. Its not cloning, its like check-in file first, then check-out the file and do some editing and then again upload the same file with different revision number using RIDC. I got the solution now.
    Regards
    Raj

  • Managing dbs with same names on different hosts in GC 10.2.0.3

    I saw this post: Ideas needed - monitoring same DBName in manual standby
    But my issue is we have an environment that keeps the same db names for production, development, uat etc... Dbs are 10.2.0.3 on Solaris 10. GC is 10.2.0.3 on windows.
    e.g. i have a cluster database HRMS, running on two nodes. On another server, i have a standalone instance HRMS and Grid Control was able to detect it. Weird, it looked like it didn't care about the same name here (may be there is a difference between a database instance and a cluster instance). However, if i were to discover another target on another node, it will complain saying there is another instance. I have used the workaround to manually add it as say HRMS_hostname. All is good.
    I'm curious though as to how when you create a standby database using GC, it creates a different unique name. (DB_UNIQUE_NAME). The latter seems to be the solution in having dbs with the same name in GC with different db_unique_name parameter. However, this parameter is not modifiable.
    Comments anyone?
    Thanks.

    Try this and rediscover the database in GC and see what you get.
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Oct 25 10:34:56 2007
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    SQL> connect /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  130023424 bytes
    Fixed Size                  1288148 bytes
    Variable Size              88082476 bytes
    Database Buffers           37748736 bytes
    Redo Buffers                2904064 bytes
    Database mounted.
    SQL> show parameters unique
    NAME                                 TYPE        VALUE
    db_unique_name                       string      testdb
    SQL> alter system set db_unique_name=testdbq scope=spfile;
    System altered.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area  130023424 bytes
    Fixed Size                  1288148 bytes
    Variable Size              88082476 bytes
    Database Buffers           37748736 bytes
    Redo Buffers                2904064 bytes
    Database mounted.
    Database opened.
    SQL> show parameters unique
    NAME                                 TYPE        VALUE
    db_unique_name                       string      TESTDBQ
    SQL>
    Note: I used startup force to restart my test database quickly. Do not do it on your database. Do a shutdown immediate followed by startup

  • Using multiple SSIDs with same name but different PSKs

    I have a central WLC 2504 controller that is being used for remote site FlexConnect 1141 APs. They all advertise three different SSIDs. One SSID is a global SSID that is the same at every office. One is a hidden SSID using 802.1x machine auth.
    The one I am trying to get working is the local office guest network. These SSIDs are all the same at each office but should have different PSKs. They are local to the office, therefore would only ever be applied to a specific FlexConnect group.
    I understand why in theory this is generally not a good idea but given these are for remote sites I'd like it to be possible. I always get this message though:
    "WLAN with duplicate SSID and L2 security policy found"
    Is there a way around this? New WLC code that allows it maybe?

    I was able to configure three (more I think possible) WLANs with same SSID name and all are WPA2-AES-PSK on the same WLC and all are enabled at hte same time.
    Note that you can not have any of those broadcasting on same AP group. Each WLAN can be only broadcasted on a separate AP group. For your sites, It will probably need you to define an AP group for each site to broadcast different WLANs on different sites.
    You can do that if all your WLANs have an ID of 17 or higher. (the reason is, WLANs of 1-16 are by default broadcasted on the default AP group. and because those can not be on the same AP group - including the default one - then you can't have them with WLAN IDs 1-16. i.e on same - default - AP group)
    HTH
    Amjad
    rating useful replies is more useful than saying "Thank you"

  • Files with same name in different packages

    I have a file with the same name defined in two different packages.
    When I generate the javadoc, I get an error saying that
    Class com.eg.toolkit.Email already defined in com.eg.common.Email.java
    Does javadoc expect all files to be of different names acroos packages?
    Thanks
    Chintu

    You can use the same class name in different packages.
    The Java API does that (java.awt.List, java.util.List).
    This is odd. What version of javadoc are you using,
    and what command are you passing in, with what classpath setting?
    -Doug Kramer
    javadoc team

  • Batch processing: save processed file with same name to different location without moving the original

    Hi, I would like to denoise Voice Over files with help of Auditions Batch Process. However, I have to save the files with the same name as the original, so that I can simply relink them in Premiere. Since I do want to keep the originals, I would like to save the processed files to a different location.
    Unfortunately, Batch Processor adds " Copy" to the processed files and moves the originals along with the processed files to the new folder (causing Premiere to loose the original files).
    Can I achieve my goal with Batch Processor, and how would I have to configure it?
    Kind regards,
    Andreas

    Which version of Audition are you using? The latest ones allow you to specify where the batched files are saved and also if any Prefix or Postfix are added to the file name. These are all under Export Settings in the Batch Process pane. However you must have the Export box ticked to give you access to the settings.

  • Images with same name in different folders being swapped

    I've been out at a printers freelancing and using CS6 for the first time. I've a 64 page document with a large number of images (100+) that have been given various treatments and held in folders named to identify them.
    originals: sweden.jpg, germany.jpg, india.jpg…etc
    saturated: sweden.jpg, germany.jpg, india.jpg…etc
    greyscale: sweden.jpg, germany.jpg, india.jpg…etc
    and so on. The document contains differnt combinations of these pictures, all in all I've about 1,000 image links in the document.
    I opened up my document this morning and found for some reason the links to the images were broken - no idea why as no folders seem to have been moved but when I relinked to one of them - say a greyscale image - they ALL linked to the wrong set - the "saturated" ones. Looking at the image path in the links panel I see that's what's happened, ALL the link paths to ALL the images say "saturated", never mind the fact they're greyscale in the document.
    So is this a known issue? At the moment I can't find any solution but to relink manually over a thousand images, which, lets face it, is a bit of a disaster for me and the job deadline.
    I've used indesign for years and never come across anything even CLOSE to this sort of behaviour.

    InDesign has a feature that will automatically search for other missing links when you fix a missing link. When you relinked the first of your grayscale images, you may have accidentally relinked to the saturated image. When this happened it searched the directory that the newly re-linked file was in for all the other missing files. Since your image names all matched up to images in that directory, they all got re-linked.
    This auto-relink feature can be toggled in the relink dialog:
    If you have a backup of your file, you can revert to that version, and try to relink your images from that one. In the future you should make sure that images all have unique identifiers, it is bad practice to have images with identical names.

  • Grouping albums with same name but different artist?

    I have two albums in iTunes 7 which will not group correctly - either they show up as 24 or so separate albums or a single compilation or so on! I've tried marking them as compilations, as not compilations, you name it.
    They share the same album name, but have different artists and genres. How can I convince iTunes that they are two distinct albums? (I would have thought this test should be part of the application's logic, to be honest!)
    Gavin

    Note: I have this album set to be a compilation, I have filled in Queen in all 17 tracks as the album artist and all 17 tracks have the same Album name, it still does not group together properly when sorting by Album Artist (only when sorting by Album Name).
    iTunes 7 adds support for the ¨Album Artist¨ tag (as used and required by Windows Media Player). Adding support for this tag was actually a request I made myself a while ago.
    Unfortunately iTunes is not using this tag in a useful way (as it was intended). The purpose of this tag (as used by Windows Media Player) is to cope with Albums that contain more than one artist, a good example album is Queen's Greatest Hits III (see http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?id=161431875&s=14344 4 ) this album contains tracks by or featuring David Bowie and George Michael (amongst others) as well as Queen themselves, despite this, everyone would consider the Album itself to be by Queen.
    The purpose of the Album Artist tag is so that you can browse by the Album Artist and see the entire album listed (and not just those tracks specifically by Queen themselves). Therefore iTunes should if in browse view mode and sorted by Album Artist show the entire album grouped together - IT DOES NOT. Instead it appears to be being sub-sorted by Artist (as well as Album Artist) and this results in it being split in to 3 or more sections. This applies to all three view modes including the Coverflow view.
    As things stand the only benefit I get from iTunes now supporting the Album Artist tag is greater compatibility with Windows Media Player, apart from that it appears completely useless in iTunes as currently implemented.

Maybe you are looking for

  • Can not find recovery manager and have no disks to even start.

    Ever since I got my laptop fixed I have been having a lot of problems My system was windows 7 and is now windows 8. First it will not let me complete an update and on the screen it says it is reverting files. Second when I first start up my computor

  • My ipod shuffle isn't showing up on itunes or my computer

    I went to go update my ipod but when i plugged my ipod shuffle 2nd gen, nothing came up on itunes or my desktop. The light on it is repeatedly flashing orange though when plugged into the computer. But when i plug it into the wall, it flashes green,

  • How to export pics from MacPro to Ipad?

    Ipad new owner. How do I Export pics from my MacBook Pro into Ipad?

  • How can I get my swf files playing on browser?

    Hello, I've been designing my first website and have used dreamweaver, which is very new to me. I've followed a very good beginners guide to making websites and all was well. However, it had nothing about uploading swf files. So I did some research,

  • How best to set up multiple time capsules for multiple needs?

    There is so much good information on these discussions about using TCs for extenders or external drives - I am hoping to do both so will ask my own question here. BTW, this is my very first post so please be patient with me if I do not include someth