Jndi communication between app servers?

Hi all,
I'm quite familiar with J2EE and its communication architecture. In the past, I haven't had the need to communicate from one app server to another (just all web/applet clients to the central app server). But now I need to :)
Is there a way to communicate (synchronously) between app servers on different machines that aren't clustered? Clustering is not a possibility.
I know JMS is an option, but JMS is asyncrhonous. I also know you can't create server sockets in an app server because the J2EE spec disallows this approach, so forget about client/server communication via sockets.
This would be my ideal solution:
Server A does a jndi lookup for a bean on server B. Server A gets this reference and works with it just like any other J2EE client to server B.
Does JNDI allow you to do lookups to other namespaces outside of the current namespace on server A?
Can this even be done?
Thanks,
Les Hazlewood

Yes. It's possible. For one of my applications, I have three HP-UX servers that run i2 software on them, but for different business units. I have a J2EE application that does a little bit of everything for the i2 applications. Since the business logic is the same, with only the business dept differing, I deployed 3 instances of JBoss, each running on their own server. My user's log into one of the applications, doesn't matter which, and if they request a service (EJB) that needs to run on a different server, my webapp makes a connection to that server and uses the remote EJB to do the work. It's very possible and an excellent solution.
The solution will depend on which J2EE server you're using.
Here's a class I use to retrieve the InitialContext I need for my application:
package com.cibavision;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import java.rmi.RemoteException;
import java.util.Properties;
public class CibaJNDI{
   public static InitialContext getInitialContext ( String server ) throws javax.naming.NamingException {
      Properties p = new Properties () ;
      p.put(Context.INITIAL_CONTEXT_FACTORY,
             "org.jnp.interfaces.NamingContextFactory");
      p.put(Context.PROVIDER_URL,
             "jnp://" + server + ":1099");
      p.put(Context.URL_PKG_PREFIXES,
             "org.jboss.naming:org.jnp.interfaces");
      return new InitialContext (p) ;
}Using this class, I have logic in my application that calls for the appropriate server, something like this:
if businessA then use server1
if businessB then use server2
if businessC then use server3
I then call for my InitialContext, request my EJB, and I'm off and running. No clustering, it matters which machine I'm on (I have to read extract files, etc.)
Works great. We are also a weblogic shop, but I haven't made any calls to weblogic from outside my J2EE app yet, but it should only differ by the hash attributes you pass to new InitialContext( props ).
Hope this helps,
Perry Tew

Similar Messages

  • Ports required for communication between Web servers and service applications (the default is HTTP)

    We're using SharePoint 2010, I'm the system admin for a SharePoint farm. We enabled SharePoint Search by adding a Search Service APplication. One of the crawl report timer job is failing every 5 minte with the error "Cannot connect to remote server".
    After digging around, we found that the server running the timer job tries to connect to the SearchAdmin.svc on the index server, over HTTPS / port 32844 However, communication over SSL via a non default port is blocked by our firewall.
    According to this article: https://technet.microsoft.com/en-us/library/cc262849.aspx the default is HTTP for communication
    between web servers. How is it possible that it's trying to connect over SSL?

    Hi,
    Quoted from
    https://technet.microsoft.com/en-us/library/cc262849.aspx#ServiceApp :
    You can change the protocol and port binding for each service application. On the Service Applications page in Central Administration, select the service application, and then click
    Publish.
    Here is an article for configuring Windows firewall port rules for SharePoint using PowerShell in case you need:
    http://www.xylos.com/default.aspx?id=1050
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Communication between app world and 9900

    I just got a 9900, when I try to connect to App World I get the message:
    "An error has occurred communicating with the BlackBerry World Web plug-in. Please restart your device and try again. If you have content protection enabled on your device, please disable it and try again."
    Tried turning off/on, that didn't help.  Can't figure out what "content protection" is, but I haven't enabled anything like that and I also can't find an option like that on the BB...so I'm stuck.  There's an app I really need to get...please help...

    Hi Michael0568
    Welcome to BlackBerry Support Forums
    First refer to this KB and follow those suggestion :
    KB29599 : AppWorld Web Plug-in Error appears when attempting to install applications from a computer
    If you already installed App World plugin then on your pc then  go to add or remove programms or unstall a program then delete or remove App world plugin , restart your pc then install fresh .
    However , always the best way to download application is Over the Air . 
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Communicating between Managed Servers

