Stateless EJB Webservices vs Endpoint.publish() API for a production system

Hello,
I am currently designing an SOA JEE application using JAX-WS Webservices for the synchronous calls and JMS (MDB) for asynchronous access.
It is packaged in a EAR containing one EJB module (no WAR), so I decided first to publish the Webservices using the javax.xml.ws.Endpoint.publish() method via the Spring org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter. It's working very well and I can inject easily spring beans into my JAX-WS webservice, .. but :
- I cannot see the published webservices in the Weblogic console
- I have no idea on how the webservices instances are handled (just one ? )
- Is it robust enough to be used in production in a critical financial application ?
On the other hand, I just have to add a @Statless annotation to turn my JAX-WS classes into real EJB-Webservice aware, but it probably adds overhead in the Weblogic server and it's a bit more complicated to inject Spring resources.
Any advice will help.
Thanks
GM

Hi Kaustubh,
A topic subscriber only receives messages that are published after it is registered with the topic. Your code for send() creates a publisher that sends the message to the topic before you create a new subscriber in your receive() code. Since that subscriber is created after your publisher has sent its message your subscriber will never receive this message!
Your code will have the expected behaviour if you use a queue instead of a topic. If you have to use a topic, you could create your subscriber and your publisher in the init() method of your EJB and reuse them in your send() and receive() methods.
Hope it helps.
Best regards
Arnaud Simon
Arjuna Technologies - http://www.arjuna.com

