Displaying multiple messages in a single window
Hi,
i have several messages in an internal table and i need to display all those with in the same dialog box/window. is there any function module to do that.
Regards,
ravi.
Hi,
You can use FM 'SLS_MISC_SHOW_MESSAGE_TAB'.
DATA: it_messages LIKE sls_msgs OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
CLEAR it_messages.
MOVE '001' TO it_messages-num.
MOVE 'message001' TO it_messages-msg.
APPEND it_messages.
CLEAR it_messages.
MOVE '002' TO it_messages-num.
MOVE 'message002' TO it_messages-msg.
APPEND it_messages.
CLEAR it_messages.
MOVE '003' TO it_messages-num.
MOVE 'message003' TO it_messages-msg.
APPEND it_messages.
CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB'
TABLES
p_messages = it_messages
EXCEPTIONS
NO_MESSAGES_PROVIDED = 1
OTHERS = 2
Similar Messages
-
Displaying multiple messages in a single view
Hi,
I am trying to display two diffrent messages in same view. for this i am using two different message area UI elements. When I use the code wizard to generate the message,same message is being displayed in two message areas. But i do not want that functionality.
If error1 happens, I want the message1 to be displayed in Message area1.
if error2 happens, I want the message2 to be displayed in Message area2.
anyhelp would be appreciated.
thanks,Hi,
In the method you need to write the code for both the errors,
get message manager from code wizard and call the method report_error_message.
For both errors write the code below:
*get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
* report message
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Message1 '. ("Write the first message")
Hope this solves the issue, Let me know if any queries.
Regards,
Rajani -
New to Graphics, trying to display array output in a single window
I am trying to figure out how to use the GUI components of JAVA.
What I am trying to do is take my packaged array output and list it in a single window. All that ever prints is last array data set. The last keeps overwritting the previous. How do I keep the previous data shown while listing the next in the array?
Below are my three classes. The Frame Class is the class containing the display method. It is called near the bottom of the Product Class.
Product.java
// Inventory Program Part 4
/* This program will store multiple entries
for office supplies, give the inventory value,
sort the data by Product Name,
and output the results using a GUI */
import javax.swing.text.JTextComponent;
import javax.swing.JLabel;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JOptionPane; //Uses class JOptionPane
import java.util.Scanner; //Uses class Scanner
import java.util.Arrays; //Uses class Arrays
public class Product
private String productBrand[]; // Declares the array
public void setProductBrand( String brand[] ) // Declare setProductBrand method
productBrand = brand; // stores the productbrand
} // End setProductBrand method
public String getProductBrand( int counter ) // Declares getProductBrand method
return productBrand[ counter ]; // Returns data using counter to define the element
} // End method getProductBrand
public double restockingFee( double value ) // Declares restocking Fee method
double fee = 0; // Declares variable fee
fee = value * 0.05; // Calculates the sum of values
return fee; // Returns the restocking fee
} // End method restockingFee
public String inventoryValue( double value[] , int number, String name[] ) // Declares inventoryValue method
OfficeSupplies myOfficeSupplies = new OfficeSupplies(); //Creates OfficeSupplies Object
Product myProduct = new Product();
double total = 0; // Declares variable total
for ( int counter = 0; counter < number ; counter++ )
total += ( value[ counter ] + myProduct.restockingFee( value[ counter ] ) ); // Calculates the sum of values
return String.format( "%s$%.2f", "Total Inventory Value: " , total ); // Returns the total value
} // End method inventoryValue
// main method begins execution
public static void main( String args[] )
Scanner input = new Scanner( System.in ); //Creates Scanner object to input from command window
Product myProduct = new Product(); //Creates Product object
OfficeSupplies myOfficeSupplies = new OfficeSupplies(); //Creates OfficeSupplies Object
//Prompt for maxNumber using JOptionPane
String stringMaxNumber =
JOptionPane.showInputDialog( "Enter the number of products you wish to enter" );
int maxNumber = Integer.parseInt( stringMaxNumber );
String prodName[] = new String[ maxNumber ]; // Declares prodName array
int numberUnits[] = new int[ maxNumber ]; // Declares maxNumber array
float unitPrice[] = new float[ maxNumber ]; // Declares unitPrice array
double value[] = new double[ maxNumber ]; // Declares value array
String brand[] = new String [ maxNumber ]; // Declares brand array
String stringNumberUnits[] = new String [ maxNumber]; // Declares array
String stringUnitPrice[] = new String [ maxNumber ]; // Declares array
int productNumber[] = new int[ maxNumber ]; // Declares array
for ( int counter = 0; counter < maxNumber; counter++ ) // For loop for the number of products to enter
productNumber[ counter ] = counter;
myOfficeSupplies.setProductNumber( productNumber ); // Sends the Product name to method setProductNumber
//Prompt for product name using JOptionPane
prodName[ counter ] =
JOptionPane.showInputDialog( "Enter the Product Name" );
myOfficeSupplies.setProductName( prodName ); // Sends the Product name to method setProductName
//Prompt for brand name using JOptionPane
brand[ counter ] =
JOptionPane.showInputDialog( "Enter the Brand name of the Product" );
myProduct.setProductBrand( brand ); // Sends the Brand name to method setProductBrand
//Prompt for number of units using JOptionPane
stringNumberUnits[ counter ] =
JOptionPane.showInputDialog( "Enter the Number of Units" );
numberUnits[ counter ] = Integer.parseInt( stringNumberUnits[ counter ] );
myOfficeSupplies.setNumberUnits( numberUnits ); // Sends the Number Units to the method setNumberUnits
//Prompt for unit price using JOptionPane
stringUnitPrice[ counter ] =
JOptionPane.showInputDialog( "Enter the Unit Price" );
unitPrice[ counter ] = Float.parseFloat( stringUnitPrice[ counter ]);
myOfficeSupplies.setUnitPrice( unitPrice ); // Sends the Unit Price to the method setUnitPrice
value[ counter ] = numberUnits[ counter ] * unitPrice[ counter ]; // Calculates value for each item
myOfficeSupplies.setProductValue( value ); // Sends the product value to the method setProductValue
Arrays.sort( prodName, String.CASE_INSENSITIVE_ORDER ); // Calls method sort from Class Arrays
Frame myFrame = new Frame();
myFrame.displayData( myProduct, myOfficeSupplies, maxNumber );
// Outputs Total Inventory Value using a message dialog box
JOptionPane.showMessageDialog( null, myProduct.inventoryValue( value, maxNumber, prodName ),
"Total Inventory Value", JOptionPane.PLAIN_MESSAGE );
} // End method main
} // end class ProductOfficeSupplies.java ----> This is the data container
// Inventory Program Part 4
/* Stores the array values */
public class OfficeSupplies // Declaration for class Payroll
private int productNumber[];
public void setProductNumber( int number[] ) // Declare setProductNumber method
productNumber = number; // stores the product number
} // End setProductNumber method
public int getProductNumber( int counter ) // Declares getProductNumber method
return productNumber[ counter ];
} // End method getProductNumber
private String productName[];
public void setProductName( String name[] ) // Declare setProductName method
productName = name; // stores the Product name
} // End setProductName method
public String getProductName( int counter ) // Declares getProductName method
return productName[ counter ];
} // End method getProductName
private int numberUnits[];
public void setNumberUnits( int units[] ) // Declare setNumberUnits method
numberUnits = units; // stores the number of units
} // End setNumberUnits method
public int getNumberUnits( int counter ) // Declares getNumberUnits method
return numberUnits[ counter ];
} // End method getNumberUnits
private float unitPrice[];
public void setUnitPrice( float price[] ) // Declare setUnitPrice method
unitPrice = price; // stores the unit price
} // End setUnitPrice method
public float getUnitPrice( int counter ) // Declares getUnitPrice method
return unitPrice [ counter ];
} // End method getUnitPrice
private double productValue[];
public void setProductValue( double value[] ) // Declare setProductValue method
productValue = value; // stores the product value
} // End setProductValue method
public double getProductValue( int counter ) // Declares getProductValue method
return productValue[ counter ];
} // End method getProductValue
} // end class OfficeSuppliesFrame.java ------> Contains the display method
import java.awt.Color;
import javax.swing.text.JTextComponent;
import javax.swing.JLabel;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JOptionPane; //Uses class JOptionPane
public class Frame extends JFrame
public Frame() //Method declaration
super( "Products" );
} // end frame constructor
public void displayData( Product myProduct, OfficeSupplies myOfficeSupplies, int maxNumber )
//Here I attempted to use an array to output all of the array data in a single window
// JTextArea myTextArea[] = new JTextArea[ maxNumber ]; // Declares myTextArea array to display output
JTextArea myTextArea = new JTextArea(); // textarea to display output
// For loop to display data array in a single Window
for ( int counter = 0; counter < maxNumber; counter++ ) // Loop for displaying each product
// myTextArea[ counter ].setText( packageData( myProduct, myOfficeSupplies, counter ) + "\n" );
// add( myTextArea[ counter ] ); // add textarea to JFrame
myTextArea.setText( packageData( myProduct, myOfficeSupplies, counter ) + "\n" );
add( myTextArea ); // add textarea to JFrame
} // End For Loop
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
setSize( 450, maxNumber*400 ); // set frame size
setVisible( true ); // display frame
public String packageData( Product myProduct, OfficeSupplies myOfficeSupplies, int counter ) // Method for formatting output
return String.format( "%s: %d\n%s: %s\n%s: %s\n%s: %s\n%s: $%.2f\n%s: $%.2f\n%s: $%.2f\n%s: $%.2f",
"Product Number", myOfficeSupplies.getProductNumber( counter ),
"Product Name", myOfficeSupplies.getProductName( counter ),
"Product Brand",myProduct.getProductBrand( counter ),
"Number of Units in stock", myOfficeSupplies.getNumberUnits( counter ),
"Price per Unit", myOfficeSupplies.getUnitPrice( counter ),
"Total Value of Item in Stock is", myOfficeSupplies.getProductValue( counter ),
"Restock charge this product is", myProduct.restockingFee( myOfficeSupplies.getProductValue( counter ) ),
"Total Value of Inventory plus restocking fee", myOfficeSupplies.getProductValue( counter )+
myProduct.restockingFee( myOfficeSupplies.getProductValue( counter ) ) );
} // end method packageData
}Lets pretend that your assignment was to manage a list of employees of a store, and that each employee is identified by their name, position, and hourly wage. If you created a program along the lines of your current product program, I picture you creating three separate ArrayLists (or arrays), one for each variable, something like this:
import java.util.ArrayList;
public class MyEmployees1
private ArrayList<String> names = new ArrayList<String>();
private ArrayList<String> positions = new ArrayList<String>();
private ArrayList<Double> hourlyWages = new ArrayList<Double>();
public void add(String name, String position, double wage)
names.add(name);
positions.add( position);
hourlyWages.add(wage);
public void removed()
// TODO: I am nervous about trying to manage this!
//.......... more
}This program tries to manage three separate parallel arrays (arraylists actually). They are parallel because the 3rd item in the names list corresponds to the 3rd item in the positions list and also the hourlywages list. If I wanted to delete data, I'd have to be very careful to delete the correct item in all three lists. If I tried to sort one list, I'd have to sort the other two in exactly the same way. It is extremely easy to mess this sort of program up.
Now lets look at a different approach. Say we created a MyEmployee class that contains the employee's name, position, and wage, along with the appropriate constructors, getters, setters, toString method, etc... something like so:
import java.text.NumberFormat;
public class MyEmployee
private String name;
private String position;
private double hourlyWage;
public MyEmployee(String name, String position, double hourlyWage)
this.name = name;
this.position = position;
this.hourlyWage = hourlyWage;
public String getName()
return name;
public String getPosition()
return position;
public double getHourlyWage()
return hourlyWage;
public String toString()
// don't worry about these methods here. They're just to make the output look nice
NumberFormat currency = NumberFormat.getCurrencyInstance();
return String.format("Name: %-15s Position: %-15s Wage: %s",
name, position, currency.format(hourlyWage));
}Now I can create a MyEmployees2 class that holds a single list of MyEmployee objects, like so:
import java.util.ArrayList;
public class MyEmployees2
private ArrayList<MyEmployee> employeeList = new ArrayList<MyEmployee>();
public boolean add(MyEmployee employee)
return employeeList.add(employee);
public boolean remove(MyEmployee employee)
return employeeList.remove(employee);
public void display()
for (MyEmployee employee : employeeList)
System.out.println(employee);
public static void main(String[] args)
MyEmployees2 empl2 = new MyEmployees2();
empl2.add(new MyEmployee("John Smith", "Salesman", 20));
empl2.add(new MyEmployee("Jane Smyth", "Salesman", 25));
empl2.add(new MyEmployee("Fred Flinstone", "Janitor", 15));
empl2.add(new MyEmployee("Barney Rubble", "Supervisor", 35));
empl2.add(new MyEmployee("Mr. Spacely", "The Big Boss", 45));
empl2.display();
}Now if I want to add an Employee, I only add to one list. Same if I want to remove, only one list, and of course, the same for sorting. It is much safer and easier to do things this way. Make sense? -
Firefox 4 displays multiple message boxes with "uninstall set'. How do I stop this?
Firefox 4 displays multiple message boxes with "uninstall set'. They cannot be closed and they freeze Firefox. The only way to stop is to END TASK through the Task Manager.
OS: Vista) with all service packs and updates as of 21 Apr 2011. All other browsers and applications are closed.This issue can be caused by an extension that isn't working properly.
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
* Help > Restart with Add-ons Disabled
* Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
See:
* [[Troubleshooting extensions and themes]] -
How to show multiple messages for a single exception
hi
Please consider this example application created using JDeveloper 11.1.1.3.0
at http://www.consideringred.com/files/oracle/2010/MultipleMessagesExceptionApp-v0.01.zip
It has a class extending DCErrorHandlerImpl configured as ErrorHandlerClass in DataBindings.cpx .
Running the page and entering a value starting with "err" will result in an exception being thrown and multiple messages shown.
See the screencast at http://screencast.com/t/zOmEOzP4jmQ
To get multiple messages for a single exception the MyDCErrorHandler class is implemented like
public class MyDCErrorHandler
extends DCErrorHandlerImpl
public MyDCErrorHandler()
super(true);
@Override
public void reportException(DCBindingContainer pDCBindingContainer,
Exception pException)
if (pException instanceof JboException)
Throwable vCause = pException.getCause();
if (vCause instanceof MyMultiMessageException)
reportMyMultiMessageException(pDCBindingContainer,
(MyMultiMessageException)vCause);
return;
super.reportException(pDCBindingContainer, pException);
public void reportMyMultiMessageException(DCBindingContainer pDCBindingContainer,
MyMultiMessageException pException)
String vMessage = pException.getMessage();
reportException(pDCBindingContainer, new Exception(vMessage));
List<String> vMessages = pException.getMessages();
for (String vOneMessage : vMessages)
reportException(pDCBindingContainer, new Exception(vOneMessage));
}I wonder if calling reportException() multiple times is really the way to go here?
question:
- (q1) What would be the preferred use of the DCErrorHandlerImpl API to show multiple messages for a single exception?
many thanks
Jan Verveckenfyi
Looks like using MultipleMessagesExceptionApp-v0.01.zip in JDeveloper 11.1.1.2.0 (11.1.1.2.36.55.36) results in a different behaviour compared to when used in JDeveloper 11.1.1.3.0 (11.1.1.3.37.56.60)
see http://www.consideringred.com/files/oracle/img/2010/MultipleMessages-111130versus111120.png
When using JDeveloper 11.1.1.2.0 each exception seems to result in two messages where there is only one message (as intended/expected) per exception when using JDeveloper 11.1.1.3.0 .
(Could be somehow related to the question in forum thread "multiple callbacks to DCErrorHandlerImpl".)
But, question (q1) remains and is still about JDeveloper 11.1.1.3.0 .
regards
Jan -
All error messages in a single window
Hi,
Just a small help needed . Actually i want that all the error messages should be displayed in a single window for the mandatory fields check,when one try to save the form.I had made a function which is being called by the fields at their pre save event for the mandatory check and all the error messages are been taken into a global array and displayed.But the problem is that the error message window is displayed only for the first time when i try to save the form and after that no mandatory check is being done .What might be the issue with my logic or anybody can provide some other pointers that how all the error messages can be displayed in a single window in the end ?
ThanksI do not know of a way to do this in the current product.
Paul -
To complete multiple tasks in a single window without closing individual
Hi Folks,
How much it is possible to complete multiple BPM activities in a single window?
Suppose i have a BPM process which contain 2 swimlanes and 4 steps.
First 2 and 4th step is assigned to swimlane A and step3 is assigned to Swimlane B.
Two users are involved in process and users are assigned at swimlane level.
I want User A which is assigned to Swimlane A to complete first 2 steps in a single attempt without closing windows each time.
As of now once a particular activity is over BPM prompts user to close window and then again select your task from UWL inbox and proceed. Is there any way to avoid that?
Thanks in anticipation!
Mandeep VirkIt is not a bug, but a new feature.<br />
Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
*[https://bugzilla.mozilla.org/show_bug.cgi?id=626825 bug 626825] - Hide redundant menu commands unless the user invokes the menu using the keyboard (make use of the openedWithKey attribute)
''(please do not comment in bug reports; you can vote instead)''
See also:
* [[/questions/799856#answer-155765]] -
Display Multiple reports in a single query view
Hi Team,
I have 3 similar reports for MTD, QTD & YTD.
While displaying the report in the portal.. I want to display the reports in a single view wherein the MTD report will be a default report for the input selections. whereas the QTD & YTD will be available as dropdown options in the same query view and the wll be executed for the same input selections.
Please advice how to design the view.
Regards
SnehaHi All,
I have created a Web Template for my requirement.
Now while adding the template to my Transport request, I am getting the following error message:
Object 'BTMP::0ANALYSIS_PATTERN_EXPORT' refers to the invalid object 'QU::'
Object 'BTMP::0ANALYSIS_PATTERN_INFO' refers to the invalid object 'QU::'
PLEASE ADVICE...
Regards
Sneha
Edited by: Sneha Santhanakrishnan on Aug 8, 2011 12:18 PM -
How to display multiple components in a single tabstrip with different tabs
Hi Experts,
I am working on PM UI development. We have created 5 webdynpro components and all have seperate application and link to run. Now we have requirement in which we should have a single window and all components should exist in different tabs.
Till now I have used Tabstrip in a single copmponent and have no idea how to fix this issue. Could you please help me out to get this done ASAP.
Thanks in advance.
Madhu OmerHi Madhu,
One option that you can try now is to create a new webdnpro component with a tabstrip.
1. To each of the tab area you attach view container.
2. In the used components of webdynpro component tab you can add each of the components that you created
3. Create inboud plugs for each of these application that you created.
4. When the tab is pressed trigger a call to the inbound plug of the applications
5. You can refer the following also https://cw.sdn.sap.com/cw/docs/DOC-24752
All the Best ! -
Customizing Sharepoint Calendar Week Group View to display multiple weeks in a single row
Hi,
SharePoint Calendar's Week Group View is useful for comparing multiple co-worker's schedule, and we have a business needs to be able to view the schedule for with the date range of more than one week at a time between co-workers for planning purposes, is
there a way (code or no-code) to manipulate the date/week range so that the calendar display more than 7 days in a single row?Hi,
As there is no such OOTB feature, I would suggest that you can change the calendar scope to “Month” or create a Gantt view to display more weeks in a view.
Or you can try to create a custom calendar web part to meet your requirement.
Here are some samples of custom calendar web part for your reference:
http://www.codeproject.com/Articles/108676/SharePoint-Custom-Calendar
http://gunnarpeipman.com/2009/01/creating-sharepoint-global-calendar/
https://blog.metrostarsystems.com/2013/10/21/creating-a-custom-sharepoint-calendar-rollup/
Best regards
Patrick Liang
TechNet Community Support -
Displaying multiple columns of a single column query
Would anyone happen to know how to display a result set in multiple horizontal columns as opposed to a single vertical column in ApEx?
Example:
select server_name from owner.servers;
A normal sql report would return:
server1
server2
server3
server4
server5
server6
What I'm looking for is a return that will display:
server1 server2 server3
server4 server5 server6I'm sure there's a much better way, but one thing that popped into my head was to make your report be a Dynamic PL/SQL Region.
If you loop thru the records in a cursor, you can build a string and once you have "three" records, use the htp.p to print it out.
So something like this maybe:
v_count NUMBER(1);
v_data SERVERS.SERVER_NAME%TYPE;
v_string VARCHAR2(100);
CURSOR getdata IS
SELECT server_name
FROM servers
ORDER BY server_name;
BEGIN
v_count := 0;
OPEN getdata;
LOOP
FETCH getdata INTO v_data;
EXIT WHEN getdata%NOTFOUND;
v_count := v_count + 1;
IF v_count = 1 THEN
v_string := rpad(v_data,25,' ');
ELSIF v_count = 4 THEN
htp.p(v_string);
v_count := 1;
v_string := rpad(v_data,25,' ');
ELSE
v_string := v_string||rpad(v_data,25,' ');
END IF;
END LOOP;
CLOSE getdata;
END;
Variable lengths would need to be adjusted to fit your data, but you get the idea (hopefully).
Again, perhaps it's not the most efficient, but it would work.
Chad -
Multiple message threads for single contact
A friend of mine happens to send iMessages from two accounts and it creates two message threads in Messages for me. Is there a way to somehow show one thread covering single account, even though it has multiple "physical" sources? Thanks.
No.
-
Display XML forms in a single window-URGENT!!!!!!!
Hi,
I created a project with XML forms Builder. It is working but the thing is that now i just want to display all the forms in the same window. Means that when i want to edit a new item instead of a new window i want to work in the same browser.
Is that possible by configuring a resource renderer(NewsRenderer for example)?
Otherwise do u know another solution?
Please i need help.
I found a topic in the forum (thread below) https://forums.sdn.sap.com/thread.jspa?threadID=46122&messageID=466382
But i didn't understand all the points.
So if someone know something please answer.
Thx in advance.
MJHi Robert,
I did as u said: I downloaded the file <u>YOUR_PROJECT_NewsRenderListItem.xsl</u> but i didn't find any <b>_blank</b> in the text. Let's say i have exactly the same problem than in the previous thread, i don't know where to add the URL and where to replace _blank.
I don't know where to find the method <u>CreateXSLDocument</u>(Detlev thread) and what is its interest?
Can u please explain where i can find "xinfo=window.open(url,'_blank',params)"? It should be (according to Detlev) in <u>com.sapportals.wcm.app.xfbuilder.server.generator.xsldocs.CreateXSLDocument</u> but i really don't know how to reach this address.
Thx a lot!!!
best regards
MJ -
Multiple Weblogic nodes on single Windows server - Dispatcher question?
Hi All,
My experience is with other J2EE web servers (SAP's Netweaver predominantly) and typical installations on this platform include the installation of a dispatcher J2EE node which balances load across potentially multiple J2EE nodes on a single server. Does Weblogic have a similar set-up, as it appears when you create multiple nodes in Weblogic, you need to set-up a load balancer to achieve this same effect (that is installed by default on other platforms).
Obviously creating a single node is pretty useless for the majority of production installations; hence what is the recommended option (without setting up a dedicated load balancer) to achieve this on a single (albeit large) server?
Thanks,
MattHi,
I had just remembered another option, we can set up weblogic as webserver which does the load balancing. Below are the two ways you can do that.
1. While creating the domain using "config.sh" you will get an option to set up "weblogic server as webserver". This option is enabled only on condition "cluster must be created, and few managed servers needs to assigned to cluster". For example if we create 3 managed servers and we assign 2 managed to cluster then "Http Proxt screen" would be enabled where remaining server can be set up as "http proxy webserver".
2. Below is the lengthy procedure.
a. Create a standalone weblogic server.
b. We need to create a dummy war, which just contains below "web.xml" adn "weblogic.xml", let me know if you have trouble creating this war file.
Contents of "web.xml"
<?xml version='1.0' encoding='UTF-8'?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servlet>
<!-- Add HTTPClusterServlet -->
<servlet-name>HttpClusterServlet</servlet-name>
<servlet-class>weblogic.servlet.proxy.HttpClusterServlet</servlet-class>
<init-param>
<param-name>WebLogicCluster</param-name>
<param-value>127.0.0.1:7003|127.0.0.1:7005|127.0.0.1:7007</param-value>
</init-param>
</servlet>
<!-- Add HTTPClusterServlet Mapping elements -->
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>browsestore</url-pattern>
</servlet-mapping>
</web-app>
Contents of "weblogic.xml" . This deployment descriptor is used to deploy this application as "default application".
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Add the context root here -->
<context-root>/</context-root>
</weblogic-web-app>
c. Now deploy this war file to standalone weblogic server.
d. Lets suppose you had deploy application "vas.war" on managed server "VASMS1", "VASMS2", which are running on host "vasunix1" and "vasunix2" on ports 8002. You can access the application directly "http://vasunix1:8001/vas" or "http://vasunix2:8002/vas".
Now since you had set up "http proxy webserver" which does the load balancing, you can directly hit "http proxy webserver" url and it redirects traffic to "VASMS1" or "VASMS2". Lets suppose "Http proxy webserver" "VASMS3" is running on "vasunix1" on port "8003". You can access the application "http://vasunix1:8003/vas", this request is directed to MS1 or MS2.
I hope this is what you are looking for. Have great day.
Vijay Bheemineni. -
Need to display multiple messages
Hi All,
I have a requirement, wherein, I have to display a list of messages on screen. How to go about it? Is there any function module or something that displays a popup with the messages given?
Thanks,
Raj.hi,
you can use Inernal table to store the messages
You can use FM 'SLS_MISC_SHOW_MESSAGE_TAB'.
DATA: it_messages LIKE sls_msgs OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
CLEAR it_messages.
MOVE '001' TO it_messages-num.
MOVE 'message001' TO it_messages-msg.
APPEND it_messages.
CLEAR it_messages.
MOVE '002' TO it_messages-num.
MOVE 'message002' TO it_messages-msg.
APPEND it_messages.
CLEAR it_messages.
MOVE '003' TO it_messages-num.
MOVE 'message003' TO it_messages-msg.
APPEND it_messages.
CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB'
TABLES
p_messages = it_messages
EXCEPTIONS
NO_MESSAGES_PROVIDED = 1
OTHERS = 2
thanks
jaideep
*reward points if useful..
Maybe you are looking for
-
Hi guys, We want to use capacity check functionality in WM. I have done all configuration. We have given capacity as 1,000 kg for the bin type. In material master, weight is given as 50 kg. It is accepting goods receipt upto 20 nos. it is fine up
-
Creating PDF with IMAGE using CFDOCUMENT TAG
Hi Guys, I m facing problem while creating the PDF using CFDOCUMENT tag. Actually my clients want the IMAGEs in PDF document. Problem is most of the images in JPG format and while I am going to attach images in PDF document it takes lots of time for
-
DI Server needs to be restarted
Hi all, We are using an add-on which uses Web services and the DI Server service keeps on falling over. The add-on then just hangs. We cannot restart is as the status "Stopping" will appear in the Services window indefinitely. We have tried using a .
-
Mac mini core duo 1.66 ghz processor upgrade
For all those who are savvy with compatibility of motherboards and processors could someone please tell me if I wanted to upgrade my cpu, what would the maximum processing power of the CPU be? My computer is old (mac mini intel from 2006) and I am wi
-
How to remove a virus that is reported to be in the text animation files of Captivate 8
The virus protection program ClamAV is reporting a virus Swf.Exploit.CVE_2014_0564-2 exploit. in several of the Captivate program files that are located in the programs/Adobe folder (some of the text animations swf files, interaction files, and widge