    Hi,
    I have multiple Managed servers running on the same host, each hosting one web
    app on a particular port.
    The Admin server runs on port 7001.
    Example :
    The Managed Server hosting the Session Manager is running on 7100, and the
    Managed server hosting the DSLTools is running on port 7200.
    The following link works -
    http://localhost:7100/sessionmgr/servlet/sessionmgr
    Now when I click on DSLTools button on the page displayed by the above link,
    it takes me to
    http://localhost:7100/dsltools/servlet/dsltools
    whereas, I want it to take me to
    http://localhost:7200/dsltools/servlet/dsltools
    If I type the http://localhost:7200/dsltools/servlet/dsltools
    in the web browser, it works.
    So, ques is how can I go from Session Manager running on port 7100 to
    DSL Tools running on port 7200 ?
    I am trying Proxy by path using ProxyServlet, but it doesn't seem to work.
    I don't want to hard code the port numbers in the Session Manager servlet
    for obvious reasons.
    A quick response will be appreciated.
    Thank you very much
    -Anil Varma

    Hi Chris,
    Thanks for your suggestion. I am going to try you suggestion
    and hope somebody responds to it.
    Thanks
    -Anil
    "Chris Chiodo" <[email protected]> wrote:
    Hi Anil,
    You might consider asking this same question on the
    "weblogic.developer.interest.servlet" newsgroup. The people monitoring
    that
    group would be likely to know the answer to this question.
    Thanks
    Chris Chiodo
    BEA Systems
    "Anil Varma" <[email protected]> wrote in message
    news:3f1c020e$[email protected]..
    Hi,
    I have multiple Managed servers running on the same host, each hostingone
    web
    app on a particular port.
    The Admin server runs on port 7001.
    Example :
    The Managed Server hosting the Session Manager is running on 7100,and the
    Managed server hosting the DSLTools is running on port 7200.
    The following link works -
    http://localhost:7100/sessionmgr/servlet/sessionmgr
    Now when I click on DSLTools button on the page displayed by the abovelink,
    it takes me to
    http://localhost:7100/dsltools/servlet/dsltools
    whereas, I want it to take me to
    http://localhost:7200/dsltools/servlet/dsltools
    If I type the http://localhost:7200/dsltools/servlet/dsltools
    in the web browser, it works.
    So, ques is how can I go from Session Manager running on port 7100to
    DSL Tools running on port 7200 ?
    I am trying Proxy by path using ProxyServlet, but it doesn't seem towork.
    I don't want to hard code the port numbers in the Session Manager servlet
    for obvious reasons.
    A quick response will be appreciated.
    Thank you very much
    -Anil Varma

  • Passing between app servers.

    Hi,
    Is it possible to pass the session attributes from one application server to another securely?
    I have a user validated in one application running in a app server. I need to pass in the user information to another application running in another app server securely. How do I do that?
    Regards,
    Developer_73

    Hi,
    Is it possible to pass the session attributes from one application server to another securely?
    I have a user validated in one application running in a app server. I need to pass in the user information to another application running in another app server securely. How do I do that?
    Regards,
    Developer_73

  • Communication between servers on different FIs

    Just want to verify communication between UCS servers on same chassis but having active vNICs on different FIs (Diagram attached). I suppose all commuication between server-A & server-B will happen through Layer 2 switch as server-A will generate an ARP request for Server-B, that will be passed over to FI-A and then to L2 switch down to FI-B, where server-B will respond back with it's MAC that will then be passed to Server-A via FI-B to L2 switch to FI-A.I don't expect any traffic between servers A & B be routed via firewall? Is there anything I need to be careful about in this design? Going forward we will have multiple subinterfaces on the firewall for different VLANs and all servers will use Firewall as default gateway.

    you may want to look at the throughput of your firewall for server-server traffic in different VLANs. If your L2 switch is 10G but your firewall is only 1G then you could have a potential bottle neck.

  • Cannot get Telnet to work between two servers on same subnet

    I need to test if communication is open on port 8444 between two servers.
    I installed telnet client on a Server 2008 R2 server and telnet server on a Server 2008 SP2 server.  I also manually started the Telnet service that was set to disabled on the SP2 server.  I disabled the Windows firewall on both servers.  They
    are both on the same subnet so they don't need to go through any routers and I can ping successfully.
    When I try to telnet to the remote server by typing telnet "ip address" 8444, I get an error that says "Could not open connection to host, on port 8444:  Connection failed.
    I tried other ports like port 80 and got the same error.
    What else is needed to get this to work?