Similar Messages

  • Chart of account conversion SLO tool,method for a Production system

    Hi All
    We have a requirement like we want to use Chart of account conversion tool for a production system where transactional data are present.
    We have used this COA conversion tool for best practice solution not in a production system.
    we want to know the difference between these two methods like production and non production system.
    Provide me some process document on the SLO service tool for the same
    Mrinal dey
    9836265158

    Hi Mrinal
    I'm wondering the same? How to go on in productive system after to use the conversion toll?
    How did you manage?
    Regards
    Angels

  • Webservice client : different wsdl file for test/production environment

    In an ADF application, I need call a web service in model project
    In my company, we have 2 environments : test and production.
    This webservice is deploye in test server and production server.
    So there are 2 different wsdl file for test/production.
    I want to make my ADF Application portable cross the 2 environments.
    An environment variable can indicate in which environment the ADF application run.
    According to this variable, application choose which wsdl/endpoint to call.
    If I use "web service Data control" wizard, how can I achieve this?
    If I use "webservice proxy" wizard, how can I achieve this?
    Thanks!!!!!!

    Hi,
    I have a model project with ws proxy client and on this proxy I added an adf ws connection called CustomerExperience
    then I can do this.
    // a test to try to overrule the adf ws connection from EM
    Context ctx = null;
    try {
    ctx = ADFContext.getCurrent().getConnectionsContext();
    WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("CustomerExperience");
    CustomerExperience customerExperience = wsc.getJaxWSPort(CustomerExperience.class);
    } catch (NamingException e) {
    LOGGER.severe("got web service loading fault: "+ e.getMessage());
    throw new JboException( messages.getString("NOM-999"),
    "NOM-999",
    null );
    I exported this to an adf jar and added this to a webapp.
    On runtime the ws connection is not dectected by the webapp so need to copy this ws conn to the connections of the webapp. This works
    but can I change it from wlst instead of EM , is this possible?
    I don't see the WS connection in wlst (oracle common) adf_listURLConnection('CE_Portal')
    thanks

  • WebService in Adobe Forms in Test and Production Systems

    Hello Friends,
    I am facing a peculiar problem with the webservice. I have created one Adobe Form in Development system and in that Adobe Form I used one WebService to get the User's Complete Name. Its working fine in Development System. And all the WebDynpro Component's and Applications, RFC Function Module(for WebService), WebService Name were placed in same Request ID and this request is being moved from Development System to Quality system, here all the objects were present except WebService Name i.e. this service can be seen only from SOAMANAGER Transaction but not from SICF Transaction(As given in SAP Note: 1318499). And I came to know that we need to use only SOAMANAGER transaction ONLY in Quality or Production systems.
    But while creating Data Connection in Adobe Form I used SOAMANAGER's generated URL and it got created successfully and while triggering the WebService at Runtime based on some event I am writing JavaScript Code and here I am using the URL where it is generated from SICF Transaction.
    Friends please help me in solving the issue as which URL I need to use in Adobe Form at runtime(i.e. triggering webservice from JavaScript, the URL from SOAMANAGER is not working in JavaScript).
    Regards
    Pradeep Goli

    Hey,
    as far as I understood the ESR is a design time tool, i think  you don't need to have a productive instance.
    I think it should be installed on your PI systems. And I would prefer to have at least a devel and a test installation, to
    separate services on test machines from those who are running on productive systems.
    as you can't differentiate the services by their name but just by their systems, you should have separate ESR Instances.
    Nevertheless I think it could be possible to run only one ESR....
    Kind Regards
    Christof

  • Same logical system name for two productive systems - BW, PI issues

    Dear all,
    we have a productive system which serves two companies (different company codes). This system is connected both to BW and PI for both companies.
    There is a requirement that these two companies must use their own system, so the whole landscape (dev,qa,prd) will be copied to different systems (different server with different system id).
    As a result of the above procedure we wll have two different productive systems, as required, but we wll have the same logical system name for the two productive systems, which must be both connect to bw and PI.
    However as far as I know:
    - we cannot connect systems with same logical system name to BW,PI
    - we cannot convert logical system name of the one of the two productive systems as they are productive and so this is not supported.
    How can we overcome the problem?
    Please advice.

    > However as far as I know:
    > - we cannot connect systems with same logical system name to BW,PI
    > - we cannot convert logical system name of the one of the two productive systems as they are productive and so this is not supported.
    Right.
    > How can we overcome the problem?
    Since you split up systems (or plan to) I highly recommend booking an SLO service (http://service.sap.com/slo). Those people have to the tools and the knowlege to help you. I would not do this on my own.
    Markus

  • How to define an export system for a production system?

    Hello:
    I remember there is a way to define an export system for a PRD.
    However I cannot recall exactly what to do: in transport  profile or instance profile?
    Could any expert help find out this?
    Thanks with points!
    Regards!

    Hi,
    Are you trying to configure CHARM? In that case, try setting the domain controller as the production system and keep CTC=1.
    This should help.
    Thanks,
    Rinkal

  • EWA for non-productive Systems

    Hi all,
    is there a possibility to get Early Watch Alerts for Systems in a Solution, which are not marked as productive.
    I don't want to create many solutions.
    The same problem i have with the monitoring, I only see the productive in the monitoring overview.
    Regards
    Tobias

    >
    Schlosser Tobias wrote:
    > I have added Systems to the Solution XY. The Leading Role of this solution is "productive Systems"
    >
    > I have add System PR1 (Productive) and System DE1 (Development).  But I can only see the EWA for the Productive.
    > If I want to see the EWA for the Development I have to delete the log. components and switch the leading role to "Development Systems".
    >
    > That's very inconvenient.
    >
    > I wan't one Solution with all my Systems, and EWAs for every System in it. Is this possible?
    Yes, it's possible to have all systems (Prod, Dev, QA, ...) within one solution and to have EWA activated.
    You need to choose "Put in Solution" from the context menu. See screen shots attached.
    Regards,
    Ruediger

  • Disaster Recovery scenario for MSCS Production system.

    Hi
    Our production system is on win2008/sql2008 MSCS. We decided to install a disaster recovery system. We will use a database replication software. If we have a standalone production system, not a MSCS system, i know that i can install Disaster Recory system with same SID and hostname and i don't need any homogeneous system copy procedure to switch to DR system. But in our scenario, we have many hostname (sap cluster group, sql cluster group, hostnames of nodes... etc.).
    How can i install my DR system (which hostname.. etc.) to make our DR scenario easy?
    Best Regards...

    You May have trouble with RFC connections:
    So, one possible solution is, your new server name(Host name) should be your message server name to minimise the trouble and you have to maintain this for all RFC connections (to Prod ECC system) to virtual host which could be message server.
    If I could think if any other possible issues, I will update.
    Krishna

  • API for inserting/updating system profile option values

    Hi,
    Is there any API that I can use to insert/update system profile option values via PL/SQL?
    Regards,
    Santhosh Jose

    Hi Santosh,
    You can think of using the FNDLOAD utility to download the values from one instance and upload to other instance.
    ## Now lets have a look at the profile option using oracle's FNDLOAD
    FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt PROFILE PROFILE_NAME="POR_ENABLE_REQ_HEADER_CUST" APPLICATION_SHORT_NAME="ICX"
    ## Note that
    ## POR_ENABLE_REQ_HEADER_CUST is the short name of profile option
    ## We aren't passing the user profile option name in this case. Validate using ...
    ########----->select application_id, PROFILE_OPTION_NAME || '==>' || profile_option_id || '==>' ||
    ########----->USER_PROFILE_OPTION_NAME
    ########----->from FND_PROFILE_OPTIONS_VL
    ########----->where PROFILE_OPTION_NAME like '%' || upper('&profile_option_name') || '%'
    ########----->order by PROFILE_OPTION_NAME
    ########----->/
    ## Now to upload
    FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt
    For other config components download and upload you can refer the link- http://www.apps2fusion.com/apps/scripts/19-oracle-fndload-script-examples
    Thanks,
    Sanjay

  • Solman CHARM: adding multiple clients for quality/Production systems in Solar_project_admin

    Dear Colleagues
    We are using Solution manager 7.3. When we setup system landscape under a solution manager implementation project, we can only select one development and one quality/testing system.
    Our scenario is that,
    Development System:
    D40 - 010 : (both workbench and customizing changes being done in same client)
    Quality System:
    Q40 - 010 : for customizing changes
    Q40 - 000 : for work bench imports
    So the querry is that, how we can add these two separate rows in Solar_project_admin and under tab systems:
    ie D40-010 --> Q40-010   and D40-010 --> Q40-000.
    Regards
    Renjith

    Hi Renjith
    Please check below
    Change Request Management scenario: Usual questions and known errors
    Question no. 2 is more relevant for you
    hope this answer ur query
    Regards
    Prakhar

  • Oracle BPM Suite 11g published API.

    Hi Guys,
    Can any one provide the links or docs for Published API for Oracle BPM suite 11g,Like REST etc.
    It has any Remote Interfaces
    Thanks,
    Venkat

    Here a few links regarding the APIs:
    API JavaDoc reference -
    http://docs.oracle.com/cd/E28389_01/apirefs.1111/e25378/oracle/bpm/services/instancequery/IInstanceQueryService.html
    Simple list example -
    http://soadev.blogspot.in/2011/07/querying-oracle-bpm-process-instances.html
    Aborting instances -
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10659/oracle/soa/management/facade/package-tree.html
    Creating instances -
    http://niallcblogs.blogspot.com/2011/12/invoking-bpm-processes-via-java.html
    Building a custom worklist ap -
    http://redstack.wordpress.com/worklist/
    http://redstack.wordpress.com/2011/03/09/creating-the-domain-layer-for-the-worklist/
    http://redstack.wordpress.com/2011/03/09/implementing-task-initiation/
    Purging Instances -
    http://niallcblogs.blogspot.com/2011/12/soabpm-apis-manipulating-composites-and.html
    Instance Query -
    http://java.net/projects/oraclebpmsuite11g/downloads/directory/Samples/bpm-api-101-instance-query
    Human Workflow Services / Human Task API -
    http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_workflow.htm
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e10660/toc.htm
    Hope this helps,
    Dan

  • Essbase: Api for Rules File

    Hi all,Is there any Api available (In Java, C or VB) to find out the SQL that was given as the data source input to a Data Load Rules File.I want know any workaround available to obtain the SQL from Rules file.Any help will be greatly appreciated.Thanks.

    There do not believe there is any published API for reading rules files (including the Java API, C API and VB APIs).Tim TowApplied OLAP, Inc

  • Public APIs for Adobe Central Pro Server

    Hi,
    Can anyone point me to the Public APIs that are available with the Adobe Central Pro Server e.g. I would want my application to dynamically add or remove steps in the job db, or change the target printer. Also, is it possible to invoke the preview functionality that comes with the Adobe Designer and integrate with an existing application
    Here what we are trying to do is add the printing (template merging) facility to an existing application and would want access to the public API for these products.
    Thanks in anticipation!
    Regards,

    I'm not sure you can do what you describe in the manner that you appear to be wanting to do it. I know of no APIs that are provided. There are ways to get the job done, though.<br /><br />The job management data base is an ascii text file that can easily be changed programatically. Parts of our application use it for building a drop-down list of printers for the user to select from. Changing it doesn't automatically cause Central to use the new file. Central must be told to reload it before it will be using the modified file. This can be done by placing a certain "command" file in Central's control folder, but it would not run until after the current job completes - if the current job is the one that just changed the file and further steps of the same job are for the processing of the data, then that would be too late. Once a job starts, all the parameters and tasks from the job management database and on the original ^job statement is what will be used. This goes for changing anything about the job, whether it be adding/deleting steps, changing the printer, or any other parameters.<br /><br />We accomplish pretty much what you want by doing several things. <br /><br />*First, we define all of the various configurations of jobs that we need. For example, our main printing job has four tasks; it is not uncommon to need to restart a job someplace besides the first task. Therefore, we have four different jobs defined, each one starting further down the list of tasks. We do the same thing when the processing of the data has to vary in some manner - we have jobs pre-defined for each specific set of tasks and the source of the data sets the ^job name as required for the specific tasks that have to be done.<br /><br />*For modifying the printer, we use the -z<printer> and -asp<driver> parameters on the ^job statement and the source of the file sets the values as necessary. The source of the file will also set the job name so that the desired job is ran. <br /><br />*We also have built into our custom agents the capability to recognize when a "soft" failure is occurring (such as can't reach our database) and it will put the job back in for processing after changing the job name to run the correct job for restarting at the proper step. <br /><br />*One of our steps is to check a control file to see if there is a redirection for the specified printer to a substitute printer (say, the original printer is down for maintenance). This agent will put the job back in for processing, changing not only the job name but the printer parameters. It has to be put back in, instead of just changing the parameters and passing the file on to JFMERGE, because Central uses the parameters on the original ^job line, it doesn't use the parameters that might be on the ^job line when JFMERGE starts.<br /><br />*We have also created our own agent for running as the JFERROR task. This task runs when one of the agents supplied with Central encounter a failure. Our agent analyzes the failure and determines if it was "hard" or "soft". If it was a "soft" failure, this agent requeues the job, changing the name and parameters as necessary.<br /><br />So far we have been unable to determine how to get our VB6 agents to set the ErrorLevel to notify Central that the agent failed (we came up with a workaround instead of spending a lot of time trying to get the ErrorLevel to work). This is necessary to prevent Central's agents from processing when a predicessor custom agent fails. Since we couldn't set the ErrorLevel, we just set up all of our agents to always create an output file for input to the next task. When one of our agents fail, it only outputs a modified ^job line with no following data. This modified ^job line is recognized by our custom agents as an indication that a failure is in process so it skips any processing except to pass the file to the next task. Since there is no data or form commands in the file, once it gets to JFMERGE, it just terminates without producing any output or error condition.<br /><br />Previewing is accomplished by running the JFPVMRG agent to create a PDF and then JFPVSEND to send it to the originating IP# for receipt by the View Manager which will then load it into Adobe Reader. At this point, the job running on Central will be finished - it could have produced hard-copy output or not depending on its design. Once the user receives the PDF, they can do whatever they want with it (save, print, etc).<br /><br />We use the above capability for our users to view an "archive" image of forms, after it has been processed normally. I know of others that use it to create the PDF as part of the normal processing, allowing the user to then print from Adobe Reader it if they wish.<br /><br />What we do is to drop a DAT file into Central's input folder that runs the above two agents. Our application that is running on the user's PC then watches for Adobe Reader to load and when it does it forces it to be the top-most task (we do this because we have a problem that it will often open behind other windows).

  • Backup solutions for Solaris 10 systems

    I am trying to put together a backup solution for a number of SunFire V240 systems running Solaris 10. We do run our backups using NetWorker, along with a couple of high powered back up systems. But this solution I am trying to create is something that can be performed by our first responders, our help desk folks. The systems in question are already in production but we do have days where we can bring them down for maintenance or whatever we need to do. Therefore, I can implement this new solution during the day(s) of maintenance time.
    I was looking at using Solaris Volume Manager and its metadata configurations. But I am unsure how to start with files sytems already created. I want to be able to have a backup of the boot disk in the event that the hard drive in which it resides goes down. I want our help desk folks be able to immediately bring the system right back up with little down time during the evening to late hours.
    I guess what I am looking for are exact steps to help configure this backup solution with Solaris Volume Manager for our production systems. Can anyone help?

    Hey there,
    Have a look at this excellent guide. I think that you may find what you need here. If not drop an email back. To begin with you need an extra disk(s) since you will mirror your data. This is sort of a pre-requisite.
    Good luck,
    Pierre
    http://www.adminschoice.com/docs/solstice_disksuite.htm

  • Configuring EarlyWatchAlert for all the systems in the landscape

    Gurus ,
    In SDCCN can i configure EARLYWATCHALERT session with targethost as SDCC_OSS
    now this has been only for production system . can this be done to all the systems in the landscape ?

    Hi Susin,
    As per me i could say the EWAlert only be configured for your production system rather
    than the other systems(Dev/QA) existing in your ladscape.
    If you are thinking to schedule this Alert for other products(BI/EP/XI) or for other SIDs,
    then yes...please go ahead.
    Why i am saying we can only schedule the EWAlert for production system, coz the
    the EarlyWatch report uses the SDCC_OSS RFC, which is a copy of the SAPOSS connection. And the target destination refers to SAP's system where one copy of your
    weekly shceduled EWAlert report goes to SAP end as well.
    Please inform me incase any other queries...
    Thank you,
    Tilak

Maybe you are looking for

  • No data in tables after migration

    I am migrating SQL Server database to Oracle using using SQL Developer - and all when well until I checked the tables and there is no data. Login as the new schema and do "select count(*) from user_tables" Got 35 tables, but when I checked the indivi

  • Python 2.5 and other libraries lost after n900 fla...

    Could someone help me to solve this problem with my device? I have flashed my device fw and emmc after its brick. The flashing seemed successfully, but when i try to install some apps like fm radio it returns an error message in which inform me that

  • Highest quality intro video after effects

    i am puzzling to get the highest quality out of my after effects video as a full screen intro for my webpage but what i ask is , what format ? wich Steps ? and what's most compatible? yvesm

  • Old podcasts not being deleted from hard drive

    Can anyone help me with this problem? I currently have the "keep only unplayed podcasts" selected. ITunes synchs great with my Nano. If a podcast is played, it is taken off of the Nano. The problem is that the podcast is not also deleted from my hard

  • How to manipulate themes?

    I love the notebook theme in Keynote, but I'm trying to get the spiral binding to be on the left side of the page rather than the top. Not just because it looks more like a notebook, but because I've already done all my presentation pages in 8 by 11.