Flex Help - Creating Resizable, Draggable, Rotatable Shapes
Hello,
Hopefully some feedback from this forum can guide me into
creating what I hope to accomplish.
What I want to do is have the user be able to draw shapes
onto a canvas/panel. The shaeps are standard squares, rectangles,
circles, etc. .... This is the easy part.
Once the shapes are drawn, I would like for the user to be
able to click on a shape, and have 4 squares show up at each corner
of the shape. When a user clicks on one of the squares and drags
the mouse, the object expands in size. Furthermore, I would like to
provide the functionality so that the user may rotate the shape.
I have currently completed the user being able to draw
shapes, as well as drag them anywhere on the application. I have
used sprites for this. Can someone please guide me on how to
incorporate the other functionality such as the user being able to
resize the shape by selecting a tiny square at one of the corners
of the object. Thanks
As cxf02 mentioned in a separate thread:
http://code.google.com/p/flex-object-handles/downloads/list
http://www.rogue-development.com/objectHandles.html
Your work is done :)
Similar Messages
-
Business Catalyst Help | Create an ad rotator
This question was posted in response to the following article: http://helpx.adobe.com/business-catalyst/partner/create-ad-rotator.html
The content editor on BC won't let you really move it around, per se. To insert your ad rotator into a page you use a module: {module_adrotator} so you can just cut and paste your module code to where you want it in your HTML code.
-
Problem in moving Rotated Shape object
Hi All,
I want to move the rotated shape object based on the mouse movement
m able to move the object which is not rotated, but m facing the problem when i move the rotated object its moving position is not correct . I am expecting to maintain both shape objects movement is same, i mean if i did mouse movement to right rotated object moves upwards and normal object moves towards right insted of moving both r moving towards to right.
Pls help me
the following code is m using to moving the object
The one which in red color is not rotated and the one which is in black color has rotated.
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.clinapps.LDPConstants;
public class MoveRotatedObj extends JFrame
public MoveRotatedObj()
JPanel pane = new Dorairaj();
add(pane);
public static void main(String[] args)
MoveRotatedObj f = new MoveRotatedObj();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setSize(400, 400);
f.setLocation(200, 200);
f.setVisible(true);
static class Dorairaj extends JPanel
implements
MouseListener,
MouseMotionListener
Shape o = null;
Rectangle2D rect = new Rectangle2D.Double(
10, 10, 100, 100);
Graphics2D g2 = null;
boolean flag = true;
int x=10,y=10,x1, y1, x2, y2;
AffineTransform af = new AffineTransform();
AffineTransform originalAt = new AffineTransform();
int origin = 0;
public Dorairaj()
addMouseListener(this);
addMouseMotionListener(this);
protected void paintComponent(Graphics g)
super.paintComponent(g);
g2 = (Graphics2D) g;
g2.draw(new Rectangle2D.Double(0,0,500,500));
g2.translate(origin, origin);
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
rect = new Rectangle2D.Double(
x, y, 150, 100);
g2.setColor(Color.RED);
g2.draw(rect);
g2.setColor(Color.black);
originalAt = g2.getTransform();
g2.rotate(Math.toRadians(270), 200, 200);
g2.draw(rect);
g2.setTransform(originalAt);
* Invoked when a mouse button has been pressed on a component.
public void mousePressed(MouseEvent e)
e.translatePoint(-origin, -origin);
x1 = e.getX();
y1 = e.getY();
public void mouseDragged(MouseEvent e)
x2 = e.getX();
y2 = e.getY();
x = x + x2 - x1;
y = y + y2 - y1;
x1 = x2;
y1 = y2;
repaint();
public void mouseMoved(MouseEvent e)
* Invoked when the mouse button has been clicked (pressed and released)
* on a component.
public void mouseClicked(MouseEvent e)
repaint();
* Invoked when a mouse button has been released on a component.
public void mouseReleased(MouseEvent e)
* Invoked when the mouse enters a component.
public void mouseEntered(MouseEvent e)
* Invoked when the mouse exits a component.
public void mouseExited(MouseEvent e)
Edited by: DoraiRaj on Sep 16, 2009 12:51 PM
Edited by: DoraiRaj on Sep 16, 2009 1:00 PM
Edited by: DoraiRaj on Sep 16, 2009 1:07 PMThanks for replay and suggestion morgalr,
I mean MoveRotatedObj1 is MoveRotatedObj only jsut m maintaing a copy on my system like MoveRotatedObj1.
finally i solved my problem like this ,
Is this correct approach m followinig or not pls let me know .
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.clinapps.LDPConstants;
public class MoveRotatedObj extends JFrame
public MoveRotatedObj()
JPanel pane = new Dorairaj();
add(pane);
public static void main(String[] args)
MoveRotatedObj f = new MoveRotatedObj();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setSize(400, 400);
f.setLocation(200, 200);
f.setVisible(true);
static class Dorairaj extends JPanel
implements
MouseListener,
MouseMotionListener
Shape o = null;
Rectangle2D rect = new Rectangle2D.Double(
10, 10, 100, 100);
Rectangle2D rect1 = new Rectangle2D.Double(
10, 10, 100, 100);
Graphics2D g2 = null;
boolean flag = true;
double lx, ly;
int x = 10, y = 10, x1, y1, x2, y2;
int l = 20, m = 20;
int angle = 270;
AffineTransform af = new AffineTransform();
AffineTransform originalAt = new AffineTransform();
int origin = 0;
public Dorairaj()
addMouseListener(this);
addMouseMotionListener(this);
protected void paintComponent(Graphics g)
super.paintComponent(g);
g2 = (Graphics2D) g;
g2.draw(new Rectangle2D.Double(
0, 0, 500, 500));
g2.translate(origin, origin);
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
rect = new Rectangle2D.Double(
x, y, 150, 100);
g2.setColor(Color.RED);
g2.draw(rect);
rect1 = new Rectangle2D.Double(
l, m, 150, 100);
g2.setColor(Color.black);
originalAt = g2.getTransform();
g2.rotate(Math.toRadians(angle), 200, 200);
g2.draw(rect1);
g2.setTransform(originalAt);
public void mousePressed(MouseEvent e)
e.translatePoint(-origin, -origin);
x1 = e.getX();
y1 = e.getY();
public void mouseDragged(MouseEvent e)
boolean left, right, up, bottm;
int dx, dy;
left = right = up = bottm = false;
x2 = e.getX();
y2 = e.getY();
dx = x2 - x1;
dy = y2 - y1;
x = x + dx;
y = y + dy;
up = dy < 0;
bottm = dy > 0;
left = dx < 0;
right = dx > 0;
if (left || right)
// b += dx;
m += dx;
if (up || bottm)
// a -= dy;
l -= dy;
x1 = x2;
y1 = y2;
repaint();
public void mouseMoved(MouseEvent e)
public void mouseClicked(MouseEvent e)
repaint();
public void mouseReleased(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
} -
Could I put Flex help content in my own Flex training
Hi, everybody. I am going to be an instructor for Flex
training in December. I have to created my own training document
and presentation. but I have seen Flex Help file also provide a
perfect content for some part of my training. So Could I put some
part of those contents to my training document?
I own my Flex license already."Teerasej" <[email protected]> wrote in
message
news:gg96cs$9n3$[email protected]..
> Hi, everybody. I am going to be an instructor for Flex
training in
> December. I
> have to created my own training document and
presentation. but I have seen
> Flex
> Help file also provide a perfect content for some part
of my training. So
> Could
> I put some part of those contents to my training
document?
>
> I own my Flex license already.
Look at Acrobat Portfolio.
HTH;
Amy -
Need tech help creating project with PE11, Windows 7
I still need help creating a slideshow set to music for DVD playback at my 50th high school reunion.
Video Media = 700 still images in .jpg or .tff format. Pixel sizes range from 200x200 to over 3000x4000.
I first created this project using PE's presets and original image sizes. Images added to PE were more blurred than originals & images burned to DVD were even more blurred so I asked for advice.
Last week several people in the forum tried to help. I really appreciate everyone's suggestions but would still appreciate further advice.
Forum experts said to restart my project with project settings changed to DV 720x480...and to resize my images to 1000x750 pixels. Then today in a PE11 chat session, I was told something different: use project settings changed to DVD 720p 30 and resize only larger images down to 1280 x 720 (leave smaller images alone).
So what project settings and resizing should I use for better image clarity? How do I change project settings? By clicking on "new" under "file" >change project settings >DVD 720p 30 or something else?Up-rezzing small Still Images, regardless of the program and the Scaling algorithm used, can lead to a diminished quality. As Steve says, pixels are created, where none existed. I try to stay away from up-rezzing, whenever possible, due to that diminished qualtiy.
If I have to work with very small Images, I often use another workflow, and a different asethetic choice. When faced with the prospect of using small Images, I will create a background of some sort (many options here), and then use that small Image at its original size, "framed" within that background - no Scaling involved, but obviously, that small Image will not fill the screen. The viewer usually has fewer problems with the small Image, than one that is larger, but has started to fall apart, due to the up-rezzing.
One "trick" that I use is to use that small Image AS the background, but alter it greatly, probably dropping its contrast and upping its brightness, and even adding a Blur to it, then do a PiP (Picture in Picture) of the Image at its original size. I might even create a "picture frame" in Photoshop, to really set that small Image apart from the background. That is but one of dozens of such possible treatments, and one is only limited by their imagination.
Another possible treatment would be to do a "photo wall" with several of the small Images in say a 3 x 2 matrix of PiP's. Sort of like a Contact Sheet.
Good luck,
Hunt -
Help Creating Starburst With Randomized Rays
Check out this background image below (or view larger size at this link:http://i3.campaignmonitor.com/themes/site_themes/default/img/bg_site-home.jpg) . I would like to know how they created the "randomized" effect of the rays behind the gray box. I already know how to make your standard starburst using Abealls auto shape extension, but that creates uniform rays. The rays of light in the below example are seemingly random. I know this can be easily done in Photoshop using filters, but can it not be easily done in Fireworks?
Here's my try ( btw, welcome to the forums! ) and even if it is not random, it is close to the desired effect.
Save the file to your computer and de-construct. I have added a Noise filter effect, a bit of Gaussian blur and there is a half-transparent rectangle on top of the rays, with gradient (rays use gradient, too).
Now, I suppose you could combine two Sunrays autoshapes, slightly shift one of them, make both half-transparent, and apply a bit different effects to both. You could also create a complex vector mask on top of the sunrays, with a complex gradient with varaible areas of half-transparency, and this could help create this "random effect" that you are going after...
I hope that some wiser than me Fireworks guru will be able to help you more...
Message was edited by: Michel (two more variants added) -
How do you create a kidney bean shape in illustrator using shapes or strokes?
Is there a way to make a kidney bean shape in illustrator? There must be an easier way then the way i'm trying to do it. can you not just create a hot dog shape and some how move a point in the middle to make it go kidney? please help.
AStart off with an ellipse, direct select one of the side anchors and drag.
-
How do you create a custom brush "shape"?
I want to create an effect of a large paintbrush moving across the screen.
Is there any way to create a custom brush "shape" to do this using the Paint tools? I can't find anything obvious in the help on how to do this.
Thx
KevinOr, if you have Trapcode Particular, define your shape as a custom particle. The painting could then be controlled by animating the emitter position or defining a motion path by ways of a 3D light as an helper item.
Mylenium -
Service desk error creating support message "help- create support message"
Hi
I'm customizing SM 7.0 SP Stack 15 service desk scenario. I'm in a VAR SAP, so It's a mandatory scenario.
I've done all basic settings from General Settings, Connection to SAP, Online Documentation, ...,
Business Partners, iBase, Basic BC-Sets for Configuration, Number Ranges. After them , for Scenario-Specific Settings-> Service Desk->Service Provider I've done all these steps. At SAP System Solution Manager, I've created solutions at dswp transaction and EW Alert are centralized these steps works. Transaction notif_create works and iBase are well mantained.
The problem is when I try create a support message from satellite SAP system. I logged With a SAP user which is BP, key user and has authorizations in a satellite system and I choose help->create support message, so a pop-up appears and I fill the fields, and I press button (Save/Send). An error appears:
Error in Local Message System: Access via 'NULL' object reference not possible. Message was Not Created
In order solve the error I review:
- The satellite SAP system is at the iBase installed components.
- I've Assign Number Range for ABA notifications at SLF1 transaction.
- I've Checked number range for Service Desk Message at SLFN transaction.
- I've configured ABA Message transaction DNO_CUST01, transaction DNO_CUST04
- (satellite system) Transaction sm30, table BCOS_CUST:
Appl. + Dest. + +
OSS_MSG W SM_SMGCLNT010_BACK CUST620 1.0
TST_CUS 0120009939
RFC SM_SMGCLNT010_BACK works, SM recollects EW Alert from this satellite system
- (satellite system) I logged with a SAP user with these roles:
SAP_SUPPDESK_CREATE
SAP_BC_CUS_CUSTOMIZER according SAP NOTE 834534
SAP_BC_CUS_ADMIN according SAP NOTE 834534
SAP_SV_FDB_NOTIF_BC_CREATE
SAP_SV_FDB_NOTIF_BC_ADMIN
All these roles are mantained.
- I've review SAP Notes 834534, 864195, 621927(I haven't applied this SAP Note because it's older)
Please could you help me?
Thanks and Regards
RaulHi,
When I try create a SAP message via help->create suuport message, I get the same error so I run help->create support message in a satellite system so I run help->create support message in Solution Manager
system. Also, a dump is generated in Solution Manager when I try create support message or from satellite or from solution manager.
========================================================================
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Date and Time 10.07.2008 10:17:26
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_BOR_SERVICE_PPF============CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: " ").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
How to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED" " "
"CL_BOR_SERVICE_PPF============CP" or "CL_BOR_SERVICE_PPF============CM004"
"PROFILE_CONTAINS_PARTNERDEP"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
Information on where terminated
Termination occurred in the ABAP program "CL_BOR_SERVICE_PPF============CP" -
in "PROFILE_CONTAINS_PARTNERDEP".
The main program was "SAPMSSY1 ".
In the source code you have the termination point in line 41
of the (Include) program "CL_BOR_SERVICE_PPF============CM004".
=========================================================================
Thanks and Regards
Raul -
I need Fusion help creating a demo of BRM JCA Resource Adapter
I need Fusion help creating a demo of BRM JCA Resource Adapter.
I know BRM well but am clueless with Fusion.
I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
My BRM docs say:
Installing the BRM JCA Resource Adapter ->
Software requirements
(yada yada install a bunch of BRM stuff I know how to do)
The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
(more yada yada about installing more BRM packages I know how to do)
Deploying and configuring the BRM JCA Resource Adapter ->
Overview of the BRM JCA Resource Adapter configuration procedure
The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
Deploying the BRM JCA Resource Adapter on an Oracle application server
The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
Application
JAR files
J2EE application server
classes12.jar, connector15.jar, and jta.jar
Oracle BPEL process
bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
BRM J2EE Resource Adapter
pcm.jar and pcmext.jar
Apache
xercesImpl.jar
If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
<imported-shared-libraries>
<import-shared-library name="adf.oracle.domain"/>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
Save and close the file.
Restart the application server or the J2EE instance.
After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
Remove the following oracle.bpel.common entry (shown in bold below):
<imported-shared-libraries>
<import-shared-library name="adf.oracle.domain"/>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
Save and close the file.
Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
<oc4j-connector-factories...>
<imported-shared-libraries>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
<oc4j-connector-factories>
Save and close the file.
Restart the application server or the J2EE instance.
For more information about deploying the adapter, see your application server’s documentation.
Connecting the adapter to BRM in Oracle AS
You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
Create as many connection factories as your system needs. For each connection factory, specify the following:
The JNDI location for the connection factory.
The connection pool to use.
How to connect to BRM by using these entries:
Entry
Description
ConnectionString
Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
DBNumber
Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
InputValidation
Specifies whether to validate the input XMLRecord:
True — The adapter validates the input XMLRecord against the opcode schema.
False — The adapter does not validate the input XMLRecord.
The default is False.
This overrides any other validation parameter specified in the WSDL file.
OutputValidation
Specifies whether to validate the output XMLRecord:
True — The adapter validates the output XMLRecord against the opcode schema.
False — The adapter does not validate the output XMLRecord.
The default is False.
This overrides any other validation parameter specified in the WSDL file.
LoginType
Specifies the authentication method:
1 — The adapter logs in to BRM by using the specified login name and password.
0 — The adapter logs in to BRM by using the specified service type and POID ID.
The default is 1.
UserName
Specifies the login name the adapter uses for logging in to the BRM software.
Note This entry is required only if LoginType is set to 1.
Password
Specify the password the adapter uses for logging in to the BRM software.
Note This entry is required only if LoginType is set to 1.
PoidID
Specifies the POID ID. This entry should be set to 1.
ServiceType
Specifies the service the adapter uses to log in to the BRM software.
The default is /service/pcm_client.
You have successfully configured the adapter to connect to BRM.I need Fusion help creating a demo of BRM JCA Resource Adapter.
I know BRM well but am clueless with Fusion.
I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
My BRM docs say:
Installing the BRM JCA Resource Adapter ->
Software requirements
(yada yada install a bunch of BRM stuff I know how to do)
The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
(more yada yada about installing more BRM packages I know how to do)
Deploying and configuring the BRM JCA Resource Adapter ->
Overview of the BRM JCA Resource Adapter configuration procedure
The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
Deploying the BRM JCA Resource Adapter on an Oracle application server
The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
Application
JAR files
J2EE application server
classes12.jar, connector15.jar, and jta.jar
Oracle BPEL process
bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
BRM J2EE Resource Adapter
pcm.jar and pcmext.jar
Apache
xercesImpl.jar
If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
<imported-shared-libraries>
<import-shared-library name="adf.oracle.domain"/>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
Save and close the file.
Restart the application server or the J2EE instance.
After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
Remove the following oracle.bpel.common entry (shown in bold below):
<imported-shared-libraries>
<import-shared-library name="adf.oracle.domain"/>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
Save and close the file.
Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
<oc4j-connector-factories...>
<imported-shared-libraries>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
<oc4j-connector-factories>
Save and close the file.
Restart the application server or the J2EE instance.
For more information about deploying the adapter, see your application server’s documentation.
Connecting the adapter to BRM in Oracle AS
You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
Create as many connection factories as your system needs. For each connection factory, specify the following:
The JNDI location for the connection factory.
The connection pool to use.
How to connect to BRM by using these entries:
Entry
Description
ConnectionString
Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
DBNumber
Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
InputValidation
Specifies whether to validate the input XMLRecord:
True — The adapter validates the input XMLRecord against the opcode schema.
False — The adapter does not validate the input XMLRecord.
The default is False.
This overrides any other validation parameter specified in the WSDL file.
OutputValidation
Specifies whether to validate the output XMLRecord:
True — The adapter validates the output XMLRecord against the opcode schema.
False — The adapter does not validate the output XMLRecord.
The default is False.
This overrides any other validation parameter specified in the WSDL file.
LoginType
Specifies the authentication method:
1 — The adapter logs in to BRM by using the specified login name and password.
0 — The adapter logs in to BRM by using the specified service type and POID ID.
The default is 1.
UserName
Specifies the login name the adapter uses for logging in to the BRM software.
Note This entry is required only if LoginType is set to 1.
Password
Specify the password the adapter uses for logging in to the BRM software.
Note This entry is required only if LoginType is set to 1.
PoidID
Specifies the POID ID. This entry should be set to 1.
ServiceType
Specifies the service the adapter uses to log in to the BRM software.
The default is /service/pcm_client.
You have successfully configured the adapter to connect to BRM. -
Help-Create Support Message In SAP
Hi,
When iam creating a new message from Help-Create Support Message it is throwing the error message as 513. Can anyone help me in the mentioned issue.
Regards,
Mirza Kaleemulla Baig.Hi Mirza,
Please check the following:
- Check that the users used to create the support desk message has the
following authorizations.
SAP_SUPPDESK_CREATE
- Can you please attach the contents for the table BCOS_CUST in both the
solution manager system and one of your satellite systems.
This table must show this entry at least:
OSS_MSG W NONE CUST620 1.0
- Check also note 1011376
Hope this helps,
Dolores -
Sold-To Party and Reported missing when doing Help - Create Support Message
Sorry, I know this has been asked multiple times, but I'm missing something in the responses. The responses I am finding either don't seem to apply to my situation, or aren't detailed enough to explain what I'm supposed to be doing.
Solution Manager 7.0 EhP1 SAPKITL435.
If we try to do a "Help - Create Support Message" from within our production Solution Manager system, the "Reported by" field is correct, but the Sold-To Party is blank.
If we try to do a "Help - Create Support Message" from within our non-production Solution Manager system, both the "Reported by" and Sold-To Party fields are blank.
If we try to do a Help - Create Support Message" from another SAP system whose RFC is pointing to our non-production Solution Manager system, both the "Reported by" and Sold-To Party fields are blank.
I've looked at IB52, as well as the SPRO activities under "Partner Determination Procedure." I think a big part of my problem is that they just don'e make sense to me yet, because I can't figure out what I should be changing.
For example, IB52 looks to me like it only applies if you want to assign something to the same person all the time. Am I missing something there, or is that an answer to a different question?
I also can't figure out if I need to create something new in "Define Access Sequences," or modify something existing, and, if I modify, to what?
Does anyone know where I could find specific instructions for setting this up?Hi Brenda,
Regargind this issue, please check if Sold-To party is maintained for
your system with IB52 in your solman system as the steps below:
SOLUTION MANAGER system
->IB52
->select the system on left hand side
->click on 'goto' on top menu
->Select 'partner'
->Now maintain Sold-To party
Also check below note:
1165357 Sold-to-Party is not assigned to Service Desk messa
As you said ou already assigned then i would request you to please check if you have assigned at the system level or not. Somtimes people define at top of the tree and also at system level. Please assign at system level and delete all other. Most of the times this is the issue Sold-to-party doesnt fill automatically.
For reported by field:
Please check the note: 824640: Customizing missing for Service Desk in Solution
read this note carefull and this will help you fixing the reported by issue.
Please, make sure you have applied the following corrections:
1439191 Incident Create: Message Reporter or Processor is not saved
1486132 Incident Create: Enhance search help of Reporter field
1497700 Work center: Message details not updated after refresh
After this if you still having issue you need to provide more details but i think this will fix the issue.
Thanks
Regards
Vikram -
In Need of Help Creating an Action
Hello,
I need to create several thousand QR codes and I am trying to work out how to automate it so that I don't have to make them one at a time.
My idea was to download the EVEnX QR Code plugin for Photoshop and then make an action, or series of actions, to make the codes en mass. The information I need in each QR Code is a URL, with each code having a unique one that links to the products serial number.
So, I created a file roughly the size of the QR codes I needed and used vairables to insert the URL on text layer. I was hoping to be able to create an action that would copy that text, open the plugin (which works like a filter), paste the text, create the code and save/close the image.
However, I can't seem to get it to work. I don't know how to make an action to have it highlight the text layer or an action to paste it into the plugin.
Also, the plugin allows you to make a variable of certain information it pulls from the file but the closest I can get to what I need is file name, however I can't make the files named for the URL because of the slashes. They allows you to use file name, file path and the information like size and date.
Sorry for the long post but I HAVE to get this figured out as this project is for work and I am on a time limit. I don't have to use an action, any other way would be fine! I don't have much experience with scripts but if you can walk me through one that would work then I would be happy to try! PLEASE HELP!!!
Thanks!
In Need of Help Creating an ActionHave you checked out Image > Variables and the Help chapter »Creating data-driven graphics« yet?
-
Help with Resizing LUNS on Hitachi 9980
Hi everyone, I need a little help here resizing my LUNS on our Hitachi 9980. I currently have a 1 TB and I want to increase or resize this to 2 TB. I am wondering if someone can help me here. This is something I haven't done before. Is there a step by step way of doing this. I was told that it could be done off line or online. Which is safer? Do I also need to reboot the Host after the resizing? Thanks for your assistance.
JCHi everyone, I need a little help here resizing my LUNS on our Hitachi 9980. I currently have a 1 TB and I want to increase or resize this to 2 TB. I am wondering if someone can help me here. This is something I haven't done before. Is there a step by step way of doing this. I was told that it could be done off line or online. Which is safer? Do I also need to reboot the Host after the resizing? Thanks for your assistance.
JC -
Create a Draggable Component?
I was wondering how to create a draggable component that only
stays within certain bounds.
for instance this is some code for the draggable item.
how do i get it to stay within a certain boundstry this way
var board:Sprite = new Sprite();
var pt:Sprite = new Sprite();
board.graphics.lineStyle(1,0);
board.graphics.beginFill(0xCCCCCC);
board.graphics.drawRect(0,0,400,300);
board.graphics.endFill();
board.x = 10;
board.y = 10;
stage.addChild(board);
pt.graphics.lineStyle(1,0);
pt.graphics.beginFill(0x0000FF,0.7);
pt.graphics.drawCircle(0,0,20);
pt.graphics.endFill();
pt.x = 50;
pt.y = 50;
stage.addChild(pt);
var isDraging=false;
pt.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
function startMove(evt:MouseEvent):void {
isDraging=true
//pt.startDrag(false);
pt.addEventListener(MouseEvent.MOUSE_UP, stopMove);
function stopMove(e:MouseEvent):void {
isDraging=false
//pt.stopDrag();
pt.addEventListener(Event.ENTER_FRAME,checkBoard)
function checkBoard(evt:Event){
if(!isDraging) return
pt.x=mouseX
pt.y=mouseY
if((pt.x+pt.width/2)>(board.x+board.width)){pt.x=board.x+board.width-pt.width/2;}
if((pt.x-pt.width/2)<board.x){pt.x=board.x+pt.width/2}
if((pt.y+pt.height/2)>(board.y+board.height)){pt.y=board.y+board.height-pt.height/2;}
if((pt.y-pt.height/2)<board.y){pt.y=board.y+pt.height/2}
Maybe you are looking for
-
dear all, since the column of table can not be boolean value, so why and can be used in join query, why "or" can not? anybody can give some example whether "and", "or" used in outer join is correct or wrong. thanks,
-
The OS is extremely slow/frozen
So, out of nowhere my laptop just froze. I tried doing a hard restart, and it took about 30 minutes to get to the login window and another 20 to actually load the desktop and the dock. Then it completely hung up when I was trying to look in Library/C
-
My 8320 smartphone is giving me fits! I have a new San Disk card that I put into my smartphone. I have downloaded Media Sync, but when I connect my BB to my computer, I get the following error message: Your device is not recognized by Bb media sync.
-
Creation of Tab pages in a form in C#
Hi Experts, I would like to create an 2-3 diffetent tab pages in a single form in SAP B1.(like as we have differrent tabs in a windows) I am quit new to this, can any one help me here providing the keywords, function ect.. It wold be really helfull i
-
Hi Freinds, Im using statement 'MESSAGE I002(ZMSG_PM) WITH 'ABCBMMMMM'. But the message displays the message stored in 002 in message class zmsd_pm andit does not show 'ABCBMMMMM'. I want to display message with the message defined in msg class wi