    VMs have nothing to do with it, as long as there's network communication between the servers.
    As I said, there must be a service or application listening on that port for it to respond. For example, try this:
    C:\> telnet
    When the telnet prompt opens, type in:
    open mail.messaging.microsoft.com 25
    If it works, you should see this:
    220 CH1EHSMHS035.bigfish.com Microsoft ESMTP MAIL Service ready at Thu, 7 Feb 2013 00:57:33 +0000
    That means that Microsoft's mail servers are LISTENING on port 25 and it responded. And note, telnetting to port 25 is a non-default telnet port, because port 23 is the default telnet port. When you type in a space and then a port number, you're telling
    the telnet client to use that port.
    That is the SAME THING if some sort of application or service is listening on port 8444 on that other server you're trying to telnet to. If there is no app or service listening, it will just time out.
    And no, installing the TELNET service on that sercver will NOT answer to any port other than 23. The telnet service by default, uses TCP 23, unless you specify otherwise.
    So once again, what service or app on that server is supposed to be listening on 8444?
    Ace Fekay
    MVP, MCT, MCITP/EA, MCTS Windows 2008/R2 & Exchange 2007, Exchange 2010 EA, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Technical Blogs & Videos: http://www.delawarecountycomputerconsulting.com/
    This post is provided AS-IS with no warranties or guarantees and confers no rights.

  • Port forwarding between two servers from Same subnet

