Thin GUI client possible?
I'm new to RMI but I've spent the better part of the day trying to figure it out.
I've been assigned the task of modifying existing code that uses a fat client to access an XML database running on a server.
The client has a Swing interface that dynamically displays different panes depending on menu selections. My question is:
Is it possible to put all those panes on the server, and use RMI to get them when required, so that it is not necessary for each client to have their own copy? If so, can anyone offer me some hints on how to do this? Can I have a method in my client like:
private ??? switchPanel(string panelname)
and get the server to send me a new Panel to display?
If anyone understands what I'm talking about, I'd appreciate some help! Thanks!
No -- you cannot put the panes on the server and pass them back.
However, you can pass the data that fills the panes through RMI.
Create a class the implements Serializable with the Strings, int, long, etc fields needed on each pane.
When the Client wants info, pass the request to the Server. The Server fills in the fields for this class and returns the class to the Client. The Client then populates the pane.
Similar Messages
-
Calling SAP GUI Client from a Java Webdynpro app.
Hello experts,
We would like to call the SAP GUI client from a java WebDynpro application running without portal or ITS. Can it be done by having a web link, with mime registration in internet explorer to kick off the SAP GUI ? (similar behavior with a SAP favorite link saved on the desktop).
many Thanks.Hi,
Webdynpro possibilities:
1. You can try to use LinkToUrl.
with reference to file://<exefile> or your weblink with the mime type (possibly some java coding can be required; I can try to help).
2. other option is to use IFrame and you can use either href to your exe or weblink
Web Explorers:
1. IE: It should work. if you point to exe file popup window will be displayed asking for action (run, save, cance).
2. Firefox: the only way I know to make it work is to modify nsHelperAppDlg.js file (if you need Firefox I can tell you how to modify the file).
Kind Regards, Jack -
GUI Client for Oracle 8.1.5 on R.H. Linux!
Hello all,
I have had Oracle 8.1.5 on my Red hat Linux 6.2 server for a while now. Everything works great but I would like to know if this version of Oracle comes with a GUI client that will allow me to view tables, make changes, drop tables and such through (basically a GUI administrative tool) GUI interface as opposed to the regular command line I have been using.
If there isnt one, anyone know of a free third party software that will enable me do these tasks with a GUI client.
Thanks, All!I have such a thing it is called Orasoft.
It is some kind of GPL software that is easy to compile and works like a charm (make sure you have enough ram).
I don't know where I got it but I'm sure you can find it it in a search engine. -
Cannot connect a Java GUI client to an EJB
I am having problems trying to make a Java GUI client connect to an EJB. I am using JRun4.
At first, I tried making the Java GUI client a part of the enterprise application that I am building (of which the EJB is a part of). I included the client as a Java module in the application.xml of the enterprise application.
However, when I try to start the server, containing this application, I get an error saying:
Application authentication required. Incorrect method call.
Now when I try to execute the application from the console, it works fine except when it comes to the part when it has to connect to the EJB. At this point I get an java.lang.reflect.UndeclaredThrowableException. Here's the stack trace:
java.lang.reflect.UndeclaredThrowableException
at $Proxy1.create(Unknown Source)
at mds.Caller.actionPerformed(Caller.java:135)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: jrun.ejb.invocation.ContainerNotFoundException: The EJB container for boss-ejb#Boss could not be found.
at jrun.ejb.invocation.AbstractInvocationProxy.findContainer(AbstractInvocationProxy.java:58)
at jrun.ejb.invocation.LocalInvocationProxyImpl.invoke(LocalInvocationProxyImpl.java:53)
at jrun.ejb.invocation.ClientInvocationHandlerImpl.invoke(ClientInvocationHandlerImpl.java:198)
... 25 more
Since the bean is local, I am using a local reference to the bean in the lookup in the code of the client:
Object o = context.lookup("local/BeanTest")
I tried to use:
Object o = context.lookup("java:comp/env/ejb/BeanTest")
and added an ejb-local-ref in the application-client.xml file of the client. But when I try executing the client in this case, I get an error saying:
No such binding: ejb
I wish someone can help me out with this. My main aim is to get the app client talk to the EJB. Thanks a lot in advance.
SohamI am not sure of a tool to view the JNDI tree. I have one in Weblogic console. But you can check the JNDI names with a small sample code.
import java.util.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
public class TestEnvironment {
public static void main(String[] args) {
Context context = null;
Object object = null;
// Hashtable for environment properties.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
try {
context = new InitialContext(env);
NamingEnumeration enum = context.listBindings("");
while (enum.hasMore()) {
Binding binding = (Binding) enum.next();
System.out.println("Name: " + binding.getName());
System.out.println("Type: " + binding.getClassName());
System.out.println("Value: " + binding.getObject());
} catch (Exception exception) {
exception.printStackTrace();
}Hope this helps. -
Evaluating kodo for a thin rich client
Hi
We're evaluating our options for persistence on a project. We need a thin
rich client - thin in terms of logic/smarts and rich in terms of
UI/usability (swing/swt etc. not html). Before spending time to build a
prototype, we have some questions.
1. When using the remote persistence manager, how easy/hard is it to
traverse relationships i.e. should the traversal be bounded by a
transaction? We want to avoid transactions on the client side.
2. We'll be looking to use horizontal mapping for most of our persistence
capable objects.
3. What are the issues to look out for when using attach/detach over a
remote pm
Thanks
Srini1. When using the remote persistence manager, how easy/hard is it to
traverse relationships i.e. should the traversal be bounded by a
transaction? We want to avoid transactions on the client side.Relation traversal is completely transparent. You don't need a transaction.
2. We'll be looking to use horizontal mapping for most of our persistence
capable objects.Why?
3. What are the issues to look out for when using attach/detach over a
remote pmIf you're using remote PMs, then why would you use attach/detach? There
are very few reasons that I can think of. Generally, you'd want to use
one feature or the other. Not both. -
Use of WebLogic in a thin hardware client environment?
We are currently evaluating the use of a thin hardware client (something like the Sun Microsystems Sun Ray 2FS - http://www.sun.com/sunray/sunray2fs/) for a new JEE development effort. I was wondering if anyone could share their experiences using WebLogic in this environment with either Solaris or Linux (i.e. problems, lessons learned, configuration, etc...).
Thank You,
--DanWe are currently evaluating the use of a thin hardware client (something like the Sun Microsystems Sun Ray 2FS - http://www.sun.com/sunray/sunray2fs/) for a new JEE development effort. I was wondering if anyone could share their experiences using WebLogic in this environment with either Solaris or Linux (i.e. problems, lessons learned, configuration, etc...).
Thank You,
--Dan -
Thin & Thick Client - Update UI on a data change in server.
Hello friends -
I need to develop a application. It has both Thin(Web) & Thick client(Swing/SWT). Both clients display some table information. Table information is collected from many different datasources.
Problem: How to update both Thin & Thick clients on a data updation. There might be 10K+ users accessing the server for this table information, either through Web browser or Java thick client (Swing/SWT). And every sec, data is updated in the database (there will be atleast 100 messages /sec updating the datasources). Web clients need to poll to get the update. And Thick clients need to be notified of data change by the server.
Is there any (open source) framework available to achieve this. I have some thoughts for this, but would like to know is there is any proven architecture available for this kind of problem.
Thanks.Those update rates are pretty low for a typical JMS system, so you should be fine with most decent JMS providers.
For the thing clients you could consider using Ajax to avoid unnecessary database polling by large numbers of clients...
http://activemq.org/Ajax
James
http://logicblaze.com/ -
Hi:
I wrote a GUI client for a EJB running on SJSAS7. It works fine. Now I would like to put some security on it. How do I let users login? Do I create a JAAS module or just set up the security restrictions on the EJB's methods?
SamThanks. This is important piece of the puzzle. I got some more question about this. On the server development guide says:
custom realms must extend com.sun.enterprise.security.auth.login.PasswordLoginModule class. This class extends javax.security.auth.spi.LoginModule. Custom realms must not extend the JAAS loginModule directly
Now here comes the question. The JAAS login module suppose to obtain the user's password and user name in login() Since you don't extend login module, how do you obtain user name and password? Does that mean the only way to pass user name and password to login module is by appclient script? Thanks
Sam -
Support of multiple GUI clients
Hi,
Currently, we have an application which partially supports multiple
GUI clients. When a GUI first launches, it will pop up a dialog box
to select "Read" or "Read/Write" access mode. Once "Read/Write"
is selected, others can only select "Read" mode until "Read/Write" mode is released. There is a timer to automatically release the mode, if "Read/Write" is holding up for too long.
Now., we have to fully support multiple clients. The "Read" and "Read/
Write" modes have to be removed. That means, mutliple clients can
send update requests at the same time. Does anyone have ideas how
to support multiple clients? Is there any "models" out there where
I can based on to support it?
Thanks,
PinMark, we came out with 8.1.7.4.0 precisely for the reasons you have stated. There is no longer a Windows NT Oracle Service For MTS per database. The logic to enlist Oracle connections in MTS transactions, and the logic to subsequently commit/abort these transactions is fully contained within the middle-tier dlls i.e. ORAMTS.DLL. This removes the single point-of-failure in pre 8.1.7.4.0 versions, and also makes the solution more scalable.
-
Please suggest best GUI client for Linux setup?
HI,
I need to setup OBIEE 11g on Linux. Please suggest best GUI client to connect to linux and setup OBIEE.
appreacite for your help.
Thanks
Jay.Hi Jay,
You can use Xming server for linux. I have downloaded Xming server 6.9.0.31. It worked well with Windows XP(32 bit) as well as Windows 7(32 bit). I have used it for Oracle HTTP Server installation and OBIEE 11g installation
After installing, to start Xming go to command prompt and start. This invokes the Xming application properly when compared to double click starting.Go to cmd. Go to location C:\Program Files\Xming Enter this
Xming.exe :0 -clipboard -multiwindow -ac.
Note: colon zero ended up in a smiley!
You will see Xming popup in your right side. Go to putty session and export your display with this command.
export DISPLAY=172.45.62.143:0.0
Replace the ip address with your system ip address. The above one is example.
Note: If your putty session is in client network, use the ip address that is in Ethernet: client server.
Test if display is exported properly with this clock command which gives a GUI popup of clock.
xclock &
Hope this helps.
Regards,
Amrutha.
Edited by: Amrutha Kalidindi on Jul 29, 2012 2:48 PM -
Installation of different versions of GUI clients on same machine
Hi All,
Is there any document about how to install different versions of MDM GUI clients on same Machine.
we have different version of MDM server in Sandbox and Developement environment. I know we can install different versions of GUI Clients by specifying different locations. But i am looking for some standard document / SAP note. Please if anyone has this information, it will be very helpful.
Thanks and Regards,
ShivHi Shiv,
You can find this information regarding different Version of GUI Clients on same machine from Standard SAP Installation Guide on Page 51
5.1 Maintaining Multiple Versions of MDM it tells that you can install multiple versions of MDM 5.5 on one host and switch between the versions.This may be useful, for example, when updating the patch level.
Please refer to SAP Installtion guide,
https://websmp201.sap-ag.de/~sapidb/011000358700001119842007E
Also Check SAP Note: 1283687
Best Regards,
Mandeep Saini -
I have a GUI Swing client that is communicating with a Server with Sockets.
Currently, when a message needs to be sent ( Socket.write ), I am just passing the message to my thread-safe sendMessage() method.
I have an application currently calling this from the Event Thread without issue, but I have heard that this could create a possible dead-lock, but I haven't been able to pinpoint the reasoning behind this.
What pitfalls occur if this method, which writes to the Socket's OutputStream directly, is called from the GUI Event Thread?
Thanks in Advance.Thank you all for the input.
I think what I will do is dispatch a new Thread to do the sendMessage if it is invoked from within the GUI Event Thread.
Which would be better? Create a new anonymous thread or use SwingUtilities.invokeLater ?
1)
void actionPerformed( ActionEvent e )
new Thread( new Runnable() { void run() { sendMessage(data); } } ).start();
}2)
void actionPerformed( ActionEvent e )
SwingUtilities.invokeLater( new Runnable() { void run() { sendMessage(data); } } );
} -
SAP CRM multiple clients possible
Hi,
We have a NetWeaver SAP CRM system (ABAP + JAVA) stack.
We run an internet webshop application on the JAVA stack connected to CRM ABAP stack, client 010. The CRM ABAP stack connects to SAP ERP.
Q1: Is it possible to add a new client 020 in the ABAP stack of the CRM system?
Q2: I don't understand in CRM the connection between the JAVA and ABAP stack. If I add a new ABAP client 020, do I need to copy the JAVA stack/client also?
Who can help me guiding in which direction I have to go?
Note: We want to connect a non-SAP system to client 020.
Overview:
ERP ABAP (client 010) --> CRM ABAP (client 010) --> CRM JAVA stack
non-SAP (legacy system) --> CRM ABAP (client 020) --> CRM JAVA stack
Q3: What are the problems (challenges) I can expect?Hi Rene,
I think it is not supporting multiple clients. Wait for some additional replies.
Regards,
Ravindra -
BI 7.0 more than 2 clients possible or not ?
Dear support,
I am basis person and i have installed BI 7.0 netweaver 2004s system , also business content 7.03 are done.I have given 001 client as BWMANDT field in RSADMINA table which is required for initial config. Now system is working fine for deveopers. Now i need to connect one more customer to this BI system.
And i need to provide access to them using different client apart from 001.
I wanted to know is it possible to work in more than one client in BW
If yes :---- should i add one more entry in rsadmina table , will RSA1 will work in that client too.......
Best Regards,
AjitRChetan,
I have 001 client set as BWMANDT filed in rsadmina . when i am trying to create new client it is allowing me to add entry but not allowing me login .
what could be the reason?
secondly if i am able to do client copy from 001 to new client
do i need to add this new client to rsadmina table along with 001
as i need both clients working as BW client. -
Is Asynchronous ABAP proxy client possible without XI ?
Hi there,
Does anyone of you know if it is possible to create an asynchronous ABAP proxy client, without XI, thus directly in a SAP ERP 60 ABAP ?
KarimHi Anton,
thanks for your answer, it confirmed what I was thinking (asynchronous not possible in that case).
Now this leads me to a second question:
I would like to implement the scenario "acknowledge only and receive full answer later".
As you indicate: "...additionally to your webservice client you have to provide a webservice, which the receiver calls once it completes your request..."
In order to do this, I must practice as follows:
The service I call is using the WS-Addressing specifications.
Therefore, the information regarding the webservice that will be called when the request is completed should be sent as a special SOAP WS-addressing parameter, that should be indicated in the header of the SOAP Message, here is an example:
(001) <S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
(002) <S:Header>
(003) <wsa:MessageID>
(004) uuid:6B29FC40-CA47-1067-B31D-00DD010662DA
(005) </wsa:MessageID>
(006) <wsa:ReplyTo>
(007) <wsa:Address>http://business456.example/client1</wsa:Address>
(008) </wsa:ReplyTo>
(009) <wsa:To>http://fabrikam123.example/Purchasing</wsa:To>
(010) <wsa:Action>http://fabrikam123.example/SubmitPO</wsa:Action>
(011) </S:Header>
(012) <S:Body>
(013) ...
(014) </S:Body>
(015) </S:Envelope>
You can see that the WS-A specific part is in the header of the SOAP Message, not in the body, so not covered by the WSDL.
Question: Is it possible to include this in the header of the SOAP Message generated by the ABAP proxy client ???
Maybe you are looking for
-
Removing non printable characters from an excel file using powershell
Hello, anyone know how to remove non printable characters from an excel file using powershell? thanks, jose.
-
Tracking Transports for confi/dev overwritings in sap srm system
Hi, could anyone please suggest the best way to track and identify any code/config overwritings due to any new change being transported into the client under a new transport? in m previous organization we had a custom developed tool for identifying s
-
It happened the first time I opened iPhoto on my computer. I really need to sync photos from my iPod and iPhone to my computer but I can't without iPhoto. Thanks for your help.
-
Slow Broadband after phone line fault rectified
Joined BT Broadband Option 1 on 15/02/11, all was well with linespeed up to 6mbs while stabilising, On the 16/02/11 I reported a Phone fault (Broadband reverted to 135kbps) Phone fault was rectified on 18/02/11 and was told it would be 3 days before
-
Bt server settings - heelllllllllllpppppppppppp!!...
I have had a Samsung Galaxy Ace for a few days. In that time I have spent ages on BT site and my email site checking and rechecking incoming and outgoing server details - I have telephoned my internet provider - no help - and I finally found this