Webservice and UI codes in one application

Hi,
We have two applications, one for the UI and one for web services. Both of them have Model project. Hence, we are thinking of merging then into one application which contains three projects: UI, Web services and Model so that both UI and Web services share the same Model project, no redundant codes. Just wondering is that a good design, will there be any issues? So can it be generated two deployment EARs files within one application?
Please advise.
Thanks
-Mina

you can have your approach itself.. but.. both webservice and the UI project will be have a dependency on the model project.. but you cannot reuse the model project any where else..
the suggestion given by shay, helps you to use the model library in both UI and webservice.. and can also extend to any other project which needs to access the model project..
in this case you are refering only the libraries of model project.. so no direct depenedency..

Similar Messages

  • Can I include both CSS and HTML codes in one Open HTML Editor.

    Somehow Cell phones are not properly reading css codes. Is there any way to include both CSS and HTML codes in one Open HTML Editor?

    Hammad, their code is fairly mobile friendly.  Per my other discussion with you ( http://topliners.eloqua.com/thread/8532 ), Eloqua's code is responsive for the most part.  Most of their issues lie with the styling of the email where you will get different fonts and different sized fonts throughout the email and some other minor display issues.
    What you are trying to accomplish is extremely difficult to do because you do not have the access to the HTML to better control how the responsive template works which is why the Eloqua templates (and most ESP templates) stick to the more basic side of emails.
    If you want to use Eloqua's WYSIWYG to make their responsive email you can do so, but I would recommend deleting all their body text before editing anything because of the inconsistencies in their code.  Otherwise, I think you would be better off coding the emails outside of Eloqua using a 3rd party editor whether it's something more robust like Dreamweaver or Coda, or whether you feel comfortable working in a more text environment with programs like Notepad++ or Brackets.
    At the end of the day remember you are paying Eloqua for these and if you choose to stick with the WYSIWYG and you are not getting the results you expect you need to tell Eloqua through your support channels.

  • Can we wrap a RFC as webservice  and use from external java application ?

    Hi Friends ,
                         Our scenario is  call a webservice ( wrapped form of RFC)  from a external  java application  which will pass the input to that webservice and get back the result  .
                          How XI will play a role here ?
                          Can we wrap a rfc as web service  ?
                           Any blogs for that ?
                          Can you please give a brief details about this ?
                          Expecting yoour asap
    Best Regards .,
    V.Rangarajan

    Hi
    Can we wrap a rfc as web service ?
    Yes.
    <i>To use the SAP Web AS 6.40 you need to build a wrapper in the 6.40 system. This is a remote function call (RFC) enabled function module with the same interface or a similar interface that internally calls the required RFC-enabled function module in the old 4.6x system via RFC. The wrapper then can be exposed to the outside world as a Web service. Another option is to use the Integration Broker capabilities for calling Web services in an older system.</i>
    How XI will play a role here ?
    XI will pass the input to the external java application and get back the result to the webservice
    regards
    krishna

  • Viewing photos and videos (mixed) in one application, sorted by date?

    I'm "converted" Windows user, using OSX now for 3 years. I'd never like to switch back to Windows, but there are 2 things that still are a problem for me.
    First and main problem: How can I view all the fotos and videos (of last saturday, the last evening, ..) in one single application, sorted all by date, no matter if the file is a photo or a video, without having to exit one program, open the video file(s) and switching back again?
    just cmd+a cmd+o opens me the first photo with possibility to go to the next one by hitting the right/down arrow key - perfect. the problem is that i get hundreds of quicktime windows and i can't view the right video after the photo taken before the video was captured and continue viewing the other photos after viewing the video.
    gramatically shurely everything but correct, but i hope you understand what i tried to explain :P
    is there any way to get what i want and is automatically done in windows if i select some video / image files and hit enter?
    Second is that i would like to switch the selection in dialog boxes with my keybord and accept that selection by hitting enter, but i think that can't be solved by anyone but apple whitch makes it not as important in this thread..
    thank you!

    Now i have just got to figure out how to minimize the size of the iPhoto Library
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    However, you need to be aware of a number of potential pitfalls using this system.
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    Always allowing for personal preference, I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers.
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, there are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Your choice, obviously, but best to be aware of all the ramifications. By all means post back if you require more info.
    Regards
    TD

  • Wrap and compile code in one step...

    http://tylermuth.wordpress.com/2007/09/14/wrap-and-compile-in-one-step/
    This was a cool trick I discovered while writing some LDAP code for a customer recently.
    Tyler

    you can zip all files in one file quite convenient using tar: tar czf <name of the tarfile>.tar.gz <filenames which must be in it>
    An extremely easy way to share files is using NFS, or samba mounts (that way all the network handling is transparent)

  • Any info about ADF WebServices and pass data from one VO to another VO?

    Hi, i need to do a webservice for synchronize two tables in two db... there are any info, articles, tutorials or examples about this? preferably the part of data copying between VO...
    Thanks in advance.

    I'm not exactly sure what you are trying to do and why would you need a Web service for this - but it seems like having an AM service method is what you should be using.
    Read more here:
    http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcservices.htm#sm0206
    http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcservices.htm#sm0212
    Demo:
    https://blogs.oracle.com/shay/entry/am_service_method_-simpledem

  • Is one application pool preferred for all sharepoint service applications(

    is one application pool preferred for all SharePoint service applications ? 
    I have a three-tier architected SP 2013 small farm (NLT, 2 wfe, 1 app server, 1 db server). All services will be use (Secure Store,Service Application, Managed Metadata Service Application, Search Service Application,User Profile Service Application,App
    Management Service Application,Workflow Manager,Excel Service Application,BI Reporting Service Application,Power Pivot Service,Performance Point,Visio Services,BCS Service application)
    I am unclear on the following:
    which servers should host which service ? and why ?
    Is one application pool account preferred for all SP service Applications ? if not which service applications should be logically group ? and why ?

    Creating additional application pools requires more RAM memory.  About 100-150 MB per app pool.  But it also keeps things happening in one app pool from affecting another.  So normally you create additional app pools when you want to maintain
    higher service levels on one component versus another.  For example.  Let's assume that your service levels designate that you could survive a 3 hour outage of Search but that Managed metadata must be constantly available with minimal downtime.  Then
    you would put Search and MMS in separate App Pools.  Otherwise there is no real advantage to splitting them up.
    Services that are accessed directly by user request, like Search Query, Managed metadata, user profile should go on the Web Front ends.  Services that process heavier intermittent loads are normally placed on a dedicated application server to keep them
    from affecting overall performance, for example Excel Services.  But its more of an art form rather than a science and depends a lot on your performance needs, your hardware, and your usage.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Directory structure for servlets and webservices in one application

    hi,
    Can any one help me for creating servlets and webservices in one
    application and deploying in Jboss 4.2.0.
    I want to know exactly what is the directory structure for creating this
    application and what are the additional .xml files for deploying this application.
    if any one know this answere please tell the answere.

    I figured out a solution - it's a problem of policies. In detail: Server1's codebase entry (file:) refers to the class directory of Server1's project. In the simple case of only Client1, which has no codebase entry, it works fine without a file permission on the side of Server1. In the complex case of Client1+Server2, which has to have a codebase entry (file:) refering to the class directory of the Server2's project on a separate machine, for exactly the same method call from Client1 to Server1 a file permission entry on the side of Server1 is needed for Server1's class directory. But WHY ???
    It seems to be a little confusing with the codebase entries, many of the posts are contrary to others and to my personal experiences. Some comments given by Adrian Colley throw a little light upon some aspects. Is there anybody, who can explain the whole topic, when, why, and which part of RMI application deals with codebase entries, also in case of not dynamic code downloading ? May be there is also a reference into the java docs, which I didn't found up to now.
    Thanks in advance
    Axel

  • Best practice for calling application module methods and plsql code

    In my application I am experiencing problems with connection pooling, I seem to be using a lot of connections in my application when only a few users are using the system. As part of our application we need to call database procedures for business logic.
    Our backing beans, call methods on the application module which in turn call a database procedure. For instance in the backing bean we have code like this to call the application module method.
    // Calling Module to generate new examination/test.
    CIGAppModuleImpl appMod = (CIGAppModuleImpl)Configuration.createRootApplicationModule("ky.gov.exam.model.CIGAppModule", "CIGAppModuleLocal");
    String testId = appMod.createTest( userId, examId, centerId).toString();
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("tid",testId);
    // Close the call
    System.out.println("Calling releaseRootApplicationModule remove");
    Configuration.releaseRootApplicationModule(appMod, true);
    System.out.println("Completed releaseRootApplicationModule remove");
    return returnResult;
    In the application module method we have the following code.
    System.out.println("CIGAppModuleImpl: Call the database and use the value from the iterator");
    CallableStatement cs = null;
    try{
    cs = getDBTransaction().createCallableStatement("begin ? := macilap.user_admin.new_test_init(?,?,?); end;", 0);
    cs.registerOutParameter(1, Types.NUMERIC);
    cs.setString(2, p_userId);
    cs.setString(3, p_examId);
    cs.setString(4, p_centerId);
    cs.executeUpdate();
    returnResult=cs.getInt(1);
    System.out.println("CIGAppModuleImpl.createTest: Return Result is " + returnResult);
    }catch (SQLException se){
    throw new JboException(se);
    finally {
    if (cs != null) {
    try {
    cs.close();
    catch (SQLException s) {
    throw new JboException(s);
    I have read in one of Steve Muench presentations (Oracle Fusion Applications Team' Best Practises) that calling the createRootApplicationModule method is a bad idea, and to call the method via the binding interface.
    I am assuming calling the createRootApplicationModule uses much more resources and database connections that calling the method through the binding interface such as
    BindingContainer bindings = getBindings();
    OperationBinding ob = bindings.getOperationBinding("customMethod");
    Object result = ob.execute()
    Is this the case? Also is using getDBTransaction().createCallableStatement the best way of calling database procedures. Would it be better to expose plsql packages as webservices and then call them from the applicationModule. Is this more efficient?
    Regards
    Orlando

    Thanks Shay, this is now working.
    I successfully got the binding to the application method in the pagedef.
    I used the following code in my backing bean.
    package view.backing;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class Testdatabase {
    private DCBindingContainer bindingContainer;
    public void setBindingContainer (DCBindingContainer bc) {this.bindingContainer = bc;}
    public DCBindingContainer getBindingContainer() {return bindingContainer;}
    public static String validateUser()
    // Calling Module to validate user and return user role details.
    System.out.println("Getting Binding Container from Home Backing Bean");
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    System.out.println("Obtain binding");
    OperationBinding operationBinding = bindings.getOperationBinding("calldatabase");
    System.out.println("Set username parameter");
    operationBinding.getParamsMap().put("p_userId",userId);
    System.out.println("Set password parameter");
    operationBinding.getParamsMap().put("p_testId",examId);
    Object result = operationBinding.execute();
    System.out.println("Obtain result");
    String userRole = result.toString();
    System.out.println("Result is "+userRole);
    }

  • My phone does not show contact names for country and area code while having in coming calls. Although, I have endorsed the name with numbers. How do I the problem. My one is a iphone 3s device with updated os. Please text to help

    My iphone does not recognize saved contact number while having incoming calls due to country and area code as auto prefix. How do i fix the problem. How do i ensure that the phone recognize calls with and without the country and area code. Please text to help.

    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number.
    2) When the system answer press 1 for "Program or activate your phone"
    3) Wait for the call to disconnect. You should get a prompt stating something like, "Settings updated."
    4) Open the Task Manager and kill the Phone, Message, and Contacts Applications
    5) Wait a few minutes (I waited 3 just to be extra safe)
    6) Open the Message App to verify the fix

  • My daughter just got her ipod and she begam multiple apple id's. she entered her itunes card code into one of these and we dont know which one

    my daughter received an ipod and  an itunes card for christmas and began multiple apple id's with a few different email addresses. she entered the itunes card code into one of these. i have all the card info and receipt. is there anyway she can still use this card?

    As long as you are signed into the account which she registered the card with, you will be able to use it. I'm guessing you just don't know which account that is. Logging into all of them would be the only way to find that out. Hope that helps :)

  • HT5019 MacPro laptop display and 2 external monitors (three displays). Can I have more than one application displayed at a time?

    I would like to have my MacPro laptop display and 2 external monitors (three displays). Question, how can I have more than one application displayed at a time? IE: I would like email on one monitor, Finder on my laptop, and iTunes on the other. Possible?
    With extended desktop, it appears that I can only have one application presenting at a time. Sort of defeats the purpose of having multiple displays.
    I am using the HDMI and the mini HDMI connectors.

    I would like to have my MacPro laptop display and 2 external monitors (three displays). Question, how can I have more than one application displayed at a time? IE: I would like email on one monitor, Finder on my laptop, and iTunes on the other. Possible?
    With extended desktop, it appears that I can only have one application presenting at a time. Sort of defeats the purpose of having multiple displays.
    I am using the HDMI and the mini HDMI connectors.

  • IMac (2008) OS10.6.8 - Main menu freezes when running more than one application at a time.  Apple and 3rd party applications - all freeze the main menu.  Safe mode seems to work OK. Tried repairing permissions - didn't work.

    For the past 60 days I've experienced Main Menu freeze when running more than one application at a time.  iPhoto, Preview, Text Edit, Epson Scan, Firefox and Thunderbird are the apps I use almost daily.  No matter what I do, when more than one is running they will freeze the Main Menu (top of the screen).  I've tried booting is Safe Mode and I don't seem to have a problem.  I've tried several suggestions from repairing permission (DiskUtility) to eliminating specifis login items.  Nothing works. I've posted this issue on the Apple forum several times and no one else has experienced this problem.  I hesitate to take my iMac to the Apple Store or a private Apple repair service until I've exhausted all of my options.  Do I have any more options?    

    Question:  Everytime an app crashes I have the option to report it to Apple - which I usually do.  But I've NEVER reported a Main Menu freeze because it never asks me to
    There's really no need to submit to Apple, it's just a round file cabinet on the other end, especially with 10.6 or earlier.
    This sure sounds like a resource problem...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • Export and Import a page from one application to another within same WKSPCE

    Hello,
    Can anyone help me out in moving a page from one application to another within the space workspace. I tried to export it and then import the page, but I am not able to do that. I think the problem is with the application IDs.
    Plz help me out with this issue.
    Thanks,
    Orton

    Hi Orton,
    moving a page from one application to another within the space workspace
    This U can get it, through copying the page from one application to another application within the same workspace
    In the top of the page, you have "copy" option.
    regards,
    Kavitha

  • Apple apps store do double charged me for only one application purchased and i can't find an email of apple customer service.

    Apple apps store do double charged me for only one application purchased and i can't find an email of apple customer service.
    <Email Edited By Host>

    These are user-to-user forums - I've asked the hosts to remove your email address from your post.
    Tou can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

Maybe you are looking for