     Hi,
    We have a Cisco ASA 5520 Version 8.4(3). There exists a site to site VPN tunnel between us and a client and the client sends us the data to our local host/server 10.x.x.20 on port 52944. So 10.x.x.20 gets data on port 52944. We want to forward this data to a test server 10.x.x.21( same subnet IP) on port 52945. so basically I want to forward traffic from 10.x.x.20:52944 to 10.x.x.21:52945.
    Is this possible. I am a new bee to the networking and still learning. Excuse me if this sounds silly. 
    I know we can add one more ACL in the VPN tunnel and add this test server IP in the ACL. but, then I have to ask the clinet to change their ACL too. I dont want to do this. So I want to wrok around it. Any help or suggestions is much appreciated.
    Thanks in advance :)
    This is my first ticket in the support community.
    cs

    VMs have nothing to do with it, as long as there's network communication between the servers.
    As I said, there must be a service or application listening on that port for it to respond. For example, try this:
    C:\> telnet
    When the telnet prompt opens, type in:
    open mail.messaging.microsoft.com 25
    If it works, you should see this:
    220 CH1EHSMHS035.bigfish.com Microsoft ESMTP MAIL Service ready at Thu, 7 Feb 2013 00:57:33 +0000
    That means that Microsoft's mail servers are LISTENING on port 25 and it responded. And note, telnetting to port 25 is a non-default telnet port, because port 23 is the default telnet port. When you type in a space and then a port number, you're telling
    the telnet client to use that port.
    That is the SAME THING if some sort of application or service is listening on port 8444 on that other server you're trying to telnet to. If there is no app or service listening, it will just time out.
    And no, installing the TELNET service on that sercver will NOT answer to any port other than 23. The telnet service by default, uses TCP 23, unless you specify otherwise.
    So once again, what service or app on that server is supposed to be listening on 8444?
    Ace Fekay
    MVP, MCT, MCITP/EA, MCTS Windows 2008/R2 & Exchange 2007, Exchange 2010 EA, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Technical Blogs & Videos: http://www.delawarecountycomputerconsulting.com/
    This post is provided AS-IS with no warranties or guarantees and confers no rights.

  • Encrypting communication between an app that uses an ODBC/DSN (with ADODB) and SQL Server 2008 R2

    I've been doing a lot of reading the last couple of days on how we can encrypt db communication between our product app and a customer's SQL Server db, but cannot make it work as expected. The app uses a ODBC/DSN to connect to the SQL Server db. I use this
    ODBC app to setup the DSN (on a Windows 7 PC):
    C:\Windows\SysWOW64\odbcad32.exe
    The  DSNconnection uses the SQL Server driver 6.01.7601.17514 and has these properties:
    - WinNT authentication.
    - Client Config button: TCP/IP to <server-name>\<instance.-name>
    - Change to default db: <name-of-app-db>
    - Everything else is default setting.
    SQL Server is on the same Windowns 7 PC and has a self-signed cert installed (used IIS to generate it) and has the Force Enryption set to "yes".
    I have a test C# program that uses the ADODB 2.7.0.0 COM-wrapper, made by Visual Studio after adding a reference to the ADO 2.7 library version 6.1.7601.17857. The program creates an ADODB.Connection object that has a simple connection string: "DSN=<san-name>;UID=<user>;PWD=<password>". The
    program then creates an ADODB.Recordset object and reads and displays a field from a table.
    Works fine.
    If I go into SQL Server and set Force Encryption to "no," clear the cert, restart the SQL service, and then re-run the program, it works fine.
    Here's the kick. If I go into the DSN and select "Use strong encryption for data" the Test button on the DSN works—why does it work? The SQL Server is no longer encrypting the connection so an error should occur. If I run the test program, it works
    as well—why? I can look at the connection properties in the test program and see that ADODB has added the ";Encrypt-yes" stuff to the end of the connection string. Yet that option seems to have no effect.
    If I set the SQL instance back to Force Encryption:yes, enable the cert, restart the SQL service, and clear the DSN's "Use strong encryption for data" option, I can still connect to the db with the
    test program—why?
    What am I doing wrong? I need to be able to ensure that the communication between our app product and the SQL instance is encrypted, and that we get an error if the SQL instance does not support encrypted communications. We really don't want the customer
    to have to enable Force Encryption because they have other db's on their SQL Server that do not use encrypted communication, but they want to know that our product's communication channel with the db is encrypted.
    No, I can't change the app product's code at this point in time. I'm stuck with working with what a DSN called from ADODB has to offer.
    Also, how can I be sure that communications are encrypted? I mean, I've tried things like "SELECT * FROM sys.dm_exec_connections" but that doesn't help because I have no idea how to tie the list of sessions shown back to my test program, although
    I guess it's a good thing that some of the sessions listed show encrypt_option as TRUE.
    -glenn-

    Ah yes, very good point. It's easy to miss because you have to delete then recreate the DSN in order to change drivers. So I switched the DSN over to the SQL Native 11 driver.
    Now when I try to connect to the SQL instance as <computer-name>\<instance-name>, and without a cert on the server, I get "the target principal name is incorrect". Perfect; now we're getting somewhere!
    Change my DSN to use <fqdn>\<instance-name> and it works. This tells me that SQL Server has auto-generated a cert and named it <fqdn>. I would have expected the "cert fail" error, not a cert
    name mismatch, because I'm not using Trust Server Cert.
    So I load up my self-signed cert, and that works too.
    I am still confused as to why I'm not seeing the "cert fail" error when I have no cert loaded on the SQL Server. I am not using Force Encryption on the server at all, so wouldn't expect SQL Server to auto-create a cert when an Encrypt=yes request comes in,
    but apparently it does?
    I also ran into a problem with this:
    select c.session_id, c.encrypt_option, s.client_interface_name
    from sys.dm_exec_connections c
    join sys.sysprocesses s
      on c.session_id = s.session_id
    where s.dbid = db_id('MyDatabase')
    There is no s.client_interface_name, probably should be s.hostname. There's also no s.session_id. I thought maybe this should be s.sid, but then no rows ever come back. The c.session_id looks like 51 and 52, but the s.sid looks like a very long binary number,
    so these two fields cannot be joined. I don't know how to convert the sid's properly so that the join would work. Ah wait, I just found the s.spid column; the join works when that column is used (I assume that's correct anyhow).
    If I add a Thread.Sleep(30 seconds) to my C# program just before the connection is closed, this query shows me the session for the correct hostname has encrypt_option=TRUE.
    And I have to keep my fingers crossed that all the app I/O will still work properly after
    changing the driver. Probably a safe bet though.
    Think I'm ready to throw in the towel on getting the "cert fail/no SSL" error to appear.
    It does look like I am able to sufficiently show that the connection is encrypted when Encrypt=yes is used with the newer driver.
    Thank for all the help!
    -glenn-

  • Encrypt communication between SharePoint Web App and SSRS

    Hi
    I have SharePoint 2010 in multi server farm. The SharePoint web app has SSL enabled. The Reporting Server (SSRS) is http URL.
    So when the Report Viewer web part is used, the communication between SharePoint web server and SharePoint Reporting Server is unsecured. The existing SSL has hard coded hostnames and for business reasons we prefer not to modify it.
    Does anyone know how can I make that communication secured? Do I need to apply new SSL for SP Reporting Services? Is there any other option?

    This should get you off and running on SSL
    http://technet.microsoft.com/en-us/library/ms345223(SQL.100).aspx
    and if you haven't go SQL on SSL - ->
    http://technet.microsoft.com/en-us/library/ms189067(v=sql.100).aspx
    Stacy Anothersharepointblog.blogspot.com

  • Apache / JRUN setting up trust between two app servers

    Hi,
    I have two applications running on Apache web server and JRUN app server.
    How can i setup a trust domain between the two jrun app servers so that the user doesnt have to enter authentication credentials in both the servers when forwarded from app server 1 to app server 2?
    Thanks in advance

    I researched that we can do a "fake" authentication by using cookies. Has anyone does this before? Can somebody guide me on this?

  • Communicating between Air apps on local network?

    I am trying to build an AIR application that allows communication on a local network only.  Can I use the Local Connection to achieve this or is that only to communicate between apps on a single machine.  The functionality I am trying to achieve is simple check in/out app to let users know when someone is already working in a folder.   I already have the functionality built for this, I just need to be able to broadcast events to another AIR app on a local network.  Can anyone help or shot this down?  Thanks in advance.

    You are right: you can only use LocalConnection for communication between AIR applications (and SWF content in browsers) on a single machine.
    You may want to build a server application that the other AIR applications communicate with via a socket connection.

  • Communication between Edge and Transport servers in Exchange 2010

    hi,
    Its a strange communication error that I'm having here, though there are no service outages observed till now.
    When I try to test-servicehealth from any HUB server to any Edge server, it always says some error (refer the error below), but the services are all running perfectly fine. even restarting of RPC service and WMI service not helped either.
    likewise when I run get-exchangeserver -server <edgeserver> | fl name,*exchangeadminversion*, this result shows exchange version is 14.2, but the actual version of Edge server is 14.3 (SP3 with RU8. 
    This means the communication between my Edge server to other exchange server having some issues? or is it a conman behavior that i no need to worry?
    Error message:
    Couldn't get information about the Exchange services using Windows Management Instrumentation (WMI) due to error: WMI e
    xception occurred on server 'Edgeserver.domain.com': The RPC server is unavailable. (Exception from HRESULT: 0x800706B
    A)
        + CategoryInfo          : ReadError: (:) [Test-ServiceHealth], ServiceHealthWmiFailureException
        + FullyQualifiedErrorId : EBBF3409,Microsoft.Exchange.Monitoring.TestServiceHealth

    I think I got an answer for this question.
    The version number displayed is the one that was written to Active Directory at the time the Edge subscription was created. Because EdgeSync is a one way process, the version number does not update as you update the Edge Transport server to newer versions.
    If you want the version number to reflect the current value, recreate the Edge subscription

  • JNDI, EARs and managed servers

    I have an EAR file containing a WAR and two EJB JAR files. When I deploy this EAR
    onto a server (admin server), assign a target to the 3 modules and run, evertying
    is fine.
    I now have a scenario where I have added a managed server (so there are two targets
    to pick from). I deploy to the admin server as before but I change the target
    for the Web module to the new server. This is a typical deployment scenario where
    the web container runs on a different server (perhaps in a DMZ) to the EJB container.
    Now when I try and run the web app, the servlet fails with a naming exception
    - it can't find the EJB in the JNDI tree. Sure enough when I go to the console
    and look, the EJBs are only in the JNDI tree on the first server (those they are
    targeted to). So the servlet is quite right to complain.
    Is then JNDI tree not shared between managed servers? Shouldn't the EJBs be seen
    even though they are on separate servers?
    If I make the new server a target on the EJBs then it is obviously resolved but
    I don't want these remote EJBs on my Web Application server. These are not, and
    shouldn't be, clustered servers.
    How do I get around this? Do I have to specify the URL_PREFIX of the first server
    in my InitialContext properties? This is not very good if I want to move my EJBs
    to a different target, I would then have to change the URL_PREFIX again.
    I'm using WLS 6.1 sp1

    I think renaming them in the config.xml IS the easy way. You cannot do it through the console. Truthfully, that is a planning step and you should probably have the correct names before building in order to avoid other issues. Might be easier to just recreate the managed servers.

  • SharePoint Foundation 2013 - Search Configuration Issue - 2 App Servers and 2 Front-End Servers

    Hi, 
    We have a SharePoint Foundation 2013 with SP1 Environment. 
    In that, we have 2 Front-End Servers and 2 App Servers. In the Front-End Servers, the Search Service is stopped and is in Disabled state and in the 2 App Servers in One App Server, Search is Online and in another Search is Starting but goes to Stopped sooon
    after.
    Originally, we had only 1 App Server and we were running our Search Service and Search Service Application in that. Now since the index location became full and we were unable to increase the drive there, we added one more App Server and now the issue is
    Search is not properly getting configured in either of these App servers. What we want to do is run Search only in the new App Server, because we have a lot of storage space for Index locations here, but in the older App Server, not run Search at all.  We
    tried keeping the Search Service disabled and ran the below PowerShell Scripts, but none of the ones are working. These scripts are creating the Search Service Application, but the error of "Admin Component is not Online", "Could not connect
    to the machine hosting SharePoint 2013 admin component" is coming up. 
    http://www.funwithsharepoint.com/provision-search-for-sharepoint-foundation-2013-using-powershell-with-clean-db-names/
    http://blog.falchionconsulting.com/index.php/2013/02/provisioning-search-on-sharepoint-2013-foundation-using-powershell/
    http://blog.ciaops.com/2012/12/search-service-on-foundation-2013.html
    Can I get some help please?
    Karthick S

    Hi Karthick,
    For your issue, could you provide the
    detail error message of ULS log  to determine the exact cause of the error?
    For SharePoint 2013, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    For troubleshooting your issue,  you can try to run the SharePoint Products Configuration Wizard on your WFE servers and run the script for configuring the search service on SharePoint
    Foundation:
    [string]$farmAcct = "DOMAIN\service_Account"
    [string]$serviceAppName = "Search Service Application"
    Function WriteLine
    Write-Host -ForegroundColor White "--------------------------------------------------------------"
    Function ActivateAndConfigureSearchService
    Try
    # Based on this script : http://blog.falchionconsulting.com/index.php/2013/02/provisioning-search-on-sharepoint-2013-foundation-using-powershell/
    Write-Host -ForegroundColor White " --> Configure the SharePoint Foundation Search Service -", $env:computername
    Start-SPEnterpriseSearchServiceInstance $env:computername
    Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $env:computername
    $appPool = Get-SPManagedAccount -Identity $farmAcct
    New-SPServiceApplicationPool -Name SeachApplication_AppPool -Account $appPool -Verbose
    $saAppPool = Get-SPServiceApplicationPool -Identity SeachApplication_AppPool
    $svcPool = $saAppPool
    $adminPool = $saAppPool
    $searchServiceInstance = Get-SPEnterpriseSearchServiceInstance $env:computername
    $searchService = $searchServiceInstance.Service
    $bindings = @("InvokeMethod", "NonPublic", "Instance")
    $types = @([string],
    [Type],
    [Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool],
    [Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool])
    $values = @($serviceAppName,
    [Microsoft.Office.Server.Search.Administration.SearchServiceApplication],
    [Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool]$svcPool,
    [Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool]$adminPool)
    $methodInfo = $searchService.GetType().GetMethod("CreateApplicationWithDefaultTopology", $bindings, $null, $types, $null)
    $searchServiceApp = $methodInfo.Invoke($searchService, $values)
    $searchProxy = New-SPEnterpriseSearchServiceApplicationProxy -Name "$serviceAppName - Proxy" -SearchApplication $searchServiceApp
    $searchServiceApp.Provision()
    catch [system.exception]
    Write-Host -ForegroundColor Yellow " ->> Activate And Configure Search Service caught a system exception"
    Write-Host -ForegroundColor Red "Exception Message:", $_.Exception.ToString()
    finally
    WriteLine
    ActivateAndConfigureSearchService
    Reference:
    https://sharepointpsscripts.codeplex.com/releases/view/112556
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • How do I move a project from one library to a different existing library in Aperture 3.2.3?

    How do I move a project from one library to a different existing library in Aperture 3.2.3?

  • Stretching Table with IE8 compatibility view

    Hi, I'm using ADF 11.1.1.5, Internet Explorer 8 with compatibility mode and IE8 Standards for document mode. I can't stretch a table, the column headers don't align with content cells. Is there any known issue about this? I have to enable the compati

  • Wifi headphones connection to tv

    I hae successfully charged and connected a pair of sony wifi headphones to an LG flat screen TV. Connected the cable to the headphone jack. Turned up the volume on the tv, but there is no volume generated from the headphones. I suspect I need to turn

  • Where's the Snippets

    Dreamweaver has always saved the snippets that you make in an undisclosed location. When I reload the system or move to another machine, I lose them all. I would be great if there was a way to just save a copy in Dreamweaver like you can save color p

  • Creative Cloud Site Down Since Yesterday

    I've been trying to access this area: https://creative.adobe.com/join/team_offer After putting in my userid and password, it either just sits there, shows a blank page, or an error page. Tried several different browsers too, same result. What's wrong