Bluetooth and Xbee working together

PaulS:

Serialm and serialn? like the serial1 and serial2 in my code?

Yes.

Can you tell me what is needed in the code to have multiple serial in- and outputs? should i define tx1, rx1, tx2 and rx2 to the ports they are in?

Yes, no, and maybe. As of the last picture you posted, you don't have the hardware connected properly, so no amount of software diddling is going to work.

Now that the bluetooth bee is wired to rx2 and tx2. I need to write the code, so that it can read bluetooth bee on 38400 baudrate and the xbee on baudrate 9600.

I need to send these codes through the serial on baudrate 38400

//------BLUETOOTH SETUP-------
  Serial2.print("\r\n+STWMOD=0\r\n");     // set to slave
  delay(1000);
  Serial2.print("\r\n+STNA=HomeAutoDroid\r\n");     // DSC = digital setting circles
  delay(1000);
  Serial2.print("\r\n+STAUTO=0\r\n");     // don't permit auto-connect
  delay(1000);
  Serial2.print("\r\n+STOAUT=1\r\n");     // existing default
  delay(1000);
  Serial2.print("\r\n +STPIN=0000\r\n");  // existing default
  delay(2000);  // required

  // initiate BTBee connection
  Serial2.print("\r\n+INQ=1\r\n");
  delay(2000);   // wait for pairing
  //----------------------------