Clients and J2EE Server

I am not shure, I thought that you don't hav to have a j2ee server installed for every client who wants to send and receive messages with the Help of JMS, but in the JMS tutorial stands on page that 57 that "JMS client programms can communilate with each other when they are running on different systems in a network. These systems must be visible to each other by name and must both running the j2ee server"
I wantet to make an Applet wich is a JMS Client, who communikates with the server, is this possible? And if yes, does every person who wants to use the applet have to have installed the j2ee server?

in this case, j2eeserver is used for the jndi lookup, not the cloudscape, jsp, webserver, and all that other crup.
there is no reason not to connect to a remote jndi listener, rather than going thru a local listener which passes you off to the remote one.
i have avoided jndi recently, and can help in websphere MQ, otherwise i am not sure.
i would like also like to know.

Similar Messages

  • Anybody explain ABAP client and J2ee engine?

    There are client 000,001,066.
    But for J2ee Engine the client is in a different way.
    What is the relationship of User data between ABAP client and J2ee Engine?
    and tell me some inside about client copy? I have read some docs of help online, I 'd like more tech fact.

    Hello Shen,
    First ground rule: ABAP stack can support mutiple clients while JAVA stack supports only one client at one given time. In terms of user master data you can have 1:1 relationship between ABAP client and corresponding J2EE client provided there is connection between ABAP and UME which normally is there as it configured during installation. So if a user exists in client X in ABAP you can also view it in client X of J2EE.
    Regarding client copy what type of client copy are you asking about?
    Regards.
    Ruchit.

  • ABAP Client and J2EE client mismatch

    Hello,
    we detected mismatch between  default ABAP login client and J2EE client.
    Now we need to change J2EE client to default ABAP client.
    Its ABAP + JAVA installation and diff. occured after client copy.
    Can you please let us know where we need to change all setting for j2ee engine like default client for UME, sld etc.
    Best Regards,
    Tushar

    Hello. By default JAVA used the 001 client in ABAP+JAVA installation,  be cautious with change it.
    you can chage it through Config tool :
    http://help.sap.com/saphelp_nw70/helpdata/EN/0b/50ad3e1d1edc61e10000000a114084/frameset.htm
    or from UME --> configuration --> ABAP system. You need to read about change datasources :
    http://help.sap.com/saphelp_nw70/helpdata/EN/7e/a2d475e5384335a2b1b2d80e1a3a20/frameset.htm
    and about SAPJSF user.
    http://help.sap.com/saphelp_nw70/helpdata/EN/db/8b9b801df84aaaa76bdbcbc0b9725f/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/03e11edc6a6e99e10000000a11466f/content.htm
    Regards.

  • What is their difference betwwen  Sun ONE Application Server  and J2EE serv

    Sun ONE Application Server is Sun implementation of J2EE server.
    But it seems even no Sun ONE Application Server, use J2EE SDK command
    j2ee -verbose
    we still can launch an Application Server that support EJB, JSP....
    what is their difference betwwen Sun ONE Application Server and J2EE server provided by J2EE SDK ?
    Thanks,

    Sun ONE generally refers to the Sun ONE Application Server version 7.x. This is a J2EE 1.3 compliant application server from Sun. Sun also released a Reference Implementation version (RI) as a requirement of the J2ee 1.3 spec. This is the J2EE server you are refering too. The Sun ONE Application Server 7 is a more robust production ready App Server.
    Going forward, Sun combined the 2 seperate groups to include just 1 release. The J2EE 1.4 Reference Implementation is the Sun Java System Application Server Platform Edition version 8. SJS AS 8 PE is both free and production ready. Other version will include High Availability, Managing and Monitoring features.
    -Jeff

  • Difference between oracle client and oracle server?

    Hi,
    could any one please tell me the difference between these things?
    1.)oracle client and oracle server
    2.) installtion of oracle client and oracle server
    Thanks in advance.

    Take a look at the general client - server computing model, described e.g. in this wiki.
    edit:
    corrected bad link
    Message was edited by:
    orafad

  • Error in the Socket Communication between Java Client and VC++ Server

    In my application, using Java Client to do socket bi-communication with VC++ Server, which is done by somebody else.
    The error is after the application properly running one or two days, the VC++ Server cannot receive the messages passed by java Client, but at Java client, everything is the same, although using CheckError() after every print(), there is no exception thrown.
    The JVM is jdk1.3.1, platform is Win2k Server.
    The outputstream is PrintWriter().
    Please help me to settle down this problem. Thanks in advance.

    I read some thread in the forum, and found somebody had the similar problem with me. Just want to know how to settle this problem.
    In the client/server program. Client is a JAVA program and Server a
    VC++ program. The connection works, and the problem appears after some time. The Client sends a lots of requests to Serverm, the server seems receive nothing. But at the same time, the server is able to send messages to Client. The Client also can get the messages and handle them. Don't understand why there this problem and why it appears when it wants.
    The client is a Win2k platorm with JDK1.3.1 and the server is also a Win2K platform with VC++ 6.0.
    In the Client, using:
    inputFromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    outputToServer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);
    Hope can get your help.

  • Error while starting NW server and j2ee server is getting stopped.

    Hi,
    I am working in NW04s. It contains ABAP sp5 and java sp9 versions. The server was working find till ten days back. After the gap of ten days, when i started to work on this SAP system, i was not able to start the j2ee server. During the startup of the server itself, j2ee server is getting stopped and dispatcher also. Following is the error bunch I got in trace. If any one has any idea about this, please reply this soon.
    [EXCEPTION]
    #1#com.sap.engine.frame.ServiceException: <Localization failed: ResourceBundle='com.sap.engine.frame.KernelResourceBundle', ID='UME initialization failed.', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key UME initialization failed.
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:372)
         at com.sap.engine.frame.ApplicationFrameAdaptor.start(ApplicationFrameAdaptor.java:31)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    Caused by: com.sap.security.core.persistence.datasource.PersistenceException: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=garden SYSNR=00 GWHOST=garden GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       connection to partner '15.70.176.191:sapgw00' broken
    TIME        Mon Nov 13 12:45:30 2006
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -6
    MODULE      nixxi.cpp
    LINE        4207
    DETAIL      NiIRead
    SYSTEM CALL recv
    ERRNO       10054
    ERRNO TEXT  WSAECONNRESET: Connection reset by peer
    COUNTER     4
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.newPersistenceException(R3PersistenceBase.java:178)
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.init(R3PersistenceBase.java:446)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.<init>(PrincipalDatabagFactoryInstance.java:356)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.newInstance(PrincipalDatabagFactory.java:156)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:109)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:56)
         at com.sap.security.core.InternalUMFactory.initializeUME(InternalUMFactory.java:266)
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:279)
         ... 6 more
    #1.5#000E7FFD8B5D001D00000011000008540004221BAAB8047C#1163402130490#com.sap.engine.core.Framework##com.sap.engine.core.Framework#######SAPEngine_System_Thread[impl:5]_54##0#0#Fatal#1#/System/Server#Plain###Critical shutdown was invoked. Reason is: Core service com.sap.security.core.ume.service failed. J2EE Engine cannot be started.#

    > ceException: Connect to SAP gateway failed
    > Connect_PM  TYPE=A ASHOST=garden SYSNR=00
    > GWHOST=garden GWSERV=sapgw00 PCS=1
    >
    > LOCATION    CPIC (TCP/IP) on local host with Unicode
    > ERROR       connection to partner
    > '15.70.176.191:sapgw00' broken
    You can ping this machine from your portal-nodes and you can connect to the port "sapgw00" (should be 3300) ?
    > ##0#0#Fatal#1#/System/Server#Plain###Critical
    > shutdown was invoked. Reason is: Core service
    > com.sap.security.core.ume.service failed. J2EE Engine
    > cannot be started.#
    This is the reason why your j2ee-server stops - the portal can't connect to the ume. What did you configured as the ume - the portal database, a ldap-server or a r3-system ?
    Regards
    Norman

  • Need help:Urgent:MS SQL Server and J2EE Server

    Hello,
    i am developing simple bean managed persistence bean. i want to know how could i use microsoft SQL Server as my database with ejb's in J2EE. i don't want to use cloudscape rather i want to connect through jdbc bridge with sql server. can any body help me out ?
    i have developed DSN for my database with the name of DsnProduct and user name for DB is guest and password is guest123.
    so do i have to change configuration is my J2EE server . or put some additional code. so far i have added the following line in my implementation class
    private String dbName= "java:comp/env/jdbc/ProductDB";
    DataSource ds = (DataSource) ic.lookup(dbName);
    con = ds.getConnection("guest","guest123");
    moreover in server configuration i have added driver
    sun.jdbc.odbc.JdbcOdbcDriver
    and also provide the following JNDI Name
    jdbc/ProductDB
    and
    it's url is
    jdbc:odbc:DsnProduct
    i am thankfull for your support.
    [email protected]

    hi llturro,
    Thanks for answering my question. I have tried out what you suggested, but I still can't fix my problem. The following are the messages that display when I try to run my servlet. It seems that the DataSource, Connection and Statement are ok, however when it comes to the ResultSet the error message appear. What's wrong with my ResultSet coding ?
    ResultSet rs = stat.executeQuery("SELECT ISBN FROM BOOKSINFO WHERE ISBN='"+primarykey+"'");
    setEntityContext Method
    Find by primary key
    DataSource OK
    Connection OK
    Primary Key = 013-00-675721-9
    Statement OK
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    <<no stack trace available>>

  • Can i run UDP  client and UDP  server socket program in the same pc ?

    hi all.
    when i execute my UDP client socket program and UDP server socket program in the same pc ,
    It's will shown the error msg :
    "Address already in use: Cannot bind"
    but if i run UDP client socket program in the remote pc and UDP server socket program run in local pc , it's will success.
    anybody know what's going on ?
    any help will be appreciated !

    bobby92 wrote:
    i have use a specified port for UDP server side , and for client define the server port "DatagramSocket clientSocket= new DatagramSocket(Server_PORT);"Why? The port you provide here is not the target port. It's the local port you listen on. That's only necessary when you want other hosts to connect to you (i.e. when you're acting as a server).
    The server should be using that constructor, the client should not be specifying a port.
    so when i start the udp server code to listen in local pc , then when i start UDP client code in local pc ,i will get the error "Address already in use: Cannot bind"Because your client tries to bind to the same port that the server already bound to.

  • Socket Communication between java client and c++ server

    HI,
    In my project,I want to do the following:
    1.Sending datas from client to server.
    2.Getting the response from server to client.
    I written the client in java.but the server is in c++.
    Is it possible to communicate with the server using java codings itself?
    Im able to send the data from my java client to the server.
    but unable to get back the datas from server to client.
    Can anyone tell me how to do this?
    thanks a lot

    hi
    thanks for ur reply.
    I didnt get any error msg while getting the back the datas.
    Actually i divided my application into two parts.
    My application will act as both server and client.
    server ll get the browser request and send to the client and the client will send that data to the c++ server.
    Im able to do that.and unable to get the data from server.
    Didnt get any error.
    can u tell me how to make an application to act as both client and server.
    I think im wrong in that part.
    thanks a lot

  • Should i create a client and a server socket in a same application

    Greetings,
    In which situation sould i have a server socket ? and in which situation should i have a client socket ?and in which situation should i have both?
    I 'm making a app. who receives info (like alarms ) from a automation machine and also that same app. as a scheduler who send commands according to dates to the automation machine.
    Now the automation machine is programmed like a socket tcp/ip server who is always on and the app. is a client.
    Every time there's an alarm the machine sends me the info and i put it in a mysql database.
    Every time there's an event programmed the app. sends a string to the machine.
    The question is that i can't maintain that socket always connected, Sometimes disconnets.
    I was thinking of making the change of creating in both sides a server and a client, so that, for example, in the app. the client woul d handle the event msgs and the server would accecpt connections with alarms from the automaition machine.
    Since i'm a newbie in Java could somebody give me some tips, please?
    Thanks

    Thanks Peter....
    But i already do that....
    I have a thread who handles the connection management.
    If by some reaseon the connection is lost the thread reconnects it.
    My problem is that sometimes it reconnects every second, and i loose info provided by the automatian machine.
    The best thing to have it would be a socket listener, but Java does have any.
    Is there any API that does a socket listener?

  • CPA Cache and J2EE server issues

    Hi Experts,
    I am having a File to File scenario where the sender channel picks up  csv files ( around 3MB each). Once I finished the configuration of the scenario, the J2EE server started to restart continuously five times and stops with a out of memory error.
    After going through the defaultTrace.trc file in logviewer, this is the first error that I could see after starting the J2EE server.
    CPA Cache not updated with directory data, due to: Couldn't open Directory URL (http://pi-dev:50000/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.pid.pi-dev), due to: HTTP 503: Not Ready
    Source Name: com.sap.aii.service.cpa.impl.cache.CacheManager.I checked the RFC destination of INTEGRATION_DIRECTORY_HMI and also checked if PIDIRUSER and PIAFUSER are locked or not. But they are not locked.
    After the above error, the errors just build up probably because of the adapter framework not firing up. One of the error is:
    Failed to lookup object from JNDI for name localejbs/AFWListener within app level thread. Reason: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at localejbs, the whole lookup name is localejbs/AFWListener.
    Source: com.sap.aii.af.ra.ms.runtime.Resources
    I also increased the max thread count in the Application Thread Manager to 250 in the Config tool. I kept the heap sizes as posted above.
    Any help will be greatly appreciated.
    Regards

    Hey,
    >the J2EE server started to restart continuously five times and stops with a out of memory error.
    Strange,  Can you test with  less than 1 MB  file  and let us know the status, Is  SAP PI  & ECC  are installed in the same Server.
    Cheers
    Agasthuri

  • NFS problem between RedHat Client and Solaris Server

    Hi all, we are experiencing a problem between a RedHat client and a Solaris 10 server. For the purposes of this post, I'll call the Redhat client server A and the Solaris 10 server B.
    Server B is exporting a filesystem that server A is trying to mount. Server A can successfully mount the exported file system, however, strange things are happening. If I change to the exported mount point on server A and create a file, the file is owned by nobody:nobody, not the user that created the file.
    A look at the file on server B shows the file has the correct UID and GID (ie the UID & GID of server A).
    The fstab file on server A looks like this:
    serverB:/data /data nfs4 rsize=32768,wsize=32768,hard,nointr,rw,bg,actimeo=0,timeo=300,suid 0 0
    Does anyone have a explanation for this?
    NB: There is a firewall between server A and server B. A firewall rule is in place to allow traffic between the two servers on port 2049
    Stewart

    Hi
    If I change to the exported mount point on server A and create a file, the file is owned by nobody:nobody, not the user that created the file.On a NFS share, for security reasons, you normally dont have root provileges.
    A file createt as root user will be mapped to nobody:nobody.
    The behaviour you see is correct.
    If you want the file to be createt as root, you have to export the filesystem with -o ro,anon=0
    NFSv3 will be blocked by your firewall.
    Franco

  • Clarification about source and destination IPs for internal clients and Edge server

    I just wanted to get some clarification on the correct traffic flow between internal Lync clients and the Edge server.
    From all the diagrams I've looked at I was under the impression that if internal clients need to hit the Edge server to talk to external clients they should always do so through the Edge Internal interface which bridges to the Edge External interface and
    out to the internet.  Specifically port 3478 from the Edge AV External interface to the internal clients.
    We aren't seeing that in our environment.  When internal clients are talking to external clients we see the Edge AV External interface communicating directly with the internal client.  In fact we found this out because after the migration to Lync
    2013 external users couldn't created a AV connection to internal users on either the Lync servers.  We saw traffic on 3478 being dropped between the Edge AV External interface and the internal client.  Once we opened that port AV traffic worked.
    We never put this rule in until we introduced Lync 2013.  Lync 2010 didn't seem to require it.
    Is that the correct flow?

    I would also really love to know the outcome of this but it looks like the thread is marked as "Answered" and it is not so. 
    I've been working with a troublesome Lync deployment in which internal users are having issues sharing their desktop with external and federated users. After opening up all the 50000-59999 range for TCP/UDP on the A/V Edge external interface things are working
    much better, but we still see sporadic failures.
    It lead us to start digging into the network traffic. We see that UDP traffic on port 3478 is being routed back from the external client to the Edge A/V's external interface, inside of the DMZ's perimeter, then directly to the internal client on the internal
    network. It doesn't look like it's making a connection since the stream is so small, so I wonder if there is a design flaw in my topology?
    There are persistent static routes on the Edge server that use the internal interface to route internally directed traffic over the internal gateway. Tracert confirms the flow, but in wireshark traces, running during successful connections, UDP port 3478
    is still sending packets directly to the internal IP from Edge's A/V address. 
    We also see successfully connected sessions communicate on a different network route that we use to handle internet traffic rather than our Lync topology's route (the one defined for A/V traffic). The connection opens on ports in the 50000 range, but goes
    over a router that we have not configured for such traffic. Is that possible?
    Why is UDP traffic on 3478 trying to go directly to internal clients from external interface ?
    It sounds like it's happening elsewhere... Is this a legitimate issue to be diagnosing? Has it been observed and/or resolved by others?

  • BACK button difference between Weblogic and J2EE server

              Hi Everyone,
              I have a J2EE application implemented mainly with JSP and EJB, which can run on
              both J2EE and Weblogic Servers seperately. When running on either of them, the
              server acts as both a web and application server.
              It is my understanding that it first goes to the cache in the browser when you
              try to revisit the previous page (JSP files) by clicking the BACK button in the
              browser. If the page is there, it just displays that page from the cache. If not,
              it will go to the server to retrive (execute) that page.
              When I run my application over J2EE server and try to visit the previous page
              by using the BACK button in the browser, it does this way correctly. But when
              I run my
              application over Weblogic server, it always goes to the server and execute the
              JSP file again in the server, rather than simply retriving that page from the
              cache. If your JSP file is simply doing data retriving, that is fine. But if it
              is doing data inserting, it will insert your data again. This is not good.
              I know that the Weblogic server is mainly an application server. But I am not
              sure when it acts as a web server,
              why it works differently from J2EE which also can acts as both an pplication and
              a web server. Does anyone have any ideas or suggestions about this?
              Thanks a lot.
              -John
              

    I believe that the correct behaviour is to rerun the .jsp page unless the
              user specifically sets the header to allow the browser to cache it. That
              being said... You should never make a web application that can be broken by
              the user hitting "reload" or the browser automatically retrying. An
              application like this is very fragile and will probably break in practice.
              I suggest that you either make all your pages idempotent or you keep track
              through a hidden form field a transaction id and only allow the execution of
              any particular transaction once. As far as WebLogic not being a good web
              server, I would say that with 6.1 you get most of the management advantages
              of using a separate web server and also most of the static file performance
              you will find with apache or IIS.
              Sam
              "John Wang" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi Bruno,
              >
              > Thank you for your prompt reply.
              >
              > I think I might not explain my problem clearly. My application
              > is in developing stage now. So we are just working on a single
              > serevr which can acts as both a web and an application server.
              > Later we are going to distribute our application into a web and an
              application
              > seperately.
              >
              > As you said, it seems that my problem is because the weblogic server is
              mainly
              > an application server and does not act as a web server very well. So if I
              distribute
              > my application into both a web and an application servers, it should be
              fine,
              > since it is ok when I run it over the J2EE server. Is this correct?
              >
              > In other words, I can say that the J2EE server is configured better in its
              role
              > as a web server than the weblogic server, isn't it?
              >
              > In addition, all my JSP files are only dealing with catching
              > data from user input and displaying data. Data inserting is done
              > by EJB and JavaBeans through the JSP files. Because those JavaBeans in the
              JSP
              > files, each time when I use the BACK button, it will invoke those
              JavaBeans and
              > EJBs through the JSP files and do things like inserting in the background.
              That
              > is what I mean in my previous message.
              >
              > Thanks.
              >
              > -John
              >
              > "Bruno" <[email protected]> wrote:
              > >
              > >Hi John,
              > >
              > >You should use a real Web Server on the front side of your application.
              > >Weblogic
              > >is mainly an application server that has to be used in middle tier. But
              > >it's not
              > >a good Web Server. Like almost all J2EE application. You should use a
              > >separate
              > >web server like apache, optimised to serve static file. Furthemore, this
              > >approach
              > >will enable you to physically separate the two servers for a better
              security.
              > >Anyway, usually jsp files are dynamic files and are not intended to be
              > >totally
              > >cached (except in special cases). I think you should just use JSP to
              > >display data.
              > >If you want to do data inserting, you should use EJB or JavaBeans for
              > >that rather
              > >than JSP.
              > >
              > >Hope it helps
              > >
              > >Regards
              > >
              > >"John Wang" <[email protected]> wrote:
              > >>
              > >>Hi Everyone,
              > >>
              > >>I have a J2EE application implemented mainly with JSP and EJB, which
              > >>can run on
              > >>both J2EE and Weblogic Servers seperately. When running on either of
              > >>them, the
              > >>server acts as both a web and application server.
              > >>
              > >>It is my understanding that it first goes to the cache in the browser
              > >>when you
              > >>try to revisit the previous page (JSP files) by clicking the BACK button
              > >>in the
              > >>browser. If the page is there, it just displays that page from the
              cache.
              > >>If not,
              > >>it will go to the server to retrive (execute) that page.
              > >>
              > >>When I run my application over J2EE server and try to visit the previous
              > >>page
              > >>by using the BACK button in the browser, it does this way correctly.
              > >>But when
              > >>I run my
              > >>application over Weblogic server, it always goes to the server and
              execute
              > >>the
              > >>JSP file again in the server, rather than simply retriving that page
              > >>from the
              > >>cache. If your JSP file is simply doing data retriving, that is fine.
              > >>But if it
              > >>is doing data inserting, it will insert your data again. This is not
              > >>good.
              > >>
              > >>I know that the Weblogic server is mainly an application server. But
              > >>I am not
              > >>sure when it acts as a web server,
              > >>why it works differently from J2EE which also can acts as both an
              pplication
              > >>and
              > >>a web server. Does anyone have any ideas or suggestions about this?
              > >>
              > >>Thanks a lot.
              > >>
              > >>-John
              > >>
              > >
              >
              

Maybe you are looking for